diff --git a/sdk/workloads/azure-resourcemanager-workloads/CHANGELOG.md b/sdk/workloads/azure-resourcemanager-workloads/CHANGELOG.md index a0f1edda76309..8bb11135af924 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/CHANGELOG.md +++ b/sdk/workloads/azure-resourcemanager-workloads/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-12-13) + +- Azure Resource Manager Workloads client library for Java. This package contains Microsoft Azure SDK for Workloads Management SDK. Workloads client provides access to various workload operations. Package tag package-2021-12-01-preview. 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/workloads/azure-resourcemanager-workloads/README.md b/sdk/workloads/azure-resourcemanager-workloads/README.md index 912f215b8f12c..a942519d509ab 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/README.md +++ b/sdk/workloads/azure-resourcemanager-workloads/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-workloads - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `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. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt [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 +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/workloads/azure-resourcemanager-workloads/SAMPLE.md b/sdk/workloads/azure-resourcemanager-workloads/SAMPLE.md index 2038db83900cc..1a1ddbce3378b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/SAMPLE.md +++ b/sdk/workloads/azure-resourcemanager-workloads/SAMPLE.md @@ -364,7 +364,7 @@ public final class PhpWorkloadsCreateOrUpdateSamples { .withSku(new Sku().withName("Large")) .withAppLocation("eastus") .withManagedResourceGroupConfiguration(new ManagedRGConfiguration().withName("php-mrg-wp39")) - .withAdminUserProfile(new UserProfile().withUsername("wpadmin").withSshPublicKey("===SSH=PUBLIC=KEY===")) + .withAdminUserProfile(new UserProfile().withUsername("wpadmin").withSshPublicKey("fakeTokenPlaceholder")) .withWebNodesProfile( new VmssNodesProfile() .withName("web-server") @@ -586,6 +586,7 @@ import com.azure.resourcemanager.workloads.models.MsSqlServerProviderInstancePro import com.azure.resourcemanager.workloads.models.PrometheusHaClusterProviderInstanceProperties; import com.azure.resourcemanager.workloads.models.PrometheusOSProviderInstanceProperties; import com.azure.resourcemanager.workloads.models.SapNetWeaverProviderInstanceProperties; +import com.azure.resourcemanager.workloads.models.SslPreference; import java.util.Arrays; /** Samples for ProviderInstances Create. */ @@ -608,9 +609,38 @@ public final class ProviderInstancesCreateSamples { .withHostname("hostname") .withDbPort("5912") .withDbUsername("user") - .withDbPassword("****") - .withDbPasswordUri("") - .withSapSid("sid")) + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("sid") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/Db2ProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a Db2 provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createADb2ProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new DB2ProviderInstanceProperties() + .withHostname("hostname") + .withDbName("dbName") + .withDbPort("dbPort") + .withDbUsername("username") + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("SID") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -634,10 +664,66 @@ public final class ProviderInstancesCreateSamples { .withSqlPort("0000") .withInstanceNumber("00") .withDbUsername("user") - .withDbPassword("****") - .withDbPasswordUri("") - .withDbSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename") - .withSslHostnameInCertificate("xyz.domain.com")) + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename") + .withSslHostnameInCertificate("xyz.domain.com") + .withSslPreference(SslPreference.SERVER_CERTIFICATE)) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/NetWeaverProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a SAP monitor NetWeaver provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createASAPMonitorNetWeaverProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new SapNetWeaverProviderInstanceProperties() + .withSapSid("SID") + .withSapHostname("name") + .withSapInstanceNr("00") + .withSapHostFileEntries(Arrays.asList("127.0.0.1 name fqdn")) + .withSapUsername("username") + .withSapPassword("fakeTokenPlaceholder") + .withSapPasswordUri("fakeTokenPlaceholder") + .withSapClientId("111") + .withSapPortNumber("1234") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/MsSqlServerProviderInstance_Create_Root_Certificate.json + */ + /** + * Sample code: Create a MsSqlServer provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createAMsSqlServerProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new MsSqlServerProviderInstanceProperties() + .withHostname("hostname") + .withDbPort("5912") + .withDbUsername("user") + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("sid") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -660,7 +746,33 @@ public final class ProviderInstancesCreateSamples { .withPrometheusUrl("http://192.168.0.0:9090/metrics") .withHostname("hostname") .withSid("sid") - .withClusterName("clusterName")) + .withClusterName("clusterName") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a PrometheusHaCluster provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createAPrometheusHaClusterProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new PrometheusHaClusterProviderInstanceProperties() + .withPrometheusUrl("http://192.168.0.0:9090/metrics") + .withHostname("hostname") + .withSid("sid") + .withClusterName("clusterName") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -683,9 +795,32 @@ public final class ProviderInstancesCreateSamples { .withDbName("dbName") .withDbPort("dbPort") .withDbUsername("username") - .withDbPassword("password") - .withDbPasswordUri("") - .withSapSid("SID")) + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("SID") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/PrometheusOSProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a OS provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createAOSProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new PrometheusOSProviderInstanceProperties() + .withPrometheusUrl("http://192.168.0.0:9090/metrics") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -703,7 +838,10 @@ public final class ProviderInstancesCreateSamples { .define("myProviderInstance") .withExistingMonitor("myResourceGroup", "mySapMonitor") .withProviderSettings( - new PrometheusOSProviderInstanceProperties().withPrometheusUrl("http://192.168.0.0:9090/metrics")) + new PrometheusOSProviderInstanceProperties() + .withPrometheusUrl("http://192.168.0.0:9090/metrics") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) .create(); } @@ -728,11 +866,40 @@ public final class ProviderInstancesCreateSamples { .withSapInstanceNr("00") .withSapHostFileEntries(Arrays.asList("127.0.0.1 name fqdn")) .withSapUsername("username") - .withSapPassword("****") - .withSapPasswordUri("") + .withSapPassword("fakeTokenPlaceholder") + .withSapPasswordUri("fakeTokenPlaceholder") .withSapClientId("111") .withSapPortNumber("1234") - .withSapSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename") + .withSslPreference(SslPreference.SERVER_CERTIFICATE)) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/ProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a SAP monitor Hana provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createASAPMonitorHanaProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new HanaDbProviderInstanceProperties() + .withHostname("name") + .withDbName("db") + .withSqlPort("0000") + .withInstanceNumber("00") + .withDbUsername("user") + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSslHostnameInCertificate("xyz.domain.com") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } } @@ -1092,6 +1259,25 @@ public final class SapApplicationServerInstancesCreateSamples { .create(); } + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create SAP Application Server Instances for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createSAPApplicationServerInstancesForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapApplicationServerInstances() + .define("app01") + .withRegion("westcentralus") + .withExistingSapVirtualInstance("test-rg", "X00") + .withTags(mapOf()) + .create(); + } + @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -1215,6 +1401,25 @@ import java.util.Map; /** Samples for SapCentralInstances Create. */ public final class SapCentralInstancesCreateSamples { + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create SAP Central Instances for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createSAPCentralInstancesForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapCentralInstances() + .define("centralServer") + .withRegion("westcentralus") + .withExistingSapVirtualInstance("test-rg", "X00") + .withTags(mapOf()) + .create(); + } + /* * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create.json */ @@ -1354,6 +1559,25 @@ import java.util.Map; /** Samples for SapDatabaseInstances Create. */ public final class SapDatabaseInstancesCreateSamples { + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create SAP Database Instances for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createSAPDatabaseInstancesForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapDatabaseInstances() + .define("databaseServer") + .withRegion("westcentralus") + .withExistingSapVirtualInstance("test-rg", "X00") + .withTags(mapOf()) + .create(); + } + /* * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create.json */ @@ -1490,24 +1714,34 @@ public final class SapDatabaseInstancesUpdateSamples { ```java import com.azure.resourcemanager.workloads.models.ApplicationServerConfiguration; import com.azure.resourcemanager.workloads.models.CentralServerConfiguration; +import com.azure.resourcemanager.workloads.models.CreateAndMountFileShareConfiguration; import com.azure.resourcemanager.workloads.models.DatabaseConfiguration; -import com.azure.resourcemanager.workloads.models.DeployerVmPackages; import com.azure.resourcemanager.workloads.models.DeploymentConfiguration; import com.azure.resourcemanager.workloads.models.DeploymentWithOSConfiguration; +import com.azure.resourcemanager.workloads.models.DiscoveryConfiguration; +import com.azure.resourcemanager.workloads.models.DiskConfiguration; +import com.azure.resourcemanager.workloads.models.DiskSku; +import com.azure.resourcemanager.workloads.models.DiskSkuName; +import com.azure.resourcemanager.workloads.models.DiskVolumeConfiguration; +import com.azure.resourcemanager.workloads.models.ExternalInstallationSoftwareConfiguration; import com.azure.resourcemanager.workloads.models.HighAvailabilityConfiguration; import com.azure.resourcemanager.workloads.models.ImageReference; import com.azure.resourcemanager.workloads.models.LinuxConfiguration; +import com.azure.resourcemanager.workloads.models.MountFileShareConfiguration; import com.azure.resourcemanager.workloads.models.NetworkConfiguration; import com.azure.resourcemanager.workloads.models.OSProfile; import com.azure.resourcemanager.workloads.models.OsSapConfiguration; import com.azure.resourcemanager.workloads.models.SapDatabaseType; import com.azure.resourcemanager.workloads.models.SapEnvironmentType; import com.azure.resourcemanager.workloads.models.SapHighAvailabilityType; +import com.azure.resourcemanager.workloads.models.SapInstallWithoutOSConfigSoftwareConfiguration; import com.azure.resourcemanager.workloads.models.SapProductType; import com.azure.resourcemanager.workloads.models.SingleServerConfiguration; +import com.azure.resourcemanager.workloads.models.SkipFileShareConfiguration; import com.azure.resourcemanager.workloads.models.SshConfiguration; import com.azure.resourcemanager.workloads.models.SshKeyPair; import com.azure.resourcemanager.workloads.models.SshPublicKey; +import com.azure.resourcemanager.workloads.models.StorageConfiguration; import com.azure.resourcemanager.workloads.models.ThreeTierConfiguration; import com.azure.resourcemanager.workloads.models.VirtualMachineConfiguration; import java.util.Arrays; @@ -1517,14 +1751,14 @@ import java.util.Map; /** Samples for SapVirtualInstances Create. */ public final class SapVirtualInstancesCreateSamples { /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvSet.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_MountTransport.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_HA_AvSet. + * Sample code: Create Infrastructure with an existing SAP Transport Directory Fileshare. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigHAAvSet( + public static void createInfrastructureWithAnExistingSAPTransportDirectoryFileshare( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -1542,7 +1776,7 @@ public final class SapVirtualInstancesCreateSamples { .withCentralServer( new CentralServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_E16ds_v4") @@ -1560,13 +1794,13 @@ public final class SapVirtualInstancesCreateSamples { .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_E32ds_v4") @@ -1584,14 +1818,14 @@ public final class SapVirtualInstancesCreateSamples { .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() .withDatabaseType(SapDatabaseType.HANA) .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_M32ts") @@ -1609,39 +1843,36 @@ public final class SapVirtualInstancesCreateSamples { .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) - .withHighAvailabilityConfig( - new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withStorageConfiguration( + new StorageConfiguration() + .withTransportFileShareConfiguration( + new MountFileShareConfiguration() + .withId( + "/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/storageaccountname/fileServices/default/shares/transfileshare") + .withPrivateEndpointId( + "/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Network/privateEndpoints/endpoint")))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvZone.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Install_Distributed.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_HA_AvZone. + * Sample code: Install SAP Software on Distributed System. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigHAAvZone( + public static void installSAPSoftwareOnDistributedSystem( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") - .withRegion("westcentralus") + .withRegion("eastus2") .withExistingResourceGroup("test-rg") .withEnvironment(SapEnvironmentType.PROD) .withSapProduct(SapProductType.S4HANA) @@ -1650,105 +1881,101 @@ public final class SapVirtualInstancesCreateSamples { .withAppLocation("eastus") .withInfrastructureConfiguration( new ThreeTierConfiguration() - .withAppResourceGroup("X00-RG") + .withAppResourceGroup("{{resourcegrp}}") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) .withCentralServer( new CentralServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() - .withVmSize("Standard_E16ds_v4") + .withVmSize("Standard_E4ds_v4") .withImageReference( new ImageReference() .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) + .withOffer("RHEL-SAP-HA") + .withSku("8.2") + .withVersion("8.2.2021091201")) .withOsProfile( new OSProfile() - .withAdminUsername("{your-username}") + .withAdminUsername("azureuser") .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() - .withVmSize("Standard_E32ds_v4") + .withVmSize("Standard_E4ds_v4") .withImageReference( new ImageReference() .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) + .withOffer("RHEL-SAP-HA") + .withSku("8.2") + .withVersion("8.2.2021091201")) .withOsProfile( new OSProfile() - .withAdminUsername("{your-username}") + .withAdminUsername("azureuser") .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(6L)) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) .withDatabaseServer( new DatabaseConfiguration() - .withDatabaseType(SapDatabaseType.HANA) .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_M32ts") .withImageReference( new ImageReference() .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) + .withOffer("RHEL-SAP-HA") + .withSku("8.2") + .withVersion("8.2.2021091201")) .withOsProfile( new OSProfile() - .withAdminUsername("{your-username}") + .withAdminUsername("azureuser") .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) - .withHighAvailabilityConfig( - new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) - .withTags(mapOf()) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L))) + .withSoftwareConfiguration( + new SapInstallWithoutOSConfigSoftwareConfiguration() + .withBomUrl( + "https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml") + .withSapBitsStorageAccountId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withSoftwareVersion("SAP S/4HANA 1909 SPS 03")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("sap.bpaas.com"))) + .withTags(mapOf("created by", "azureuser")) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvZone.json */ /** - * Sample code: SAPVirtualInstances_Create_Distributed. + * Sample code: Create Infrastructure only for HA System with Availability Zone. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateDistributed( + public static void createInfrastructureOnlyForHASystemWithAvailabilityZone( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -1789,8 +2016,8 @@ public final class SapVirtualInstancesCreateSamples { .asList( new SshPublicKey() .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(1L)) + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( @@ -1817,7 +2044,7 @@ public final class SapVirtualInstancesCreateSamples { .asList( new SshPublicKey() .withKeyData( - "ssh-rsa public key"))))))) + "fakeTokenPlaceholder"))))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() @@ -1846,21 +2073,25 @@ public final class SapVirtualInstancesCreateSamples { .asList( new SshPublicKey() .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(1L)))) + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE)))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvZone.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvSet.json */ /** - * Sample code: SAPVirtualInstances_Create_HA_AvZone. + * Sample code: Create Infrastructure with OS configuration for HA System with Availability Set (Recommended). * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateHAAvZone(com.azure.resourcemanager.workloads.WorkloadsManager manager) { + public static void createInfrastructureWithOSConfigurationForHASystemWithAvailabilitySetRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") @@ -1869,7 +2100,7 @@ public final class SapVirtualInstancesCreateSamples { .withEnvironment(SapEnvironmentType.PROD) .withSapProduct(SapProductType.S4HANA) .withConfiguration( - new DeploymentConfiguration() + new DeploymentWithOSConfiguration() .withAppLocation("eastus") .withInfrastructureConfiguration( new ThreeTierConfiguration() @@ -1893,14 +2124,10 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(2L)) .withApplicationServer( new ApplicationServerConfiguration() @@ -1921,14 +2148,10 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() @@ -1950,31 +2173,1166 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(2L)) .withHighAvailabilityConfig( new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE)))) + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_SingleServer.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_Distributed.json + */ + /** + * Sample code: Create Infrastructure with OS configuration for Distributed System (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithOSConfigurationForDistributedSystemRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_Distributed.json + */ + /** + * Sample code: Create Infrastructure with Disk and OS configuration for Distributed System (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithDiskAndOSConfigurationForDistributedSystemRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L) + .withDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS))))))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_Distributed.json + */ + /** + * Sample code: Detect SAP Software Installation on a Distributed System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnADistributedSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("eastus2") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("{{resourcegrp}}") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E4ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureuser") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E4ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureuser") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureuser") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("sap.bpaas.com"))) + .withTags(mapOf("created by", "azureuser")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_SkipTransport.json + */ + /** + * Sample code: Create Infrastructure without SAP Transport Directory Fileshare. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithoutSAPTransportDirectoryFileshare( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withStorageConfiguration( + new StorageConfiguration() + .withTransportFileShareConfiguration(new SkipFileShareConfiguration()))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_SingleServer.json + */ + /** + * Sample code: Detect SAP Software Installation on a Single Server System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnASingleServerSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("X00-RG") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder")))))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_HA_AvSet.json + */ + /** + * Sample code: Detect SAP Software Installation on an HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnAnHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Install_SingleServer.json + */ + /** + * Sample code: Install SAP Software on Single Server System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void installSAPSoftwareOnSingleServerSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("eastus2") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("test-rg") + .withSubnetId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/testsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("SUSE") + .withOffer("SLES-SAP") + .withSku("12-sp4-gen2") + .withVersion("2022.02.01")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureappadmin") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder")))))) + .withSoftwareConfiguration( + new SapInstallWithoutOSConfigSoftwareConfiguration() + .withBomUrl( + "https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml") + .withSapBitsStorageAccountId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withSoftwareVersion("SAP S/4HANA 1909 SPS 03")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("sap.bpaas.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_HA_AvSet.json + */ + /** + * Sample code: Create Infrastructure with Disk and OS configuration for HA System with Availability Set + * (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilitySetRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L) + .withDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)))))) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.json + */ + /** + * Sample code: Create Infrastructure only for Distributed System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureOnlyForDistributedSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(1L)))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create Infrastructure only for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureOnlyForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(5L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET)))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_HA_AvZone.json + */ + /** + * Sample code: Detect SAP Software Installation on an HA System with Availability Zone. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnAnHASystemWithAvailabilityZone( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_SingleServer.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_SingleServer. + * Sample code: Create Infrastructure only for Single Server System. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigSingleServer( + public static void createInfrastructureOnlyForSingleServerSystem( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -1984,7 +3342,7 @@ public final class SapVirtualInstancesCreateSamples { .withEnvironment(SapEnvironmentType.NON_PROD) .withSapProduct(SapProductType.S4HANA) .withConfiguration( - new DeploymentWithOSConfiguration() + new DeploymentConfiguration() .withAppLocation("eastus") .withInfrastructureConfiguration( new SingleServerConfiguration() @@ -2008,30 +3366,26 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSshKeyPair( - new SshKeyPair().withPublicKey("abc").withPrivateKey("xyz")))))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData("fakeTokenPlaceholder"))))))))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_SingleServer.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_SingleServer.json */ /** - * Sample code: SAPVirtualInstances_Create_SingleServer. + * Sample code: Create Infrastructure with OS configuration for Single Server System (Recommended). * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateSingleServer( + public static void createInfrastructureWithOSConfigurationForSingleServerSystemRecommended( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -2041,7 +3395,7 @@ public final class SapVirtualInstancesCreateSamples { .withEnvironment(SapEnvironmentType.NON_PROD) .withSapProduct(SapProductType.S4HANA) .withConfiguration( - new DeploymentConfiguration() + new DeploymentWithOSConfiguration() .withAppLocation("eastus") .withInfrastructureConfiguration( new SingleServerConfiguration() @@ -2065,26 +3419,26 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData("ssh-rsa public key"))))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder")))))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvSet.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_HA_AvZone.json */ /** - * Sample code: SAPVirtualInstances_Create_HA_AvSet. + * Sample code: Create Infrastructure with Disk and OS configuration for HA System with Availability Zone + * (Recommended). * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateHAAvSet(com.azure.resourcemanager.workloads.WorkloadsManager manager) { + public static void createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilityZoneRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") @@ -2093,7 +3447,7 @@ public final class SapVirtualInstancesCreateSamples { .withEnvironment(SapEnvironmentType.PROD) .withSapProduct(SapProductType.S4HANA) .withConfiguration( - new DeploymentConfiguration() + new DeploymentWithOSConfiguration() .withAppLocation("eastus") .withInfrastructureConfiguration( new ThreeTierConfiguration() @@ -2117,14 +3471,10 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(2L)) .withApplicationServer( new ApplicationServerConfiguration() @@ -2145,15 +3495,11 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(5L)) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() .withDatabaseType(SapDatabaseType.HANA) @@ -2174,31 +3520,62 @@ public final class SapVirtualInstancesCreateSamples { .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(2L)) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L) + .withDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)))))) .withHighAvailabilityConfig( new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET)))) + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_Distributed.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_CreateTransport.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_Distributed. + * Sample code: Create Infrastructure with a new SAP Transport Directory Fileshare. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigDistributed( + public static void createInfrastructureWithANewSAPTransportDirectoryFileshare( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -2216,7 +3593,7 @@ public final class SapVirtualInstancesCreateSamples { .withCentralServer( new CentralServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_E16ds_v4") @@ -2234,9 +3611,141 @@ public final class SapVirtualInstancesCreateSamples { .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(1L)) + .withStorageConfiguration( + new StorageConfiguration() + .withTransportFileShareConfiguration( + new CreateAndMountFileShareConfiguration() + .withResourceGroup("rgName") + .withStorageAccountName("storageName")))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Discover.json + */ + /** + * Sample code: Register existing SAP system as Virtual Instance for SAP solutions. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void registerExistingSAPSystemAsVirtualInstanceForSAPSolutions( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("northeurope") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DiscoveryConfiguration() + .withCentralServerVmId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withTags(mapOf("createdby", "abc@microsoft.com", "test", "abc")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvZone.json + */ + /** + * Sample code: Create Infrastructure with OS configuration for HA System with Availability Zone (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithOSConfigurationForHASystemWithAvailabilityZoneRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( @@ -2258,8 +3767,8 @@ public final class SapVirtualInstancesCreateSamples { .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() @@ -2283,18 +3792,98 @@ public final class SapVirtualInstancesCreateSamples { .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(1L))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_SingleServer.json + */ + /** + * Sample code: Create Infrastructure with Disk and OS configurations for Single Server System (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithDiskAndOSConfigurationsForSingleServerSystemRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("X00-RG") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withDbDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)))))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } @@ -2553,7 +4142,7 @@ public final class WordpressInstancesDeleteSamples { * @param manager Entry point to WorkloadsManager. */ public static void workloads(com.azure.resourcemanager.workloads.WorkloadsManager manager) { - manager.wordpressInstances().deleteWithResponse("test-rg", "wp39", Context.NONE); + manager.wordpressInstances().deleteByResourceGroupWithResponse("test-rg", "wp39", Context.NONE); } } ``` diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/MonitorsClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/MonitorsClient.java index 932d8023a8ce8..7acd6d1bac49c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/MonitorsClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/MonitorsClient.java @@ -18,8 +18,10 @@ /** An instance of this class provides access to all the operations defined in MonitorsClient. */ public interface MonitorsClient { /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @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. @@ -29,8 +31,10 @@ public interface MonitorsClient { PagedIterable list(); /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +46,9 @@ public interface MonitorsClient { PagedIterable list(Context context); /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -54,7 +60,9 @@ public interface MonitorsClient { PagedIterable listByResourceGroup(String resourceGroupName); /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -67,36 +75,42 @@ public interface MonitorsClient { PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor 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 properties of a SAP monitor for the specified subscription, resource group, and resource name. + * @return properties of a SAP monitor for the specified subscription, resource group, and resource name along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MonitorInner getByResourceGroup(String resourceGroupName, String monitorName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String monitorName, Context context); /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor 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 properties of a SAP monitor for the specified subscription, resource group, and resource name along with - * {@link Response}. + * @return properties of a SAP monitor for the specified subscription, resource group, and resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String monitorName, Context context); + MonitorInner getByResourceGroup(String resourceGroupName, String monitorName); /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -112,7 +126,9 @@ SyncPoller, MonitorInner> beginCreate( String resourceGroupName, String monitorName, MonitorInner monitorParameter); /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -129,7 +145,9 @@ SyncPoller, MonitorInner> beginCreate( String resourceGroupName, String monitorName, MonitorInner monitorParameter, Context context); /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -143,7 +161,9 @@ SyncPoller, MonitorInner> beginCreate( MonitorInner create(String resourceGroupName, String monitorName, MonitorInner monitorParameter); /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -158,7 +178,9 @@ SyncPoller, MonitorInner> beginCreate( MonitorInner create(String resourceGroupName, String monitorName, MonitorInner monitorParameter, Context context); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -172,7 +194,9 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String monitorName); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -187,7 +211,9 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String monitorName, Context context); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -200,7 +226,9 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner delete(String resourceGroupName, String monitorName); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -214,32 +242,36 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner delete(String resourceGroupName, String monitorName, Context context); /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param body The Update SAP workload monitor request body. + * @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 sAP monitor info on Azure (ARM properties and SAP monitor properties). + * @return sAP monitor info on Azure (ARM properties and SAP monitor properties) along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MonitorInner update(String resourceGroupName, String monitorName, UpdateMonitorRequest body); + Response updateWithResponse( + String resourceGroupName, String monitorName, UpdateMonitorRequest body, Context context); /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param body The Update SAP workload monitor request body. - * @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 sAP monitor info on Azure (ARM properties and SAP monitor properties) along with {@link Response}. + * @return sAP monitor info on Azure (ARM properties and SAP monitor properties). */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, String monitorName, UpdateMonitorRequest body, Context context); + MonitorInner update(String resourceGroupName, String monitorName, UpdateMonitorRequest body); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/PhpWorkloadsClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/PhpWorkloadsClient.java index eb4623d12ffca..b157ecf1e8676 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/PhpWorkloadsClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/PhpWorkloadsClient.java @@ -68,28 +68,28 @@ public interface PhpWorkloadsClient { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @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 PHP workload resource. + * @return the PHP workload resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, String phpWorkloadName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String phpWorkloadName, Context context); /** * Gets the PHP workload resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @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 PHP workload resource along with {@link Response}. + * @return the PHP workload resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String phpWorkloadName, Context context); + PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, String phpWorkloadName); /** * Create or updated PHP workload resource. @@ -165,14 +165,18 @@ PhpWorkloadResourceInner createOrUpdate( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. * @param resourcePatchRequestBody Workload resource update data. + * @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 php workload resource. + * @return php workload resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PhpWorkloadResourceInner update( - String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody); + Response updateWithResponse( + String resourceGroupName, + String phpWorkloadName, + PatchResourceRequestBody resourcePatchRequestBody, + Context context); /** * Update PHP workload resource. @@ -180,33 +184,27 @@ PhpWorkloadResourceInner update( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. * @param resourcePatchRequestBody Workload resource update data. - * @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 php workload resource along with {@link Response}. + * @return php workload resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String phpWorkloadName, - PatchResourceRequestBody resourcePatchRequestBody, - Context context); + PhpWorkloadResourceInner update( + String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody); /** * Delete PHP workload resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @param deleteInfra Whether to delete infra along with workload 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 phpWorkloadName, String deleteInfra); + SyncPoller, Void> beginDelete(String resourceGroupName, String phpWorkloadName); /** * Delete PHP workload resource. @@ -224,19 +222,6 @@ SyncPoller, Void> beginDelete( SyncPoller, Void> beginDelete( String resourceGroupName, String phpWorkloadName, String deleteInfra, Context context); - /** - * Delete PHP workload resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param phpWorkloadName Php workload name. - * @param deleteInfra Whether to delete infra along with workload 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String phpWorkloadName, String deleteInfra); - /** * Delete PHP workload resource. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ProviderInstancesClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ProviderInstancesClient.java index 466ede81bac10..b66489a8ed566 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ProviderInstancesClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ProviderInstancesClient.java @@ -17,8 +17,10 @@ /** An instance of this class provides access to all the operations defined in ProviderInstancesClient. */ public interface ProviderInstancesClient { /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -32,8 +34,10 @@ public interface ProviderInstancesClient { PagedIterable list(String resourceGroupName, String monitorName); /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -48,41 +52,48 @@ public interface ProviderInstancesClient { PagedIterable list(String resourceGroupName, String monitorName, Context context); /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param providerInstanceName Name of the provider instance. + * @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 properties of a provider instance for the specified subscription, resource group, SAP monitor name, and - * resource name. + * resource name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ProviderInstanceInner get(String resourceGroupName, String monitorName, String providerInstanceName); + Response getWithResponse( + String resourceGroupName, String monitorName, String providerInstanceName, Context context); /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param providerInstanceName Name of the provider instance. - * @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 properties of a provider instance for the specified subscription, resource group, SAP monitor name, and - * resource name along with {@link Response}. + * resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String monitorName, String providerInstanceName, Context context); + ProviderInstanceInner get(String resourceGroupName, String monitorName, String providerInstanceName); /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -101,7 +112,10 @@ SyncPoller, ProviderInstanceInner> beginCreate ProviderInstanceInner providerInstanceParameter); /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -122,7 +136,10 @@ SyncPoller, ProviderInstanceInner> beginCreate Context context); /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -141,7 +158,10 @@ ProviderInstanceInner create( ProviderInstanceInner providerInstanceParameter); /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -162,7 +182,10 @@ ProviderInstanceInner create( Context context); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -177,7 +200,10 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String monitorName, String providerInstanceName); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -193,7 +219,10 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String monitorName, String providerInstanceName, Context context); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -207,7 +236,10 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner delete(String resourceGroupName, String monitorName, String providerInstanceName); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ResourceProvidersClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ResourceProvidersClient.java index b7079ea3b8ff9..3902497c6dc18 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ResourceProvidersClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/ResourceProvidersClient.java @@ -20,19 +20,8 @@ /** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */ public interface ResourceProvidersClient { /** - * Get SAP sizing recommendations. - * - * @param location The name of Azure region. - * @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 sAP sizing recommendations. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapSizingRecommendationResultInner sapSizingRecommendations(String location); - - /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @param sapSizingRecommendation SAP Sizing Recommendation Request body. @@ -40,26 +29,29 @@ public interface ResourceProvidersClient { * @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 sAP sizing recommendations along with {@link Response}. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response sapSizingRecommendationsWithResponse( String location, SapSizingRecommendationRequest sapSizingRecommendation, Context context); /** - * Get SAP supported SKUs. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @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 sAP supported SKUs. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapSupportedResourceSkusResultInner sapSupportedSku(String location); + SapSizingRecommendationResultInner sapSizingRecommendations(String location); /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @param sapSupportedSku SAP Supported SKU Request body. @@ -67,26 +59,26 @@ Response sapSizingRecommendationsWithRespons * @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 sAP supported SKUs along with {@link Response}. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response sapSupportedSkuWithResponse( String location, SapSupportedSkusRequest sapSupportedSku, Context context); /** - * Get SAP Disk Configurations. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @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 sAP Disk Configurations. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapDiskConfigurationsResultInner sapDiskConfigurations(String location); + SapSupportedResourceSkusResultInner sapSupportedSku(String location); /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @param sapDiskConfigurations SAP Disk Configurations Request body. @@ -94,26 +86,26 @@ Response sapSupportedSkuWithResponse( * @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 sAP Disk Configurations along with {@link Response}. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response sapDiskConfigurationsWithResponse( String location, SapDiskConfigurationsRequest sapDiskConfigurations, Context context); /** - * Get SAP Availability Zone Details. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @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 sAP Availability Zone Details. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapAvailabilityZoneDetailsResultInner sapAvailabilityZoneDetails(String location); + SapDiskConfigurationsResultInner sapDiskConfigurations(String location); /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. @@ -121,9 +113,21 @@ Response sapDiskConfigurationsWithResponse( * @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 sAP Availability Zone Details along with {@link Response}. + * @return the recommended SAP Availability Zone Pair Details for your region along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response sapAvailabilityZoneDetailsWithResponse( String location, SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails, Context context); + + /** + * Get the recommended SAP Availability Zone Pair Details for your region. + * + * @param location The name of Azure region. + * @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 recommended SAP Availability Zone Pair Details for your region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SapAvailabilityZoneDetailsResultInner sapAvailabilityZoneDetails(String location); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapApplicationServerInstancesClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapApplicationServerInstancesClient.java index f8509bfd6b4b5..2f3545f9ce872 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapApplicationServerInstancesClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapApplicationServerInstancesClient.java @@ -18,69 +18,66 @@ /** An instance of this class provides access to all the operations defined in SapApplicationServerInstancesClient. */ public interface SapApplicationServerInstancesClient { /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapApplicationServerInstanceInner get( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); + Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance along with {@link Response}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); + SapApplicationServerInstanceInner get( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapApplicationServerInstanceInner> beginCreate( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - SapApplicationServerInstanceInner body); + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapApplicationServerInstanceInner> beginCreate( @@ -91,54 +88,34 @@ SyncPoller, SapApplicationServerIn Context context); /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. - * @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 define the SAP Application Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapApplicationServerInstanceInner create( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - SapApplicationServerInstanceInner body); - - /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapApplicationServerInstanceInner create( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapApplicationServerInstanceInner create( @@ -149,36 +126,32 @@ SapApplicationServerInstanceInner create( Context context); /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapApplicationServerInstanceInner> beginUpdate( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - UpdateSapApplicationInstanceRequest body); + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapApplicationServerInstanceInner> beginUpdate( @@ -189,51 +162,32 @@ SyncPoller, SapApplicationServerIn Context context); /** - * Puts the SAP Application Server Instance. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. - * @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 define the SAP Application Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapApplicationServerInstanceInner update( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - UpdateSapApplicationInstanceRequest body); - - /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapApplicationServerInstanceInner update( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapApplicationServerInstanceInner update( @@ -244,12 +198,12 @@ SapApplicationServerInstanceInner update( Context context); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -260,12 +214,12 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -277,12 +231,12 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -293,12 +247,12 @@ OperationStatusResultInner delete( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -310,29 +264,29 @@ OperationStatusResultInner delete( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String sapVirtualInstanceName); /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapCentralInstancesClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapCentralInstancesClient.java index e1de49990520b..0fd380b789e56 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapCentralInstancesClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapCentralInstancesClient.java @@ -18,73 +18,69 @@ /** An instance of this class provides access to all the operations defined in SapCentralInstancesClient. */ public interface SapCentralInstancesClient { /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @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 SAP Central Instance. + * @return the SAP Central Services Instance resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapCentralServerInstanceInner get( - String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); + Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 SAP Central Instance along with {@link Response}. + * @return the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); + SapCentralServerInstanceInner get( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapCentralServerInstanceInner> beginCreate( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - SapCentralServerInstanceInner body); + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapCentralServerInstanceInner> beginCreate( @@ -95,57 +91,36 @@ SyncPoller, SapCentralServerInstanceIn Context context); /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. - * @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 define the SAP Central Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapCentralServerInstanceInner create( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - SapCentralServerInstanceInner body); - - /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapCentralServerInstanceInner create( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapCentralServerInstanceInner create( @@ -156,38 +131,36 @@ SapCentralServerInstanceInner create( Context context); /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapCentralServerInstanceInner> beginUpdate( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - UpdateSapCentralInstanceRequest body); + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapCentralServerInstanceInner> beginUpdate( @@ -198,54 +171,36 @@ SyncPoller, SapCentralServerInstanceIn Context context); /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. - * @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 define the SAP Central Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapCentralServerInstanceInner update( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - UpdateSapCentralInstanceRequest body); - - /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapCentralServerInstanceInner update( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapCentralServerInstanceInner update( @@ -256,13 +211,14 @@ SapCentralServerInstanceInner update( Context context); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -273,13 +229,14 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -291,13 +248,14 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -308,13 +266,14 @@ OperationStatusResultInner delete( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -326,28 +285,30 @@ OperationStatusResultInner delete( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedIterable}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String sapVirtualInstanceName); /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedIterable}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapDatabaseInstancesClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapDatabaseInstancesClient.java index f82aa8fc463e1..467401317ed03 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapDatabaseInstancesClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapDatabaseInstancesClient.java @@ -18,68 +18,68 @@ /** An instance of this class provides access to all the operations defined in SapDatabaseInstancesClient. */ public interface SapDatabaseInstancesClient { /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @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 SAP Database Instance. + * @return the SAP Database Instance resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapDatabaseInstanceInner get(String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); + Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 SAP Database Instance along with {@link Response}. + * @return the SAP Database Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); + SapDatabaseInstanceInner get(String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapDatabaseInstanceInner> beginCreate( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - SapDatabaseInstanceInner body); + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapDatabaseInstanceInner> beginCreate( @@ -90,54 +90,36 @@ SyncPoller, SapDatabaseInstanceInner> begin Context context); /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. - * @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 define the SAP Database Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapDatabaseInstanceInner create( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - SapDatabaseInstanceInner body); - - /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapDatabaseInstanceInner create( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapDatabaseInstanceInner create( @@ -148,36 +130,34 @@ SapDatabaseInstanceInner create( Context context); /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapDatabaseInstanceInner> beginUpdate( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - UpdateSapDatabaseInstanceRequest body); + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapDatabaseInstanceInner> beginUpdate( @@ -188,51 +168,34 @@ SyncPoller, SapDatabaseInstanceInner> begin Context context); /** - * Puts the SAP Database Instance. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. - * @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 define the SAP Database Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapDatabaseInstanceInner update( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - UpdateSapDatabaseInstanceRequest body); - - /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapDatabaseInstanceInner update( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapDatabaseInstanceInner update( @@ -243,12 +206,13 @@ SapDatabaseInstanceInner update( Context context); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -259,12 +223,13 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -276,12 +241,13 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -292,12 +258,13 @@ OperationStatusResultInner delete( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -309,10 +276,10 @@ OperationStatusResultInner delete( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -322,10 +289,10 @@ OperationStatusResultInner delete( PagedIterable list(String resourceGroupName, String sapVirtualInstanceName); /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapVirtualInstancesClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapVirtualInstancesClient.java index f0c5f98d6f3e2..83af807733576 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapVirtualInstancesClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/SapVirtualInstancesClient.java @@ -19,142 +19,127 @@ /** An instance of this class provides access to all the operations defined in SapVirtualInstancesClient. */ public interface SapVirtualInstancesClient { /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP. + * @return the {@link SyncPoller} for polling of define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapVirtualInstanceInner> beginCreate( - String resourceGroupName, String sapVirtualInstanceName, SapVirtualInstanceInner body); + String resourceGroupName, String sapVirtualInstanceName); /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP. + * @return the {@link SyncPoller} for polling of define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SapVirtualInstanceInner> beginCreate( String resourceGroupName, String sapVirtualInstanceName, SapVirtualInstanceInner body, Context context); /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SapVirtualInstanceInner create( - String resourceGroupName, String sapVirtualInstanceName, SapVirtualInstanceInner body); - - /** - * Creates an Virtual Instance for SAP. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @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 define the Virtual Instance for SAP. + * @return define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapVirtualInstanceInner create(String resourceGroupName, String sapVirtualInstanceName); /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP. + * @return define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) SapVirtualInstanceInner create( String resourceGroupName, String sapVirtualInstanceName, SapVirtualInstanceInner body, Context context); /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP. + * @return a Virtual Instance for SAP solutions resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapVirtualInstanceInner getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP along with {@link Response}. + * @return a Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String sapVirtualInstanceName, Context context); + SapVirtualInstanceInner getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName); /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Request body to update a Virtual Instance for SAP solutions 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 define the Virtual Instance for SAP. + * @return define the Virtual Instance for SAP solutions resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SapVirtualInstanceInner update(String resourceGroupName, String sapVirtualInstanceName); + Response updateWithResponse( + String resourceGroupName, String sapVirtualInstanceName, UpdateSapVirtualInstanceRequest body, Context context); /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Update Virtual Instance for SAP request body. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP along with {@link Response}. + * @return define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, String sapVirtualInstanceName, UpdateSapVirtualInstanceRequest body, Context context); + SapVirtualInstanceInner update(String resourceGroupName, String sapVirtualInstanceName); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -165,10 +150,11 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -180,10 +166,11 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -193,10 +180,11 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner delete(String resourceGroupName, String sapVirtualInstanceName); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -207,57 +195,61 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner delete(String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 Virtual Instances for SAP in the subscription as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 Virtual Instances for SAP in the subscription as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -268,10 +260,10 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName); /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -283,10 +275,10 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -296,10 +288,10 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner start(String resourceGroupName, String sapVirtualInstanceName); /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -310,11 +302,10 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner start(String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -322,14 +313,14 @@ SyncPoller, OperationStatusResultInner> b */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, OperationStatusResultInner> beginStop( - String resourceGroupName, String sapVirtualInstanceName, StopRequest body); + String resourceGroupName, String sapVirtualInstanceName); /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -341,24 +332,10 @@ SyncPoller, OperationStatusResultInner> b String resourceGroupName, String sapVirtualInstanceName, StopRequest body, Context context); /** - * Stops the SAP System. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. - * @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 current status of an async operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - OperationStatusResultInner stop(String resourceGroupName, String sapVirtualInstanceName, StopRequest body); - - /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -368,11 +345,11 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner stop(String resourceGroupName, String sapVirtualInstanceName); /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/WordpressInstancesClient.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/WordpressInstancesClient.java index 88f5c177b998b..bfcb79199687a 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/WordpressInstancesClient.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/WordpressInstancesClient.java @@ -48,28 +48,28 @@ PagedIterable list( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @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 WordPress instance resource. + * @return the WordPress instance resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WordpressInstanceResourceInner get(String resourceGroupName, String phpWorkloadName); + Response getWithResponse( + String resourceGroupName, String phpWorkloadName, Context context); /** * Gets the WordPress instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @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 WordPress instance resource along with {@link Response}. + * @return the WordPress instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String phpWorkloadName, Context context); + WordpressInstanceResourceInner get(String resourceGroupName, String phpWorkloadName); /** * Create or updated WordPress instance resource. @@ -144,24 +144,24 @@ WordpressInstanceResourceInner createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String phpWorkloadName); + Response deleteWithResponse(String resourceGroupName, String phpWorkloadName, Context context); /** * Delete WordPress instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String phpWorkloadName, Context context); + void delete(String resourceGroupName, String phpWorkloadName); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorInner.java index af1f6e216f0b4..5ead140f64c8e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorInner.java @@ -31,12 +31,15 @@ public final class MonitorInner extends Resource { private MonitorProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of MonitorInner class. */ + public MonitorInner() { + } + /** * Get the identity property: Managed service identity (user assigned identities). * @@ -157,6 +160,31 @@ public MonitorInner withRoutingPreference(RoutingPreference routingPreference) { return this; } + /** + * Get the zoneRedundancyPreference property: Sets the preference for zone redundancy on resources created for the + * SAP monitor. By default resources will be created which do not support zone redundancy. + * + * @return the zoneRedundancyPreference value. + */ + public String zoneRedundancyPreference() { + return this.innerProperties() == null ? null : this.innerProperties().zoneRedundancyPreference(); + } + + /** + * Set the zoneRedundancyPreference property: Sets the preference for zone redundancy on resources created for the + * SAP monitor. By default resources will be created which do not support zone redundancy. + * + * @param zoneRedundancyPreference the zoneRedundancyPreference value to set. + * @return the MonitorInner object itself. + */ + public MonitorInner withZoneRedundancyPreference(String zoneRedundancyPreference) { + if (this.innerProperties() == null) { + this.innerProperties = new MonitorProperties(); + } + this.innerProperties().withZoneRedundancyPreference(zoneRedundancyPreference); + return this; + } + /** * Get the managedResourceGroupConfiguration property: Managed resource group configuration. * @@ -238,6 +266,15 @@ public String msiArmId() { return this.innerProperties() == null ? null : this.innerProperties().msiArmId(); } + /** + * Get the storageAccountArmId property: The ARM ID of the Storage account used for SAP monitoring. + * + * @return the storageAccountArmId value. + */ + public String storageAccountArmId() { + return this.innerProperties() == null ? null : this.innerProperties().storageAccountArmId(); + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorProperties.java index 8fd2268a33b74..4f1250fe00835 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/MonitorProperties.java @@ -27,19 +27,25 @@ public final class MonitorProperties { private MonitorPropertiesErrors errors; /* - * The SAP monitor resources will be deployed in the SAP monitoring region. - * The subnet region should be same as the SAP monitoring region. + * The SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the + * SAP monitoring region. */ @JsonProperty(value = "appLocation") private String appLocation; /* - * Sets the routing preference of the SAP monitor. By default only RFC1918 - * traffic is routed to the customer VNET. + * Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET. */ @JsonProperty(value = "routingPreference") private RoutingPreference routingPreference; + /* + * Sets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be + * created which do not support zone redundancy. + */ + @JsonProperty(value = "zoneRedundancyPreference") + private String zoneRedundancyPreference; + /* * Managed resource group configuration */ @@ -47,8 +53,7 @@ public final class MonitorProperties { private ManagedRGConfiguration managedResourceGroupConfiguration; /* - * The ARM ID of the Log Analytics Workspace that is used for SAP - * monitoring. + * The ARM ID of the Log Analytics Workspace that is used for SAP monitoring. */ @JsonProperty(value = "logAnalyticsWorkspaceArmId") private String logAnalyticsWorkspaceArmId; @@ -65,6 +70,16 @@ public final class MonitorProperties { @JsonProperty(value = "msiArmId", access = JsonProperty.Access.WRITE_ONLY) private String msiArmId; + /* + * The ARM ID of the Storage account used for SAP monitoring. + */ + @JsonProperty(value = "storageAccountArmId", access = JsonProperty.Access.WRITE_ONLY) + private String storageAccountArmId; + + /** Creates an instance of MonitorProperties class. */ + public MonitorProperties() { + } + /** * Get the provisioningState property: State of provisioning of the SAP monitor. * @@ -127,6 +142,28 @@ public MonitorProperties withRoutingPreference(RoutingPreference routingPreferen return this; } + /** + * Get the zoneRedundancyPreference property: Sets the preference for zone redundancy on resources created for the + * SAP monitor. By default resources will be created which do not support zone redundancy. + * + * @return the zoneRedundancyPreference value. + */ + public String zoneRedundancyPreference() { + return this.zoneRedundancyPreference; + } + + /** + * Set the zoneRedundancyPreference property: Sets the preference for zone redundancy on resources created for the + * SAP monitor. By default resources will be created which do not support zone redundancy. + * + * @param zoneRedundancyPreference the zoneRedundancyPreference value to set. + * @return the MonitorProperties object itself. + */ + public MonitorProperties withZoneRedundancyPreference(String zoneRedundancyPreference) { + this.zoneRedundancyPreference = zoneRedundancyPreference; + return this; + } + /** * Get the managedResourceGroupConfiguration property: Managed resource group configuration. * @@ -199,6 +236,15 @@ public String msiArmId() { return this.msiArmId; } + /** + * Get the storageAccountArmId property: The ARM ID of the Storage account used for SAP monitoring. + * + * @return the storageAccountArmId value. + */ + public String storageAccountArmId() { + return this.storageAccountArmId; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationInner.java index 2d8c1bea3db70..7fab65435ada5 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationInner.java @@ -10,20 +10,23 @@ import com.azure.resourcemanager.workloads.models.Origin; import com.fasterxml.jackson.annotation.JsonProperty; -/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */ +/** + * REST API Operation + * + *

Details of a REST API operation, returned from the Resource Provider Operations API. + */ @Fluent public final class OperationInner { /* - * The name of the operation, as per Resource-Based Access Control (RBAC). - * Examples: "Microsoft.Compute/virtualMachines/write", - * "Microsoft.Compute/virtualMachines/capture/action" + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* - * Whether the operation applies to data-plane. This is "true" for - * data-plane operations and "false" for ARM/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for + * ARM/control-plane operations. */ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY) private Boolean isDataAction; @@ -35,19 +38,22 @@ public final class OperationInner { private OperationDisplay display; /* - * The intended executor of the operation; as in Resource Based Access - * Control (RBAC) and audit logs UX. Default value is "user,system" + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + * value is "user,system" */ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY) private Origin origin; /* - * 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. */ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY) private ActionType actionType; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationStatusResultInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationStatusResultInner.java index 6acba2304ee65..54f58574ee5fc 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationStatusResultInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/OperationStatusResultInner.java @@ -62,6 +62,10 @@ public final class OperationStatusResultInner { @JsonProperty(value = "error") private ManagementError error; + /** Creates an instance of OperationStatusResultInner class. */ + public OperationStatusResultInner() { + } + /** * Get the id property: Fully qualified ID for the async operation. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceInner.java index 5b2fa23649c58..b4e5447b2415e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.workloads.models.BackupProfile; import com.azure.resourcemanager.workloads.models.CacheProfile; @@ -36,8 +37,7 @@ public final class PhpWorkloadResourceInner extends Resource { private PhpWorkloadResourceProperties innerProperties; /* - * Indicates which kind of php workload this resource represent e.g - * WordPress + * Indicates which kind of php workload this resource represent e.g WordPress */ @JsonProperty(value = "kind", required = true) private WorkloadKind kind; @@ -54,6 +54,16 @@ public final class PhpWorkloadResourceInner extends Resource { @JsonProperty(value = "identity") private PhpWorkloadResourceIdentity identity; + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of PhpWorkloadResourceInner class. */ + public PhpWorkloadResourceInner() { + } + /** * Get the innerProperties property: Resource properties. * @@ -123,6 +133,15 @@ public PhpWorkloadResourceInner withIdentity(PhpWorkloadResourceIdentity identit return this; } + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** {@inheritDoc} */ @Override public PhpWorkloadResourceInner withLocation(String location) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceProperties.java index eeaf3a6031550..b68828ce0535e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/PhpWorkloadResourceProperties.java @@ -108,6 +108,10 @@ public final class PhpWorkloadResourceProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private PhpWorkloadProvisioningState provisioningState; + /** Creates an instance of PhpWorkloadResourceProperties class. */ + public PhpWorkloadResourceProperties() { + } + /** * Get the appLocation property: The infra resources for PHP workload will be created in this location. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceInner.java index f4c243d1b516a..944c31292e365 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceInner.java @@ -29,12 +29,15 @@ public final class ProviderInstanceInner extends ProxyResource { private ProviderInstanceProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ProviderInstanceInner class. */ + public ProviderInstanceInner() { + } + /** * Get the identity property: Managed service identity (user assigned identities). * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceProperties.java index b35c2f48d0b56..cf8d97271daff 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/ProviderInstanceProperties.java @@ -31,6 +31,10 @@ public final class ProviderInstanceProperties { @JsonProperty(value = "providerSettings") private ProviderSpecificProperties providerSettings; + /** Creates an instance of ProviderInstanceProperties class. */ + public ProviderInstanceProperties() { + } + /** * Get the provisioningState property: State of provisioning of the provider instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerInstanceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerInstanceInner.java index f71b53ccb4893..5e0fb7bc772d4 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerInstanceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerInstanceInner.java @@ -11,27 +11,32 @@ import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceProvisioningState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceStatus; +import com.azure.resourcemanager.workloads.models.StorageInformation; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import java.util.Map; -/** Define the SAP Application Server Instance. */ +/** Define the SAP Application Server Instance resource. */ @Fluent public final class SapApplicationServerInstanceInner extends Resource { /* - * Defines the SAP Application Server properties. + * Defines the SAP Application Server instance properties. */ @JsonProperty(value = "properties") private SapApplicationServerProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SapApplicationServerInstanceInner class. */ + public SapApplicationServerInstanceInner() { + } + /** - * Get the innerProperties property: Defines the SAP Application Server properties. + * Get the innerProperties property: Defines the SAP Application Server instance properties. * * @return the innerProperties value. */ @@ -63,7 +68,7 @@ public SapApplicationServerInstanceInner withTags(Map tags) { } /** - * Get the instanceNo property: The application server instance id. + * Get the instanceNo property: Application server Instance Number. * * @return the instanceNo value. */ @@ -72,7 +77,7 @@ public String instanceNo() { } /** - * Get the subnet property: The application server subnet. + * Get the subnet property: Application server Subnet. * * @return the subnet value. */ @@ -81,7 +86,7 @@ public String subnet() { } /** - * Get the hostname property: The application server SAP host name. + * Get the hostname property: Application server instance SAP hostname. * * @return the hostname value. */ @@ -90,7 +95,7 @@ public String hostname() { } /** - * Get the kernelVersion property: The application server SAP kernel version. + * Get the kernelVersion property: Application server instance SAP Kernel Version. * * @return the kernelVersion value. */ @@ -99,7 +104,7 @@ public String kernelVersion() { } /** - * Get the kernelPatch property: The application server SAP kernel patch. + * Get the kernelPatch property: Application server instance SAP Kernel Patch level. * * @return the kernelPatch value. */ @@ -108,7 +113,7 @@ public String kernelPatch() { } /** - * Get the ipAddress property: The application server SAP IP Address. + * Get the ipAddress property: Application server instance SAP IP Address. * * @return the ipAddress value. */ @@ -117,7 +122,7 @@ public String ipAddress() { } /** - * Get the gatewayPort property: The application server gateway Port. + * Get the gatewayPort property: Application server instance gateway Port. * * @return the gatewayPort value. */ @@ -126,7 +131,7 @@ public Long gatewayPort() { } /** - * Get the icmHttpPort property: The application server ICM HTTP Port. + * Get the icmHttpPort property: Application server instance ICM HTTP Port. * * @return the icmHttpPort value. */ @@ -135,7 +140,7 @@ public Long icmHttpPort() { } /** - * Get the icmHttpsPort property: The application server ICM HTTPS Port. + * Get the icmHttpsPort property: Application server instance ICM HTTPS Port. * * @return the icmHttpsPort value. */ @@ -162,7 +167,17 @@ public SapVirtualInstanceStatus status() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the storageDetails property: Storage details of all the Storage Accounts attached to the App Virtual Machine. + * For e.g. NFS on AFS Shared Storage. + * + * @return the storageDetails value. + */ + public List storageDetails() { + return this.innerProperties() == null ? null : this.innerProperties().storageDetails(); + } + + /** + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerProperties.java index 43bfc4739e587..ce54595126411 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapApplicationServerProperties.java @@ -9,61 +9,63 @@ import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceProvisioningState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceStatus; +import com.azure.resourcemanager.workloads.models.StorageInformation; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; -/** Defines the SAP Application Server properties. */ +/** Defines the SAP Application Server instance properties. */ @Immutable public final class SapApplicationServerProperties { /* - * The application server instance id. + * Application server Instance Number. */ @JsonProperty(value = "instanceNo", access = JsonProperty.Access.WRITE_ONLY) private String instanceNo; /* - * The application server subnet. + * Application server Subnet. */ @JsonProperty(value = "subnet", access = JsonProperty.Access.WRITE_ONLY) private String subnet; /* - * The application server SAP host name. + * Application server instance SAP hostname. */ @JsonProperty(value = "hostname", access = JsonProperty.Access.WRITE_ONLY) private String hostname; /* - * The application server SAP kernel version. + * Application server instance SAP Kernel Version. */ @JsonProperty(value = "kernelVersion", access = JsonProperty.Access.WRITE_ONLY) private String kernelVersion; /* - * The application server SAP kernel patch. + * Application server instance SAP Kernel Patch level. */ @JsonProperty(value = "kernelPatch", access = JsonProperty.Access.WRITE_ONLY) private String kernelPatch; /* - * The application server SAP IP Address. + * Application server instance SAP IP Address. */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /* - * The application server gateway Port. + * Application server instance gateway Port. */ @JsonProperty(value = "gatewayPort", access = JsonProperty.Access.WRITE_ONLY) private Long gatewayPort; /* - * The application server ICM HTTP Port. + * Application server instance ICM HTTP Port. */ @JsonProperty(value = "icmHttpPort", access = JsonProperty.Access.WRITE_ONLY) private Long icmHttpPort; /* - * The application server ICM HTTPS Port. + * Application server instance ICM HTTPS Port. */ @JsonProperty(value = "icmHttpsPort", access = JsonProperty.Access.WRITE_ONLY) private Long icmHttpsPort; @@ -81,7 +83,14 @@ public final class SapApplicationServerProperties { private SapVirtualInstanceStatus status; /* - * Defines the SAP Instance health. + * Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared + * Storage. + */ + @JsonProperty(value = "storageDetails", access = JsonProperty.Access.WRITE_ONLY) + private List storageDetails; + + /* + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; @@ -98,8 +107,12 @@ public final class SapApplicationServerProperties { @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY) private SapVirtualInstanceError errors; + /** Creates an instance of SapApplicationServerProperties class. */ + public SapApplicationServerProperties() { + } + /** - * Get the instanceNo property: The application server instance id. + * Get the instanceNo property: Application server Instance Number. * * @return the instanceNo value. */ @@ -108,7 +121,7 @@ public String instanceNo() { } /** - * Get the subnet property: The application server subnet. + * Get the subnet property: Application server Subnet. * * @return the subnet value. */ @@ -117,7 +130,7 @@ public String subnet() { } /** - * Get the hostname property: The application server SAP host name. + * Get the hostname property: Application server instance SAP hostname. * * @return the hostname value. */ @@ -126,7 +139,7 @@ public String hostname() { } /** - * Get the kernelVersion property: The application server SAP kernel version. + * Get the kernelVersion property: Application server instance SAP Kernel Version. * * @return the kernelVersion value. */ @@ -135,7 +148,7 @@ public String kernelVersion() { } /** - * Get the kernelPatch property: The application server SAP kernel patch. + * Get the kernelPatch property: Application server instance SAP Kernel Patch level. * * @return the kernelPatch value. */ @@ -144,7 +157,7 @@ public String kernelPatch() { } /** - * Get the ipAddress property: The application server SAP IP Address. + * Get the ipAddress property: Application server instance SAP IP Address. * * @return the ipAddress value. */ @@ -153,7 +166,7 @@ public String ipAddress() { } /** - * Get the gatewayPort property: The application server gateway Port. + * Get the gatewayPort property: Application server instance gateway Port. * * @return the gatewayPort value. */ @@ -162,7 +175,7 @@ public Long gatewayPort() { } /** - * Get the icmHttpPort property: The application server ICM HTTP Port. + * Get the icmHttpPort property: Application server instance ICM HTTP Port. * * @return the icmHttpPort value. */ @@ -171,7 +184,7 @@ public Long icmHttpPort() { } /** - * Get the icmHttpsPort property: The application server ICM HTTPS Port. + * Get the icmHttpsPort property: Application server instance ICM HTTPS Port. * * @return the icmHttpsPort value. */ @@ -198,7 +211,17 @@ public SapVirtualInstanceStatus status() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the storageDetails property: Storage details of all the Storage Accounts attached to the App Virtual Machine. + * For e.g. NFS on AFS Shared Storage. + * + * @return the storageDetails value. + */ + public List storageDetails() { + return this.storageDetails; + } + + /** + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -230,6 +253,9 @@ public SapVirtualInstanceError errors() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (storageDetails() != null) { + storageDetails().forEach(e -> e.validate()); + } if (errors() != null) { errors().validate(); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapAvailabilityZoneDetailsResultInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapAvailabilityZoneDetailsResultInner.java index 1fb1de1c4bcec..d9f76ccef12cd 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapAvailabilityZoneDetailsResultInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapAvailabilityZoneDetailsResultInner.java @@ -18,6 +18,10 @@ public final class SapAvailabilityZoneDetailsResultInner { @JsonProperty(value = "availabilityZonePairs") private List availabilityZonePairs; + /** Creates an instance of SapAvailabilityZoneDetailsResultInner class. */ + public SapAvailabilityZoneDetailsResultInner() { + } + /** * Get the availabilityZonePairs property: Gets the list of availability zone pairs. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerInstanceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerInstanceInner.java index e29c48d3ca4a0..73e7d5d91b285 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerInstanceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerInstanceInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.workloads.models.EnqueueReplicationServerProperties; import com.azure.resourcemanager.workloads.models.EnqueueServerProperties; import com.azure.resourcemanager.workloads.models.GatewayServerProperties; +import com.azure.resourcemanager.workloads.models.LoadBalancerDetails; import com.azure.resourcemanager.workloads.models.MessageServerProperties; import com.azure.resourcemanager.workloads.models.SapHealthState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; @@ -20,24 +21,27 @@ import java.util.List; import java.util.Map; -/** Define the SAP Central Server Instance. */ +/** Define the SAP Central Services Instance resource. */ @Fluent public final class SapCentralServerInstanceInner extends Resource { /* - * Defines the SAP Central Server properties. + * Defines the SAP Central Services Instance properties. */ @JsonProperty(value = "properties") private SapCentralServerProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SapCentralServerInstanceInner class. */ + public SapCentralServerInstanceInner() { + } + /** - * Get the innerProperties property: Defines the SAP Central Server properties. + * Get the innerProperties property: Defines the SAP Central Services Instance properties. * * @return the innerProperties value. */ @@ -69,7 +73,7 @@ public SapCentralServerInstanceInner withTags(Map tags) { } /** - * Get the instanceNo property: The central server instance id. + * Get the instanceNo property: The central services instance number. * * @return the instanceNo value. */ @@ -78,7 +82,7 @@ public String instanceNo() { } /** - * Get the subnet property: The central server subnet. + * Get the subnet property: The central services instance subnet. * * @return the subnet value. */ @@ -87,7 +91,7 @@ public String subnet() { } /** - * Get the messageServerProperties property: Defines the SAP message server properties. + * Get the messageServerProperties property: Defines the SAP Message Server properties. * * @return the messageServerProperties value. */ @@ -96,7 +100,7 @@ public MessageServerProperties messageServerProperties() { } /** - * Set the messageServerProperties property: Defines the SAP message server properties. + * Set the messageServerProperties property: Defines the SAP Message Server properties. * * @param messageServerProperties the messageServerProperties value to set. * @return the SapCentralServerInstanceInner object itself. @@ -110,7 +114,7 @@ public SapCentralServerInstanceInner withMessageServerProperties(MessageServerPr } /** - * Get the enqueueServerProperties property: Defines the SAP enqueue server properties. + * Get the enqueueServerProperties property: Defines the SAP Enqueue Server properties. * * @return the enqueueServerProperties value. */ @@ -119,7 +123,7 @@ public EnqueueServerProperties enqueueServerProperties() { } /** - * Set the enqueueServerProperties property: Defines the SAP enqueue server properties. + * Set the enqueueServerProperties property: Defines the SAP Enqueue Server properties. * * @param enqueueServerProperties the enqueueServerProperties value to set. * @return the SapCentralServerInstanceInner object itself. @@ -156,7 +160,7 @@ public SapCentralServerInstanceInner withGatewayServerProperties(GatewayServerPr } /** - * Get the enqueueReplicationServerProperties property: Defines the SAP ERS Server properties. + * Get the enqueueReplicationServerProperties property: Defines the SAP Enqueue Replication Server (ERS) properties. * * @return the enqueueReplicationServerProperties value. */ @@ -165,7 +169,7 @@ public EnqueueReplicationServerProperties enqueueReplicationServerProperties() { } /** - * Set the enqueueReplicationServerProperties property: Defines the SAP ERS Server properties. + * Set the enqueueReplicationServerProperties property: Defines the SAP Enqueue Replication Server (ERS) properties. * * @param enqueueReplicationServerProperties the enqueueReplicationServerProperties value to set. * @return the SapCentralServerInstanceInner object itself. @@ -180,7 +184,7 @@ public SapCentralServerInstanceInner withEnqueueReplicationServerProperties( } /** - * Get the kernelVersion property: The central server kernel version. + * Get the kernelVersion property: The central services instance Kernel Version. * * @return the kernelVersion value. */ @@ -189,7 +193,7 @@ public String kernelVersion() { } /** - * Get the kernelPatch property: The central server kernel patch. + * Get the kernelPatch property: The central services instance Kernel Patch level. * * @return the kernelPatch value. */ @@ -198,7 +202,17 @@ public String kernelPatch() { } /** - * Get the vmDetails property: The list of virtual machines. + * Get the loadBalancerDetails property: The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual + * Machines. + * + * @return the loadBalancerDetails value. + */ + public LoadBalancerDetails loadBalancerDetails() { + return this.innerProperties() == null ? null : this.innerProperties().loadBalancerDetails(); + } + + /** + * Get the vmDetails property: The list of virtual machines corresponding to the Central Services instance. * * @return the vmDetails value. */ @@ -216,7 +230,7 @@ public SapVirtualInstanceStatus status() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -234,7 +248,7 @@ public SapVirtualInstanceProvisioningState provisioningState() { } /** - * Get the errors property: Defines the Central Instance errors. + * Get the errors property: Defines the errors related to SAP Central Services Instance resource. * * @return the errors value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerProperties.java index d8fdca9d94c0a..e4d78073d6132 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapCentralServerProperties.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.workloads.models.EnqueueReplicationServerProperties; import com.azure.resourcemanager.workloads.models.EnqueueServerProperties; import com.azure.resourcemanager.workloads.models.GatewayServerProperties; +import com.azure.resourcemanager.workloads.models.LoadBalancerDetails; import com.azure.resourcemanager.workloads.models.MessageServerProperties; import com.azure.resourcemanager.workloads.models.SapHealthState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; @@ -17,29 +18,29 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Defines the SAP Central Server properties. */ +/** Defines the SAP Central Services Instance properties. */ @Fluent public final class SapCentralServerProperties { /* - * The central server instance id. + * The central services instance number. */ @JsonProperty(value = "instanceNo", access = JsonProperty.Access.WRITE_ONLY) private String instanceNo; /* - * The central server subnet. + * The central services instance subnet. */ @JsonProperty(value = "subnet", access = JsonProperty.Access.WRITE_ONLY) private String subnet; /* - * Defines the SAP message server properties. + * Defines the SAP Message Server properties. */ @JsonProperty(value = "messageServerProperties") private MessageServerProperties messageServerProperties; /* - * Defines the SAP enqueue server properties. + * Defines the SAP Enqueue Server properties. */ @JsonProperty(value = "enqueueServerProperties") private EnqueueServerProperties enqueueServerProperties; @@ -51,25 +52,31 @@ public final class SapCentralServerProperties { private GatewayServerProperties gatewayServerProperties; /* - * Defines the SAP ERS Server properties. + * Defines the SAP Enqueue Replication Server (ERS) properties. */ @JsonProperty(value = "enqueueReplicationServerProperties") private EnqueueReplicationServerProperties enqueueReplicationServerProperties; /* - * The central server kernel version. + * The central services instance Kernel Version. */ @JsonProperty(value = "kernelVersion", access = JsonProperty.Access.WRITE_ONLY) private String kernelVersion; /* - * The central server kernel patch. + * The central services instance Kernel Patch level. */ @JsonProperty(value = "kernelPatch", access = JsonProperty.Access.WRITE_ONLY) private String kernelPatch; /* - * The list of virtual machines. + * The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual Machines + */ + @JsonProperty(value = "loadBalancerDetails", access = JsonProperty.Access.WRITE_ONLY) + private LoadBalancerDetails loadBalancerDetails; + + /* + * The list of virtual machines corresponding to the Central Services instance. */ @JsonProperty(value = "vmDetails", access = JsonProperty.Access.WRITE_ONLY) private List vmDetails; @@ -81,7 +88,7 @@ public final class SapCentralServerProperties { private SapVirtualInstanceStatus status; /* - * Defines the SAP Instance health. + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; @@ -93,13 +100,17 @@ public final class SapCentralServerProperties { private SapVirtualInstanceProvisioningState provisioningState; /* - * Defines the Central Instance errors. + * Defines the errors related to SAP Central Services Instance resource. */ @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY) private SapVirtualInstanceError errors; + /** Creates an instance of SapCentralServerProperties class. */ + public SapCentralServerProperties() { + } + /** - * Get the instanceNo property: The central server instance id. + * Get the instanceNo property: The central services instance number. * * @return the instanceNo value. */ @@ -108,7 +119,7 @@ public String instanceNo() { } /** - * Get the subnet property: The central server subnet. + * Get the subnet property: The central services instance subnet. * * @return the subnet value. */ @@ -117,7 +128,7 @@ public String subnet() { } /** - * Get the messageServerProperties property: Defines the SAP message server properties. + * Get the messageServerProperties property: Defines the SAP Message Server properties. * * @return the messageServerProperties value. */ @@ -126,7 +137,7 @@ public MessageServerProperties messageServerProperties() { } /** - * Set the messageServerProperties property: Defines the SAP message server properties. + * Set the messageServerProperties property: Defines the SAP Message Server properties. * * @param messageServerProperties the messageServerProperties value to set. * @return the SapCentralServerProperties object itself. @@ -137,7 +148,7 @@ public SapCentralServerProperties withMessageServerProperties(MessageServerPrope } /** - * Get the enqueueServerProperties property: Defines the SAP enqueue server properties. + * Get the enqueueServerProperties property: Defines the SAP Enqueue Server properties. * * @return the enqueueServerProperties value. */ @@ -146,7 +157,7 @@ public EnqueueServerProperties enqueueServerProperties() { } /** - * Set the enqueueServerProperties property: Defines the SAP enqueue server properties. + * Set the enqueueServerProperties property: Defines the SAP Enqueue Server properties. * * @param enqueueServerProperties the enqueueServerProperties value to set. * @return the SapCentralServerProperties object itself. @@ -177,7 +188,7 @@ public SapCentralServerProperties withGatewayServerProperties(GatewayServerPrope } /** - * Get the enqueueReplicationServerProperties property: Defines the SAP ERS Server properties. + * Get the enqueueReplicationServerProperties property: Defines the SAP Enqueue Replication Server (ERS) properties. * * @return the enqueueReplicationServerProperties value. */ @@ -186,7 +197,7 @@ public EnqueueReplicationServerProperties enqueueReplicationServerProperties() { } /** - * Set the enqueueReplicationServerProperties property: Defines the SAP ERS Server properties. + * Set the enqueueReplicationServerProperties property: Defines the SAP Enqueue Replication Server (ERS) properties. * * @param enqueueReplicationServerProperties the enqueueReplicationServerProperties value to set. * @return the SapCentralServerProperties object itself. @@ -198,7 +209,7 @@ public SapCentralServerProperties withEnqueueReplicationServerProperties( } /** - * Get the kernelVersion property: The central server kernel version. + * Get the kernelVersion property: The central services instance Kernel Version. * * @return the kernelVersion value. */ @@ -207,7 +218,7 @@ public String kernelVersion() { } /** - * Get the kernelPatch property: The central server kernel patch. + * Get the kernelPatch property: The central services instance Kernel Patch level. * * @return the kernelPatch value. */ @@ -216,7 +227,17 @@ public String kernelPatch() { } /** - * Get the vmDetails property: The list of virtual machines. + * Get the loadBalancerDetails property: The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual + * Machines. + * + * @return the loadBalancerDetails value. + */ + public LoadBalancerDetails loadBalancerDetails() { + return this.loadBalancerDetails; + } + + /** + * Get the vmDetails property: The list of virtual machines corresponding to the Central Services instance. * * @return the vmDetails value. */ @@ -234,7 +255,7 @@ public SapVirtualInstanceStatus status() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -252,7 +273,7 @@ public SapVirtualInstanceProvisioningState provisioningState() { } /** - * Get the errors property: Defines the Central Instance errors. + * Get the errors property: Defines the errors related to SAP Central Services Instance resource. * * @return the errors value. */ @@ -278,6 +299,9 @@ public void validate() { if (enqueueReplicationServerProperties() != null) { enqueueReplicationServerProperties().validate(); } + if (loadBalancerDetails() != null) { + loadBalancerDetails().validate(); + } if (vmDetails() != null) { vmDetails().forEach(e -> e.validate()); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseInstanceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseInstanceInner.java index ec6ff25a8927f..297adc819c989 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseInstanceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseInstanceInner.java @@ -8,6 +8,7 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.resourcemanager.workloads.models.DatabaseVmDetails; +import com.azure.resourcemanager.workloads.models.LoadBalancerDetails; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceProvisioningState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceStatus; @@ -15,24 +16,27 @@ import java.util.List; import java.util.Map; -/** Define the SAP Database Instance. */ +/** Define the Database resource. */ @Fluent public final class SapDatabaseInstanceInner extends Resource { /* - * Defines the SAP Database properties. + * Defines the Database properties. */ @JsonProperty(value = "properties") private SapDatabaseProperties innerProperties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SapDatabaseInstanceInner class. */ + public SapDatabaseInstanceInner() { + } + /** - * Get the innerProperties property: Defines the SAP Database properties. + * Get the innerProperties property: Defines the Database properties. * * @return the innerProperties value. */ @@ -64,7 +68,7 @@ public SapDatabaseInstanceInner withTags(Map tags) { } /** - * Get the subnet property: The database subnet. + * Get the subnet property: Database subnet. * * @return the subnet value. */ @@ -73,7 +77,7 @@ public String subnet() { } /** - * Get the databaseSid property: The database SID. + * Get the databaseSid property: Database SID name. * * @return the databaseSid value. */ @@ -82,7 +86,8 @@ public String databaseSid() { } /** - * Get the databaseType property: The SAP database type. + * Get the databaseType property: Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL + * Server. * * @return the databaseType value. */ @@ -91,7 +96,7 @@ public String databaseType() { } /** - * Get the ipAddress property: The database IP Address. + * Get the ipAddress property: Database IP Address. * * @return the ipAddress value. */ @@ -100,7 +105,17 @@ public String ipAddress() { } /** - * Get the vmDetails property: The list of virtual machines. + * Get the loadBalancerDetails property: The Load Balancer details such as LoadBalancer ID attached to Database + * Virtual Machines. + * + * @return the loadBalancerDetails value. + */ + public LoadBalancerDetails loadBalancerDetails() { + return this.innerProperties() == null ? null : this.innerProperties().loadBalancerDetails(); + } + + /** + * Get the vmDetails property: The list of virtual machines corresponding to the Database resource. * * @return the vmDetails value. */ @@ -127,7 +142,7 @@ public SapVirtualInstanceProvisioningState provisioningState() { } /** - * Get the errors property: Defines the Database Instance errors. + * Get the errors property: Defines the errors related to Database resource. * * @return the errors value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseProperties.java index c658637718395..72dafff00b386 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDatabaseProperties.java @@ -6,41 +6,48 @@ import com.azure.core.annotation.Immutable; import com.azure.resourcemanager.workloads.models.DatabaseVmDetails; +import com.azure.resourcemanager.workloads.models.LoadBalancerDetails; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceProvisioningState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceStatus; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Defines the SAP Database properties. */ +/** Defines the Database properties. */ @Immutable public final class SapDatabaseProperties { /* - * The database subnet. + * Database subnet. */ @JsonProperty(value = "subnet", access = JsonProperty.Access.WRITE_ONLY) private String subnet; /* - * The database SID. + * Database SID name. */ @JsonProperty(value = "databaseSid", access = JsonProperty.Access.WRITE_ONLY) private String databaseSid; /* - * The SAP database type. + * Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server. */ @JsonProperty(value = "databaseType", access = JsonProperty.Access.WRITE_ONLY) private String databaseType; /* - * The database IP Address. + * Database IP Address. */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /* - * The list of virtual machines. + * The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines + */ + @JsonProperty(value = "loadBalancerDetails", access = JsonProperty.Access.WRITE_ONLY) + private LoadBalancerDetails loadBalancerDetails; + + /* + * The list of virtual machines corresponding to the Database resource. */ @JsonProperty(value = "vmDetails", access = JsonProperty.Access.WRITE_ONLY) private List vmDetails; @@ -58,13 +65,17 @@ public final class SapDatabaseProperties { private SapVirtualInstanceProvisioningState provisioningState; /* - * Defines the Database Instance errors. + * Defines the errors related to Database resource. */ @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY) private SapVirtualInstanceError errors; + /** Creates an instance of SapDatabaseProperties class. */ + public SapDatabaseProperties() { + } + /** - * Get the subnet property: The database subnet. + * Get the subnet property: Database subnet. * * @return the subnet value. */ @@ -73,7 +84,7 @@ public String subnet() { } /** - * Get the databaseSid property: The database SID. + * Get the databaseSid property: Database SID name. * * @return the databaseSid value. */ @@ -82,7 +93,8 @@ public String databaseSid() { } /** - * Get the databaseType property: The SAP database type. + * Get the databaseType property: Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL + * Server. * * @return the databaseType value. */ @@ -91,7 +103,7 @@ public String databaseType() { } /** - * Get the ipAddress property: The database IP Address. + * Get the ipAddress property: Database IP Address. * * @return the ipAddress value. */ @@ -100,7 +112,17 @@ public String ipAddress() { } /** - * Get the vmDetails property: The list of virtual machines. + * Get the loadBalancerDetails property: The Load Balancer details such as LoadBalancer ID attached to Database + * Virtual Machines. + * + * @return the loadBalancerDetails value. + */ + public LoadBalancerDetails loadBalancerDetails() { + return this.loadBalancerDetails; + } + + /** + * Get the vmDetails property: The list of virtual machines corresponding to the Database resource. * * @return the vmDetails value. */ @@ -127,7 +149,7 @@ public SapVirtualInstanceProvisioningState provisioningState() { } /** - * Get the errors property: Defines the Database Instance errors. + * Get the errors property: Defines the errors related to Database resource. * * @return the errors value. */ @@ -141,6 +163,9 @@ public SapVirtualInstanceError errors() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (loadBalancerDetails() != null) { + loadBalancerDetails().validate(); + } if (vmDetails() != null) { vmDetails().forEach(e -> e.validate()); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDiskConfigurationsResultInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDiskConfigurationsResultInner.java index f736eb9f7f78b..6ede662b6acc0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDiskConfigurationsResultInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapDiskConfigurationsResultInner.java @@ -18,6 +18,10 @@ public final class SapDiskConfigurationsResultInner { @JsonProperty(value = "diskConfigurations") private List diskConfigurations; + /** Creates an instance of SapDiskConfigurationsResultInner class. */ + public SapDiskConfigurationsResultInner() { + } + /** * Get the diskConfigurations property: Gets the list of Disk Configurations. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSizingRecommendationResultInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSizingRecommendationResultInner.java index 9682dd90d4dde..352fb140eed62 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSizingRecommendationResultInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSizingRecommendationResultInner.java @@ -24,6 +24,10 @@ }) @Immutable public class SapSizingRecommendationResultInner { + /** Creates an instance of SapSizingRecommendationResultInner class. */ + public SapSizingRecommendationResultInner() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSupportedResourceSkusResultInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSupportedResourceSkusResultInner.java index e670708a56a24..db246502d4d57 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSupportedResourceSkusResultInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapSupportedResourceSkusResultInner.java @@ -18,6 +18,10 @@ public final class SapSupportedResourceSkusResultInner { @JsonProperty(value = "supportedSkus") private List supportedSkus; + /** Creates an instance of SapSupportedResourceSkusResultInner class. */ + public SapSupportedResourceSkusResultInner() { + } + /** * Get the supportedSkus property: Gets the list of SAP supported SKUs. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceInner.java index 2b2e4d95186d9..a4349f3f3d614 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceInner.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Define the Virtual Instance for SAP. */ +/** Define the Virtual Instance for SAP solutions resource. */ @Fluent public final class SapVirtualInstanceInner extends Resource { /* @@ -31,18 +31,21 @@ public final class SapVirtualInstanceInner extends Resource { private UserAssignedServiceIdentity identity; /* - * Defines the Virtual Instance for SAP properties. + * Defines the Virtual Instance for SAP solutions resource properties. */ @JsonProperty(value = "properties", required = true) private SapVirtualInstanceProperties innerProperties = new SapVirtualInstanceProperties(); /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SapVirtualInstanceInner class. */ + public SapVirtualInstanceInner() { + } + /** * Get the identity property: Managed service identity (user assigned identities). * @@ -64,7 +67,7 @@ public SapVirtualInstanceInner withIdentity(UserAssignedServiceIdentity identity } /** - * Get the innerProperties property: Defines the Virtual Instance for SAP properties. + * Get the innerProperties property: Defines the Virtual Instance for SAP solutions resource properties. * * @return the innerProperties value. */ @@ -142,8 +145,8 @@ public SapVirtualInstanceInner withSapProduct(SapProductType sapProduct) { } /** - * Get the configuration property: Defines if an existing SAP system is being registered or a new SAP system is - * being created. + * Get the configuration property: Defines if the SAP system is being created using Azure Center for SAP solutions + * (ACSS) or if an existing SAP system is being registered with ACSS. * * @return the configuration value. */ @@ -152,8 +155,8 @@ public SapConfiguration configuration() { } /** - * Set the configuration property: Defines if an existing SAP system is being registered or a new SAP system is - * being created. + * Set the configuration property: Defines if the SAP system is being created using Azure Center for SAP solutions + * (ACSS) or if an existing SAP system is being registered with ACSS. * * @param configuration the configuration value to set. * @return the SapVirtualInstanceInner object itself. @@ -200,7 +203,7 @@ public SapVirtualInstanceStatus status() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -227,7 +230,7 @@ public SapVirtualInstanceProvisioningState provisioningState() { } /** - * Get the errors property: Defines the Virtual Instance for SAP errors. + * Get the errors property: Indicates any errors on the Virtual Instance for SAP solutions resource. * * @return the errors value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceProperties.java index 2ea0106371a85..5f68faa5ff1ff 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SapVirtualInstanceProperties.java @@ -17,7 +17,7 @@ import com.azure.resourcemanager.workloads.models.SapVirtualInstanceStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Defines the Virtual Instance for SAP properties. */ +/** Defines the Virtual Instance for SAP solutions resource properties. */ @Fluent public final class SapVirtualInstanceProperties { /* @@ -33,8 +33,8 @@ public final class SapVirtualInstanceProperties { private SapProductType sapProduct; /* - * Defines if an existing SAP system is being registered or a new SAP - * system is being created + * Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP + * system is being registered with ACSS */ @JsonProperty(value = "configuration", required = true) private SapConfiguration configuration; @@ -52,7 +52,7 @@ public final class SapVirtualInstanceProperties { private SapVirtualInstanceStatus status; /* - * Defines the SAP Instance health. + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; @@ -70,11 +70,15 @@ public final class SapVirtualInstanceProperties { private SapVirtualInstanceProvisioningState provisioningState; /* - * Defines the Virtual Instance for SAP errors. + * Indicates any errors on the Virtual Instance for SAP solutions resource. */ @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY) private SapVirtualInstanceError errors; + /** Creates an instance of SapVirtualInstanceProperties class. */ + public SapVirtualInstanceProperties() { + } + /** * Get the environment property: Defines the environment type - Production/Non Production. * @@ -116,8 +120,8 @@ public SapVirtualInstanceProperties withSapProduct(SapProductType sapProduct) { } /** - * Get the configuration property: Defines if an existing SAP system is being registered or a new SAP system is - * being created. + * Get the configuration property: Defines if the SAP system is being created using Azure Center for SAP solutions + * (ACSS) or if an existing SAP system is being registered with ACSS. * * @return the configuration value. */ @@ -126,8 +130,8 @@ public SapConfiguration configuration() { } /** - * Set the configuration property: Defines if an existing SAP system is being registered or a new SAP system is - * being created. + * Set the configuration property: Defines if the SAP system is being created using Azure Center for SAP solutions + * (ACSS) or if an existing SAP system is being registered with ACSS. * * @param configuration the configuration value to set. * @return the SapVirtualInstanceProperties object itself. @@ -168,7 +172,7 @@ public SapVirtualInstanceStatus status() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -195,7 +199,7 @@ public SapVirtualInstanceProvisioningState provisioningState() { } /** - * Get the errors property: Defines the Virtual Instance for SAP errors. + * Get the errors property: Indicates any errors on the Virtual Instance for SAP solutions resource. * * @return the errors value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SkuDefinitionInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SkuDefinitionInner.java index d6be559017953..f8c7e48abc4e8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SkuDefinitionInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/SkuDefinitionInner.java @@ -29,29 +29,27 @@ public final class SkuDefinitionInner { private String resourceType; /* - * This field is required to be implemented by the Resource Provider if the - * service has more than one tier, but is not required on a PUT. + * This field is required to be implemented by the Resource Provider if the service has more than one tier, but is + * not required on a PUT. */ @JsonProperty(value = "tier") private String tier; /* - * The SKU size. When the name field is the combination of tier and some - * other value, this would be the standalone code. + * The SKU size. When the name field is the combination of tier and some other value, this would be the standalone + * code. */ @JsonProperty(value = "size") private String size; /* - * If the service has different generations of hardware, for the same SKU, - * then that can be captured here. + * If the service has different generations of hardware, for the same SKU, then that can be captured here. */ @JsonProperty(value = "family") private String family; /* - * If the service has different kinds of hardware, for the same SKU, then - * that can be captured here. + * If the service has different kinds of hardware, for the same SKU, then that can be captured here. */ @JsonProperty(value = "kind") private String kind; @@ -69,9 +67,8 @@ public final class SkuDefinitionInner { private List locationInfo; /* - * If the SKU supports scale out/in then the capacity integer should be - * included. If scale out/in is not possible for the resource this may be - * omitted. + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. */ @JsonProperty(value = "capacity") private Object capacity; @@ -94,6 +91,10 @@ public final class SkuDefinitionInner { @JsonProperty(value = "restrictions") private List restrictions; + /** Creates an instance of SkuDefinitionInner class. */ + public SkuDefinitionInner() { + } + /** * Get the name property: The name of the SKU. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceInner.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceInner.java index 532596c529a47..a6cecf40d9be5 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceInner.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; import com.azure.resourcemanager.workloads.models.ApplicationProvisioningState; import com.azure.resourcemanager.workloads.models.WordpressVersions; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,6 +20,16 @@ public final class WordpressInstanceResourceInner extends ProxyResource { @JsonProperty(value = "properties") private WordpressInstanceResourceProperties innerProperties; + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of WordpressInstanceResourceInner class. */ + public WordpressInstanceResourceInner() { + } + /** * Get the innerProperties property: Resource properties. * @@ -28,6 +39,15 @@ private WordpressInstanceResourceProperties innerProperties() { return this.innerProperties; } + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + /** * Get the version property: Application version. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceProperties.java index e53546603543d..cac5886d2cd41 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/fluent/models/WordpressInstanceResourceProperties.java @@ -43,6 +43,10 @@ public final class WordpressInstanceResourceProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ApplicationProvisioningState provisioningState; + /** Creates an instance of WordpressInstanceResourceProperties class. */ + public WordpressInstanceResourceProperties() { + } + /** * Get the version property: Application version. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorImpl.java index 7bee86f50735d..753da3f2929f1 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorImpl.java @@ -72,6 +72,10 @@ public RoutingPreference routingPreference() { return this.innerModel().routingPreference(); } + public String zoneRedundancyPreference() { + return this.innerModel().zoneRedundancyPreference(); + } + public ManagedRGConfiguration managedResourceGroupConfiguration() { return this.innerModel().managedResourceGroupConfiguration(); } @@ -88,6 +92,10 @@ public String msiArmId() { return this.innerModel().msiArmId(); } + public String storageAccountArmId() { + return this.innerModel().storageAccountArmId(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -235,6 +243,11 @@ public MonitorImpl withRoutingPreference(RoutingPreference routingPreference) { return this; } + public MonitorImpl withZoneRedundancyPreference(String zoneRedundancyPreference) { + this.innerModel().withZoneRedundancyPreference(zoneRedundancyPreference); + return this; + } + public MonitorImpl withManagedResourceGroupConfiguration(ManagedRGConfiguration managedResourceGroupConfiguration) { this.innerModel().withManagedResourceGroupConfiguration(managedResourceGroupConfiguration); return this; diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsClientImpl.java index b1e8d9c2caed9..db8d9d8f5cb3a 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsClientImpl.java @@ -65,7 +65,7 @@ public final class MonitorsClientImpl implements MonitorsClient { */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientMonit") - private interface MonitorsService { + public interface MonitorsService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/monitors") @ExpectedResponses({200}) @@ -174,8 +174,10 @@ Mono> listByResourceGroupNext( } /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -220,8 +222,10 @@ private Mono> listSinglePageAsync() { } /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -265,8 +269,10 @@ private Mono> listSinglePageAsync(Context context) { } /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -278,8 +284,10 @@ private PagedFlux listAsync() { } /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -294,8 +302,10 @@ private PagedFlux listAsync(Context context) { } /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -307,8 +317,10 @@ public PagedIterable list() { } /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -322,7 +334,9 @@ public PagedIterable list(Context context) { } /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -374,7 +388,9 @@ private Mono> listByResourceGroupSinglePageAsync(Str } /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -425,7 +441,9 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -441,7 +459,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -458,7 +478,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -472,7 +494,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName) } /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -487,7 +511,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName, } /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -536,7 +562,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -583,7 +611,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -600,40 +630,46 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str } /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor 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 properties of a SAP monitor for the specified subscription, resource group, and resource name. + * @return properties of a SAP monitor for the specified subscription, resource group, and resource name along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MonitorInner getByResourceGroup(String resourceGroupName, String monitorName) { - return getByResourceGroupAsync(resourceGroupName, monitorName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String monitorName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, monitorName, context).block(); } /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor 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 properties of a SAP monitor for the specified subscription, resource group, and resource name along with - * {@link Response}. + * @return properties of a SAP monitor for the specified subscription, resource group, and resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String monitorName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, monitorName, context).block(); + public MonitorInner getByResourceGroup(String resourceGroupName, String monitorName) { + return getByResourceGroupWithResponse(resourceGroupName, monitorName, Context.NONE).getValue(); } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -690,7 +726,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -745,7 +783,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -768,7 +808,9 @@ private PollerFlux, MonitorInner> beginCreateAsync( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -793,7 +835,9 @@ private PollerFlux, MonitorInner> beginCreateAsync( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -811,7 +855,9 @@ public SyncPoller, MonitorInner> beginCreate( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -830,7 +876,9 @@ public SyncPoller, MonitorInner> beginCreate( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -850,7 +898,9 @@ private Mono createAsync( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -871,7 +921,9 @@ private Mono createAsync( } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -887,7 +939,9 @@ public MonitorInner create(String resourceGroupName, String monitorName, Monitor } /** - * Creates a SAP monitor for the specified subscription, resource group, and resource name. + * Creates a SAP monitor. + * + *

Creates a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -905,7 +959,9 @@ public MonitorInner create( } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -953,7 +1009,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1000,7 +1058,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1024,7 +1084,9 @@ private PollerFlux, OperationStatusResult } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1050,7 +1112,9 @@ private PollerFlux, OperationStatusResult } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1066,7 +1130,9 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1083,7 +1149,9 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1098,7 +1166,9 @@ private Mono deleteAsync(String resourceGroupName, S } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1117,7 +1187,9 @@ private Mono deleteAsync( } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1132,7 +1204,9 @@ public OperationStatusResultInner delete(String resourceGroupName, String monito } /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1148,7 +1222,9 @@ public OperationStatusResultInner delete(String resourceGroupName, String monito } /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1204,7 +1280,9 @@ private Mono> updateWithResponseAsync( } /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1258,7 +1336,9 @@ private Mono> updateWithResponseAsync( } /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1276,43 +1356,48 @@ private Mono updateAsync(String resourceGroupName, String monitorN } /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param body The Update SAP workload monitor request body. + * @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 sAP monitor info on Azure (ARM properties and SAP monitor properties). + * @return sAP monitor info on Azure (ARM properties and SAP monitor properties) along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MonitorInner update(String resourceGroupName, String monitorName, UpdateMonitorRequest body) { - return updateAsync(resourceGroupName, monitorName, body).block(); + public Response updateWithResponse( + String resourceGroupName, String monitorName, UpdateMonitorRequest body, Context context) { + return updateWithResponseAsync(resourceGroupName, monitorName, body, context).block(); } /** - * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. + * Patches the Tags field of a SAP monitor. + * + *

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param body The Update SAP workload monitor request body. - * @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 sAP monitor info on Azure (ARM properties and SAP monitor properties) along with {@link Response}. + * @return sAP monitor info on Azure (ARM properties and SAP monitor properties). */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, String monitorName, UpdateMonitorRequest body, Context context) { - return updateWithResponseAsync(resourceGroupName, monitorName, body, context).block(); + public MonitorInner update(String resourceGroupName, String monitorName, UpdateMonitorRequest body) { + return updateWithResponse(resourceGroupName, monitorName, body, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1348,7 +1433,8 @@ private Mono> listNextSinglePageAsync(String nextLin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. @@ -1385,7 +1471,8 @@ private Mono> listNextSinglePageAsync(String nextLin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1422,7 +1509,8 @@ private Mono> listByResourceGroupNextSinglePageAsync /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsImpl.java index f5fd0c82586d8..d50767189fe13 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/MonitorsImpl.java @@ -49,15 +49,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Cont return Utils.mapPage(inner, inner1 -> new MonitorImpl(inner1, this.manager())); } - public Monitor getByResourceGroup(String resourceGroupName, String monitorName) { - MonitorInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, monitorName); - if (inner != null) { - return new MonitorImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String monitorName, Context context) { Response inner = @@ -73,6 +64,15 @@ public Response getByResourceGroupWithResponse( } } + public Monitor getByResourceGroup(String resourceGroupName, String monitorName) { + MonitorInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, monitorName); + if (inner != null) { + return new MonitorImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String monitorName) { OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, monitorName); if (inner != null) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/OperationsClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/OperationsClientImpl.java index e03d98681708e..e135611e9e9f4 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/OperationsClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/OperationsClientImpl.java @@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientOpera") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.Workloads/operations") @ExpectedResponses({200}) @@ -202,7 +202,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -238,7 +239,8 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadResourceImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadResourceImpl.java index ac35c5e9aff88..19b6b56a19103 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadResourceImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadResourceImpl.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloads.implementation; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.workloads.fluent.models.PhpWorkloadResourceInner; import com.azure.resourcemanager.workloads.models.BackupProfile; @@ -72,6 +73,10 @@ public PhpWorkloadResourceIdentity identity() { return this.innerModel().identity(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String appLocation() { return this.innerModel().appLocation(); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsClientImpl.java index cb7d53cac3dad..1adb4aa9854d0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsClientImpl.java @@ -65,7 +65,7 @@ public final class PhpWorkloadsClientImpl implements PhpWorkloadsClient { */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientPhpWo") - private interface PhpWorkloadsService { + public interface PhpWorkloadsService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/phpWorkloads") @ExpectedResponses({200}) @@ -596,14 +596,16 @@ private Mono getByResourceGroupAsync(String resourceGr * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @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 PHP workload resource. + * @return the PHP workload resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, String phpWorkloadName) { - return getByResourceGroupAsync(resourceGroupName, phpWorkloadName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String phpWorkloadName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, phpWorkloadName, context).block(); } /** @@ -611,16 +613,14 @@ public PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, Str * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @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 PHP workload resource along with {@link Response}. + * @return the PHP workload resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String phpWorkloadName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, phpWorkloadName, context).block(); + public PhpWorkloadResourceInner getByResourceGroup(String resourceGroupName, String phpWorkloadName) { + return getByResourceGroupWithResponse(resourceGroupName, phpWorkloadName, Context.NONE).getValue(); } /** @@ -1055,15 +1055,19 @@ private Mono updateAsync( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. * @param resourcePatchRequestBody Workload resource update data. + * @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 php workload resource. + * @return php workload resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PhpWorkloadResourceInner update( - String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody) { - return updateAsync(resourceGroupName, phpWorkloadName, resourcePatchRequestBody).block(); + public Response updateWithResponse( + String resourceGroupName, + String phpWorkloadName, + PatchResourceRequestBody resourcePatchRequestBody, + Context context) { + return updateWithResponseAsync(resourceGroupName, phpWorkloadName, resourcePatchRequestBody, context).block(); } /** @@ -1072,19 +1076,16 @@ public PhpWorkloadResourceInner update( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. * @param resourcePatchRequestBody Workload resource update data. - * @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 php workload resource along with {@link Response}. + * @return php workload resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String phpWorkloadName, - PatchResourceRequestBody resourcePatchRequestBody, - Context context) { - return updateWithResponseAsync(resourceGroupName, phpWorkloadName, resourcePatchRequestBody, context).block(); + public PhpWorkloadResourceInner update( + String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody) { + return updateWithResponse(resourceGroupName, phpWorkloadName, resourcePatchRequestBody, Context.NONE) + .getValue(); } /** @@ -1209,6 +1210,27 @@ private PollerFlux, Void> beginDeleteAsync( mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } + /** + * Delete PHP workload resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param phpWorkloadName Php workload name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 phpWorkloadName) { + final String deleteInfra = null; + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, phpWorkloadName, deleteInfra); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + /** * Delete PHP workload resource. * @@ -1237,15 +1259,14 @@ private PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @param deleteInfra Whether to delete infra along with workload 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 phpWorkloadName, String deleteInfra) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String phpWorkloadName) { + final String deleteInfra = null; return beginDeleteAsync(resourceGroupName, phpWorkloadName, deleteInfra).getSyncPoller(); } @@ -1323,21 +1344,6 @@ private Mono deleteAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Delete PHP workload resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param phpWorkloadName Php workload name. - * @param deleteInfra Whether to delete infra along with workload 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 phpWorkloadName, String deleteInfra) { - deleteAsync(resourceGroupName, phpWorkloadName, deleteInfra).block(); - } - /** * Delete PHP workload resource. * @@ -1372,7 +1378,8 @@ public void delete(String resourceGroupName, String phpWorkloadName, String dele /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1408,7 +1415,8 @@ private Mono> listBySubscriptionNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. @@ -1445,7 +1453,8 @@ private Mono> listBySubscriptionNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1481,7 +1490,8 @@ private Mono> listByResourceGroupNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsImpl.java index b93a4b64f7704..e6949e12d0ec7 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/PhpWorkloadsImpl.java @@ -48,15 +48,6 @@ public PagedIterable listByResourceGroup(String resourceGro return Utils.mapPage(inner, inner1 -> new PhpWorkloadResourceImpl(inner1, this.manager())); } - public PhpWorkloadResource getByResourceGroup(String resourceGroupName, String phpWorkloadName) { - PhpWorkloadResourceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, phpWorkloadName); - if (inner != null) { - return new PhpWorkloadResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String phpWorkloadName, Context context) { Response inner = @@ -72,8 +63,13 @@ public Response getByResourceGroupWithResponse( } } - public void delete(String resourceGroupName, String phpWorkloadName, String deleteInfra) { - this.serviceClient().delete(resourceGroupName, phpWorkloadName, deleteInfra); + public PhpWorkloadResource getByResourceGroup(String resourceGroupName, String phpWorkloadName) { + PhpWorkloadResourceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, phpWorkloadName); + if (inner != null) { + return new PhpWorkloadResourceImpl(inner, this.manager()); + } else { + return null; + } } public void delete(String resourceGroupName, String phpWorkloadName) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesClientImpl.java index 9c4673b2a6f27..3e84f3d0d2d91 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesClientImpl.java @@ -64,7 +64,7 @@ public final class ProviderInstancesClientImpl implements ProviderInstancesClien */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientProvi") - private interface ProviderInstancesService { + public interface ProviderInstancesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors" @@ -141,8 +141,10 @@ Mono> listNext( } /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -200,8 +202,10 @@ private Mono> listSinglePageAsync( } /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -257,8 +261,10 @@ private Mono> listSinglePageAsync( } /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -274,8 +280,10 @@ private PagedFlux listAsync(String resourceGroupName, Str } /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -293,8 +301,10 @@ private PagedFlux listAsync(String resourceGroupName, Str } /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -310,8 +320,10 @@ public PagedIterable list(String resourceGroupName, Strin } /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -328,7 +340,9 @@ public PagedIterable list(String resourceGroupName, Strin } /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -384,7 +398,9 @@ private Mono> getWithResponseAsync( } /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -438,7 +454,9 @@ private Mono> getWithResponseAsync( } /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -458,45 +476,52 @@ private Mono getAsync( } /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param providerInstanceName Name of the provider instance. + * @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 properties of a provider instance for the specified subscription, resource group, SAP monitor name, and - * resource name. + * resource name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ProviderInstanceInner get(String resourceGroupName, String monitorName, String providerInstanceName) { - return getAsync(resourceGroupName, monitorName, providerInstanceName).block(); + public Response getWithResponse( + String resourceGroupName, String monitorName, String providerInstanceName, Context context) { + return getWithResponseAsync(resourceGroupName, monitorName, providerInstanceName, context).block(); } /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param providerInstanceName Name of the provider instance. - * @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 properties of a provider instance for the specified subscription, resource group, SAP monitor name, and - * resource name along with {@link Response}. + * resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String monitorName, String providerInstanceName, Context context) { - return getWithResponseAsync(resourceGroupName, monitorName, providerInstanceName, context).block(); + public ProviderInstanceInner get(String resourceGroupName, String monitorName, String providerInstanceName) { + return getWithResponse(resourceGroupName, monitorName, providerInstanceName, Context.NONE).getValue(); } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -564,7 +589,10 @@ private Mono>> createWithResponseAsync( } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -631,7 +659,10 @@ private Mono>> createWithResponseAsync( } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -661,7 +692,10 @@ private PollerFlux, ProviderInstanceInner> beg } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -691,7 +725,10 @@ private PollerFlux, ProviderInstanceInner> beg } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -713,7 +750,10 @@ public SyncPoller, ProviderInstanceInner> begi } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -738,7 +778,10 @@ public SyncPoller, ProviderInstanceInner> begi } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -761,7 +804,10 @@ private Mono createAsync( } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -787,7 +833,10 @@ private Mono createAsync( } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -808,7 +857,10 @@ public ProviderInstanceInner create( } /** - * Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Creates a provider instance. + * + *

Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -832,7 +884,10 @@ public ProviderInstanceInner create( } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -887,7 +942,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -940,7 +998,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -966,7 +1027,10 @@ private PollerFlux, OperationStatusResult } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -994,7 +1058,10 @@ private PollerFlux, OperationStatusResult } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1011,7 +1078,10 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1029,7 +1099,10 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1048,7 +1121,10 @@ private Mono deleteAsync( } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1068,7 +1144,10 @@ private Mono deleteAsync( } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1085,7 +1164,10 @@ public OperationStatusResultInner delete( } /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -1105,7 +1187,8 @@ public OperationStatusResultInner delete( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1141,7 +1224,8 @@ private Mono> listNextSinglePageAsync(Strin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesImpl.java index 8b5d9d2d244f2..3024306681c96 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ProviderInstancesImpl.java @@ -39,15 +39,6 @@ public PagedIterable list(String resourceGroupName, String mon return Utils.mapPage(inner, inner1 -> new ProviderInstanceImpl(inner1, this.manager())); } - public ProviderInstance get(String resourceGroupName, String monitorName, String providerInstanceName) { - ProviderInstanceInner inner = this.serviceClient().get(resourceGroupName, monitorName, providerInstanceName); - if (inner != null) { - return new ProviderInstanceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String monitorName, String providerInstanceName, Context context) { Response inner = @@ -63,6 +54,15 @@ public Response getWithResponse( } } + public ProviderInstance get(String resourceGroupName, String monitorName, String providerInstanceName) { + ProviderInstanceInner inner = this.serviceClient().get(resourceGroupName, monitorName, providerInstanceName); + if (inner != null) { + return new ProviderInstanceImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult delete(String resourceGroupName, String monitorName, String providerInstanceName) { OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, monitorName, providerInstanceName); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersClientImpl.java index 5fe6175079608..e24d82bdae6c4 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersClientImpl.java @@ -58,7 +58,7 @@ public final class ResourceProvidersClientImpl implements ResourceProvidersClien */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientResou") - private interface ResourceProvidersService { + public interface ResourceProvidersService { @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}" @@ -121,14 +121,16 @@ Mono> sapAvailabilityZoneDetails } /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @param sapSizingRecommendation SAP Sizing Recommendation Request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP sizing recommendations along with {@link Response} on successful completion of {@link Mono}. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapSizingRecommendationsWithResponseAsync( @@ -168,7 +170,8 @@ private Mono> sapSizingRecommendati } /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @param sapSizingRecommendation SAP Sizing Recommendation Request body. @@ -176,7 +179,8 @@ private Mono> sapSizingRecommendati * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP sizing recommendations along with {@link Response} on successful completion of {@link Mono}. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapSizingRecommendationsWithResponseAsync( @@ -213,30 +217,15 @@ private Mono> sapSizingRecommendati } /** - * Get SAP sizing recommendations. - * - * @param location The name of Azure region. - * @param sapSizingRecommendation SAP Sizing Recommendation Request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP sizing recommendations on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono sapSizingRecommendationsAsync( - String location, SapSizingRecommendationRequest sapSizingRecommendation) { - return sapSizingRecommendationsWithResponseAsync(location, sapSizingRecommendation) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP sizing recommendations on successful completion of {@link Mono}. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono sapSizingRecommendationsAsync(String location) { @@ -246,46 +235,51 @@ private Mono sapSizingRecommendationsAsync(S } /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. + * @param sapSizingRecommendation SAP Sizing Recommendation Request body. + * @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 sAP sizing recommendations. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapSizingRecommendationResultInner sapSizingRecommendations(String location) { - final SapSizingRecommendationRequest sapSizingRecommendation = null; - return sapSizingRecommendationsAsync(location, sapSizingRecommendation).block(); + public Response sapSizingRecommendationsWithResponse( + String location, SapSizingRecommendationRequest sapSizingRecommendation, Context context) { + return sapSizingRecommendationsWithResponseAsync(location, sapSizingRecommendation, context).block(); } /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. - * @param sapSizingRecommendation SAP Sizing Recommendation Request body. - * @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 sAP sizing recommendations along with {@link Response}. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response sapSizingRecommendationsWithResponse( - String location, SapSizingRecommendationRequest sapSizingRecommendation, Context context) { - return sapSizingRecommendationsWithResponseAsync(location, sapSizingRecommendation, context).block(); + public SapSizingRecommendationResultInner sapSizingRecommendations(String location) { + final SapSizingRecommendationRequest sapSizingRecommendation = null; + return sapSizingRecommendationsWithResponse(location, sapSizingRecommendation, Context.NONE).getValue(); } /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @param sapSupportedSku SAP Supported SKU Request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP supported SKUs along with {@link Response} on successful completion of {@link Mono}. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapSupportedSkuWithResponseAsync( @@ -325,7 +319,7 @@ private Mono> sapSupportedSkuWithR } /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @param sapSupportedSku SAP Supported SKU Request body. @@ -333,7 +327,8 @@ private Mono> sapSupportedSkuWithR * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP supported SKUs along with {@link Response} on successful completion of {@link Mono}. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapSupportedSkuWithResponseAsync( @@ -370,30 +365,14 @@ private Mono> sapSupportedSkuWithR } /** - * Get SAP supported SKUs. - * - * @param location The name of Azure region. - * @param sapSupportedSku SAP Supported SKU Request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP supported SKUs on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono sapSupportedSkuAsync( - String location, SapSupportedSkusRequest sapSupportedSku) { - return sapSupportedSkuWithResponseAsync(location, sapSupportedSku) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP supported SKUs on successful completion of {@link Mono}. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono sapSupportedSkuAsync(String location) { @@ -403,46 +382,47 @@ private Mono sapSupportedSkuAsync(String lo } /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. + * @param sapSupportedSku SAP Supported SKU Request body. + * @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 sAP supported SKUs. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapSupportedResourceSkusResultInner sapSupportedSku(String location) { - final SapSupportedSkusRequest sapSupportedSku = null; - return sapSupportedSkuAsync(location, sapSupportedSku).block(); + public Response sapSupportedSkuWithResponse( + String location, SapSupportedSkusRequest sapSupportedSku, Context context) { + return sapSupportedSkuWithResponseAsync(location, sapSupportedSku, context).block(); } /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. - * @param sapSupportedSku SAP Supported SKU Request body. - * @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 sAP supported SKUs along with {@link Response}. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response sapSupportedSkuWithResponse( - String location, SapSupportedSkusRequest sapSupportedSku, Context context) { - return sapSupportedSkuWithResponseAsync(location, sapSupportedSku, context).block(); + public SapSupportedResourceSkusResultInner sapSupportedSku(String location) { + final SapSupportedSkusRequest sapSupportedSku = null; + return sapSupportedSkuWithResponse(location, sapSupportedSku, Context.NONE).getValue(); } /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @param sapDiskConfigurations SAP Disk Configurations Request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Disk Configurations along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapDiskConfigurationsWithResponseAsync( @@ -482,7 +462,7 @@ private Mono> sapDiskConfigurationsWi } /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @param sapDiskConfigurations SAP Disk Configurations Request body. @@ -490,7 +470,8 @@ private Mono> sapDiskConfigurationsWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Disk Configurations along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapDiskConfigurationsWithResponseAsync( @@ -527,30 +508,13 @@ private Mono> sapDiskConfigurationsWi } /** - * Get SAP Disk Configurations. - * - * @param location The name of Azure region. - * @param sapDiskConfigurations SAP Disk Configurations Request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Disk Configurations on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono sapDiskConfigurationsAsync( - String location, SapDiskConfigurationsRequest sapDiskConfigurations) { - return sapDiskConfigurationsWithResponseAsync(location, sapDiskConfigurations) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Disk Configurations on successful completion of {@link Mono}. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono sapDiskConfigurationsAsync(String location) { @@ -560,46 +524,47 @@ private Mono sapDiskConfigurationsAsync(String } /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. + * @param sapDiskConfigurations SAP Disk Configurations Request body. + * @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 sAP Disk Configurations. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapDiskConfigurationsResultInner sapDiskConfigurations(String location) { - final SapDiskConfigurationsRequest sapDiskConfigurations = null; - return sapDiskConfigurationsAsync(location, sapDiskConfigurations).block(); + public Response sapDiskConfigurationsWithResponse( + String location, SapDiskConfigurationsRequest sapDiskConfigurations, Context context) { + return sapDiskConfigurationsWithResponseAsync(location, sapDiskConfigurations, context).block(); } /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. - * @param sapDiskConfigurations SAP Disk Configurations Request body. - * @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 sAP Disk Configurations along with {@link Response}. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response sapDiskConfigurationsWithResponse( - String location, SapDiskConfigurationsRequest sapDiskConfigurations, Context context) { - return sapDiskConfigurationsWithResponseAsync(location, sapDiskConfigurations, context).block(); + public SapDiskConfigurationsResultInner sapDiskConfigurations(String location) { + final SapDiskConfigurationsRequest sapDiskConfigurations = null; + return sapDiskConfigurationsWithResponse(location, sapDiskConfigurations, Context.NONE).getValue(); } /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Availability Zone Details along with {@link Response} on successful completion of {@link Mono}. + * @return the recommended SAP Availability Zone Pair Details for your region along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapAvailabilityZoneDetailsWithResponseAsync( @@ -639,7 +604,7 @@ private Mono> sapAvailabilityZon } /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. @@ -647,7 +612,8 @@ private Mono> sapAvailabilityZon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Availability Zone Details along with {@link Response} on successful completion of {@link Mono}. + * @return the recommended SAP Availability Zone Pair Details for your region along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> sapAvailabilityZoneDetailsWithResponseAsync( @@ -684,30 +650,14 @@ private Mono> sapAvailabilityZon } /** - * Get SAP Availability Zone Details. - * - * @param location The name of Azure region. - * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Availability Zone Details on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono sapAvailabilityZoneDetailsAsync( - String location, SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails) { - return sapAvailabilityZoneDetailsWithResponseAsync(location, sapAvailabilityZoneDetails) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sAP Availability Zone Details on successful completion of {@link Mono}. + * @return the recommended SAP Availability Zone Pair Details for your region on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono sapAvailabilityZoneDetailsAsync(String location) { @@ -717,34 +667,34 @@ private Mono sapAvailabilityZoneDetailsAs } /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. + * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. + * @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 sAP Availability Zone Details. + * @return the recommended SAP Availability Zone Pair Details for your region along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapAvailabilityZoneDetailsResultInner sapAvailabilityZoneDetails(String location) { - final SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails = null; - return sapAvailabilityZoneDetailsAsync(location, sapAvailabilityZoneDetails).block(); + public Response sapAvailabilityZoneDetailsWithResponse( + String location, SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails, Context context) { + return sapAvailabilityZoneDetailsWithResponseAsync(location, sapAvailabilityZoneDetails, context).block(); } /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. - * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. - * @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 sAP Availability Zone Details along with {@link Response}. + * @return the recommended SAP Availability Zone Pair Details for your region. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response sapAvailabilityZoneDetailsWithResponse( - String location, SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails, Context context) { - return sapAvailabilityZoneDetailsWithResponseAsync(location, sapAvailabilityZoneDetails, context).block(); + public SapAvailabilityZoneDetailsResultInner sapAvailabilityZoneDetails(String location) { + final SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails = null; + return sapAvailabilityZoneDetailsWithResponse(location, sapAvailabilityZoneDetails, Context.NONE).getValue(); } } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersImpl.java index a72563be7d6c3..e05b0d34100dc 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/ResourceProvidersImpl.java @@ -36,15 +36,6 @@ public ResourceProvidersImpl( this.serviceManager = serviceManager; } - public SapSizingRecommendationResult sapSizingRecommendations(String location) { - SapSizingRecommendationResultInner inner = this.serviceClient().sapSizingRecommendations(location); - if (inner != null) { - return new SapSizingRecommendationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response sapSizingRecommendationsWithResponse( String location, SapSizingRecommendationRequest sapSizingRecommendation, Context context) { Response inner = @@ -60,10 +51,10 @@ public Response sapSizingRecommendationsWithRespo } } - public SapSupportedResourceSkusResult sapSupportedSku(String location) { - SapSupportedResourceSkusResultInner inner = this.serviceClient().sapSupportedSku(location); + public SapSizingRecommendationResult sapSizingRecommendations(String location) { + SapSizingRecommendationResultInner inner = this.serviceClient().sapSizingRecommendations(location); if (inner != null) { - return new SapSupportedResourceSkusResultImpl(inner, this.manager()); + return new SapSizingRecommendationResultImpl(inner, this.manager()); } else { return null; } @@ -84,10 +75,10 @@ public Response sapSupportedSkuWithResponse( } } - public SapDiskConfigurationsResult sapDiskConfigurations(String location) { - SapDiskConfigurationsResultInner inner = this.serviceClient().sapDiskConfigurations(location); + public SapSupportedResourceSkusResult sapSupportedSku(String location) { + SapSupportedResourceSkusResultInner inner = this.serviceClient().sapSupportedSku(location); if (inner != null) { - return new SapDiskConfigurationsResultImpl(inner, this.manager()); + return new SapSupportedResourceSkusResultImpl(inner, this.manager()); } else { return null; } @@ -108,10 +99,10 @@ public Response sapDiskConfigurationsWithResponse( } } - public SapAvailabilityZoneDetailsResult sapAvailabilityZoneDetails(String location) { - SapAvailabilityZoneDetailsResultInner inner = this.serviceClient().sapAvailabilityZoneDetails(location); + public SapDiskConfigurationsResult sapDiskConfigurations(String location) { + SapDiskConfigurationsResultInner inner = this.serviceClient().sapDiskConfigurations(location); if (inner != null) { - return new SapAvailabilityZoneDetailsResultImpl(inner, this.manager()); + return new SapDiskConfigurationsResultImpl(inner, this.manager()); } else { return null; } @@ -132,6 +123,15 @@ public Response sapAvailabilityZoneDetailsWith } } + public SapAvailabilityZoneDetailsResult sapAvailabilityZoneDetails(String location) { + SapAvailabilityZoneDetailsResultInner inner = this.serviceClient().sapAvailabilityZoneDetails(location); + if (inner != null) { + return new SapAvailabilityZoneDetailsResultImpl(inner, this.manager()); + } else { + return null; + } + } + private ResourceProvidersClient serviceClient() { return this.innerClient; } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstanceImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstanceImpl.java index e698142b6480f..d4f8b35babeae 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstanceImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstanceImpl.java @@ -13,8 +13,10 @@ import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceProvisioningState; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceStatus; +import com.azure.resourcemanager.workloads.models.StorageInformation; import com.azure.resourcemanager.workloads.models.UpdateSapApplicationInstanceRequest; import java.util.Collections; +import java.util.List; import java.util.Map; public final class SapApplicationServerInstanceImpl @@ -98,6 +100,15 @@ public SapVirtualInstanceStatus status() { return this.innerModel().status(); } + public List storageDetails() { + List inner = this.innerModel().storageDetails(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public SapHealthState health() { return this.innerModel().health(); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesClientImpl.java index 38c118b940893..554a08413785a 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesClientImpl.java @@ -70,7 +70,7 @@ public final class SapApplicationServerInstancesClientImpl implements SapApplica */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientSapAp") - private interface SapApplicationServerInstancesService { + public interface SapApplicationServerInstancesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads" @@ -164,15 +164,16 @@ Mono> listNext( } /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -221,16 +222,17 @@ private Mono> getWithResponseAsync( } /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -276,15 +278,16 @@ private Mono> getWithResponseAsync( } /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance on successful completion of {@link Mono}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -294,54 +297,56 @@ private Mono getAsync( } /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapApplicationServerInstanceInner get( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { - return getAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName).block(); + public Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context) { + return getWithResponseAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, context) + .block(); } /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance along with {@link Response}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context) { - return getWithResponseAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, context) - .block(); + public SapApplicationServerInstanceInner get( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { + return getWithResponse(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, Context.NONE) + .getValue(); } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Application Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Application Server Instance resource along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -397,19 +402,19 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Application Server Instance resource along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -463,17 +468,17 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Application Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapApplicationServerInstanceInner> @@ -495,18 +500,46 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapApplicationServerInstanceInner> + beginCreateAsync(String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { + final SapApplicationServerInstanceInner body = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapApplicationServerInstanceInner.class, + SapApplicationServerInstanceInner.class, + this.client.getContext()); + } + + /** + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapApplicationServerInstanceInner> @@ -530,41 +563,38 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapApplicationServerInstanceInner> beginCreate( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - SapApplicationServerInstanceInner body) { + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { + final SapApplicationServerInstanceInner body = null; return beginCreateAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body) .getSyncPoller(); } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapApplicationServerInstanceInner> beginCreate( @@ -578,17 +608,17 @@ public SyncPoller, SapApplicationS } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Application Server Instance on successful completion of {@link Mono}. + * @return define the SAP Application Server Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -602,16 +632,16 @@ private Mono createAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance on successful completion of {@link Mono}. + * @return define the SAP Application Server Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -623,18 +653,18 @@ private Mono createAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance on successful completion of {@link Mono}. + * @return define the SAP Application Server Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -649,38 +679,16 @@ private Mono createAsync( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Application Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapApplicationServerInstanceInner create( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - SapApplicationServerInstanceInner body) { - return createAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body).block(); - } - - /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapApplicationServerInstanceInner create( @@ -690,18 +698,18 @@ public SapApplicationServerInstanceInner create( } /** - * Puts the SAP Application Server Instance. <br><br>This will be used by service only. PUT by end user - * will return a Bad Request error. + * Puts the SAP Application Server Instance resource. <br><br>This will be used by service only. PUT by + * end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapApplicationServerInstanceInner create( @@ -714,17 +722,17 @@ public SapApplicationServerInstanceInner create( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Application Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Application Server Instance resource along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -780,18 +788,18 @@ private Mono>> updateWithResponseAsync( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Application Server Instance resource along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -845,16 +853,16 @@ private Mono>> updateWithResponseAsync( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Application Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapApplicationServerInstanceInner> @@ -876,17 +884,44 @@ private Mono>> updateWithResponseAsync( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapApplicationServerInstanceInner> + beginUpdateAsync(String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { + final UpdateSapApplicationInstanceRequest body = null; + Mono>> mono = + updateWithResponseAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapApplicationServerInstanceInner.class, + SapApplicationServerInstanceInner.class, + this.client.getContext()); + } + + /** + * Puts the SAP Application Server Instance resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapApplicationServerInstanceInner> @@ -910,39 +945,36 @@ private Mono>> updateWithResponseAsync( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapApplicationServerInstanceInner> beginUpdate( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - UpdateSapApplicationInstanceRequest body) { + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { + final UpdateSapApplicationInstanceRequest body = null; return beginUpdateAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body) .getSyncPoller(); } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapApplicationServerInstanceInner> beginUpdate( @@ -956,16 +988,16 @@ public SyncPoller, SapApplicationS } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Application Server Instance on successful completion of {@link Mono}. + * @return define the SAP Application Server Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -979,15 +1011,15 @@ private Mono updateAsync( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance on successful completion of {@link Mono}. + * @return define the SAP Application Server Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -999,17 +1031,17 @@ private Mono updateAsync( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance on successful completion of {@link Mono}. + * @return define the SAP Application Server Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1024,36 +1056,15 @@ private Mono updateAsync( } /** - * Puts the SAP Application Server Instance. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Application Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapApplicationServerInstanceInner update( - String resourceGroupName, - String sapVirtualInstanceName, - String applicationInstanceName, - UpdateSapApplicationInstanceRequest body) { - return updateAsync(resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body).block(); - } - - /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapApplicationServerInstanceInner update( @@ -1063,17 +1074,17 @@ public SapApplicationServerInstanceInner update( } /** - * Puts the SAP Application Server Instance. + * Puts the SAP Application Server Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param body The SAP Application Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance resource. + * @param body The SAP Application Server Instance resource request body. * @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 define the SAP Application Server Instance. + * @return define the SAP Application Server Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapApplicationServerInstanceInner update( @@ -1086,12 +1097,12 @@ public SapApplicationServerInstanceInner update( } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1145,12 +1156,12 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1202,12 +1213,12 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1229,12 +1240,12 @@ private PollerFlux, OperationStatusResult } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1258,12 +1269,12 @@ private PollerFlux, OperationStatusResult } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1276,12 +1287,12 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1296,12 +1307,12 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1316,12 +1327,12 @@ private Mono deleteAsync( } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1337,12 +1348,12 @@ private Mono deleteAsync( } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1355,12 +1366,12 @@ public OperationStatusResultInner delete( } /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -1374,15 +1385,15 @@ public OperationStatusResultInner delete( } /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of SAP Application Server Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1434,16 +1445,16 @@ private Mono> listSinglePageAsy } /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of SAP Application Server Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1492,14 +1503,15 @@ private Mono> listSinglePageAsy } /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link PagedFlux}. + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1510,15 +1522,16 @@ private PagedFlux listAsync( } /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link PagedFlux}. + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1529,14 +1542,14 @@ private PagedFlux listAsync( } /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1546,15 +1559,15 @@ public PagedIterable list( } /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1566,12 +1579,13 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the collection of SAP Application Server Instances along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of SAP Application Server Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1602,13 +1616,14 @@ private Mono> listNextSinglePag /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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 defines the collection of SAP Application Server Instances along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of SAP Application Server Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesImpl.java index 742907d46ba0e..3e1ad27bbc73b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapApplicationServerInstancesImpl.java @@ -30,17 +30,6 @@ public SapApplicationServerInstancesImpl( this.serviceManager = serviceManager; } - public SapApplicationServerInstance get( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { - SapApplicationServerInstanceInner inner = - this.serviceClient().get(resourceGroupName, sapVirtualInstanceName, applicationInstanceName); - if (inner != null) { - return new SapApplicationServerInstanceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context) { Response inner = @@ -58,6 +47,17 @@ public Response getWithResponse( } } + public SapApplicationServerInstance get( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { + SapApplicationServerInstanceInner inner = + this.serviceClient().get(resourceGroupName, sapVirtualInstanceName, applicationInstanceName); + if (inner != null) { + return new SapApplicationServerInstanceImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName) { OperationStatusResultInner inner = diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesClientImpl.java index d41cfcc1d0cc7..d15cb6d5092fe 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesClientImpl.java @@ -66,7 +66,7 @@ public final class SapCentralInstancesClientImpl implements SapCentralInstancesC */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientSapCe") - private interface SapCentralInstancesService { + public interface SapCentralInstancesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads" @@ -160,16 +160,17 @@ Mono> listNext( } /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the SAP Central Instance along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Central Services Instance resource along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -217,17 +218,18 @@ private Mono> getWithResponseAsync( } /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 SAP Central Instance along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Central Services Instance resource along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -272,16 +274,16 @@ private Mono> getWithResponseAsync( } /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the SAP Central Instance on successful completion of {@link Mono}. + * @return the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -291,56 +293,56 @@ private Mono getAsync( } /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @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 SAP Central Instance. + * @return the SAP Central Services Instance resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapCentralServerInstanceInner get( - String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { - return getAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName).block(); + public Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context) { + return getWithResponseAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, context).block(); } /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the SAP Central Instance along with {@link Response}. + * @return the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context) { - return getWithResponseAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, context).block(); + public SapCentralServerInstanceInner get( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { + return getWithResponse(resourceGroupName, sapVirtualInstanceName, centralInstanceName, Context.NONE).getValue(); } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Central Services Instance resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -395,20 +397,20 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Central Services Instance resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -461,18 +463,18 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Central Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapCentralServerInstanceInner> beginCreateAsync( @@ -493,19 +495,48 @@ private PollerFlux, SapCentralServerIn } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 define the SAP Central Services Instance resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapCentralServerInstanceInner> beginCreateAsync( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { + final SapCentralServerInstanceInner body = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapCentralServerInstanceInner.class, + SapCentralServerInstanceInner.class, + this.client.getContext()); + } + + /** + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapCentralServerInstanceInner> beginCreateAsync( @@ -528,42 +559,39 @@ private PollerFlux, SapCentralServerIn } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapCentralServerInstanceInner> beginCreate( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - SapCentralServerInstanceInner body) { + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { + final SapCentralServerInstanceInner body = null; return beginCreateAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, body).getSyncPoller(); } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapCentralServerInstanceInner> beginCreate( @@ -577,18 +605,18 @@ public SyncPoller, SapCentralServerIns } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance on successful completion of {@link Mono}. + * @return define the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -602,17 +630,17 @@ private Mono createAsync( } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance on successful completion of {@link Mono}. + * @return define the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -624,19 +652,19 @@ private Mono createAsync( } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance on successful completion of {@link Mono}. + * @return define the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -651,40 +679,17 @@ private Mono createAsync( } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapCentralServerInstanceInner create( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - SapCentralServerInstanceInner body) { - return createAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, body).block(); - } - - /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapCentralServerInstanceInner create( @@ -694,19 +699,19 @@ public SapCentralServerInstanceInner create( } /** - * Puts the SAP Central Instance. <br><br>This will be used by service only. PUT by end user will return - * a Bad Request error. + * Creates the SAP Central Services Instance resource. <br><br>This will be used by service only. PUT + * operation on this resource by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance request body. * @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 define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapCentralServerInstanceInner create( @@ -719,18 +724,19 @@ public SapCentralServerInstanceInner create( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Central Services Instance resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -785,19 +791,20 @@ private Mono>> updateWithResponseAsync( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance along with {@link Response} on successful completion of {@link - * Mono}. + * @return define the SAP Central Services Instance resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -850,17 +857,18 @@ private Mono>> updateWithResponseAsync( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Central Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapCentralServerInstanceInner> beginUpdateAsync( @@ -881,18 +889,48 @@ private PollerFlux, SapCentralServerIn } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 define the SAP Central Services Instance resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapCentralServerInstanceInner> beginUpdateAsync( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { + final UpdateSapCentralInstanceRequest body = null; + Mono>> mono = + updateWithResponseAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapCentralServerInstanceInner.class, + SapCentralServerInstanceInner.class, + this.client.getContext()); + } + + /** + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance. + * @return the {@link PollerFlux} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapCentralServerInstanceInner> beginUpdateAsync( @@ -915,40 +953,39 @@ private PollerFlux, SapCentralServerIn } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapCentralServerInstanceInner> beginUpdate( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - UpdateSapCentralInstanceRequest body) { + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { + final UpdateSapCentralInstanceRequest body = null; return beginUpdateAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, body).getSyncPoller(); } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance. + * @return the {@link SyncPoller} for polling of define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapCentralServerInstanceInner> beginUpdate( @@ -962,17 +999,18 @@ public SyncPoller, SapCentralServerIns } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance on successful completion of {@link Mono}. + * @return define the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -986,16 +1024,17 @@ private Mono updateAsync( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance on successful completion of {@link Mono}. + * @return define the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1007,18 +1046,19 @@ private Mono updateAsync( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance on successful completion of {@link Mono}. + * @return define the SAP Central Services Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1033,38 +1073,17 @@ private Mono updateAsync( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapCentralServerInstanceInner update( - String resourceGroupName, - String sapVirtualInstanceName, - String centralInstanceName, - UpdateSapCentralInstanceRequest body) { - return updateAsync(resourceGroupName, sapVirtualInstanceName, centralInstanceName, body).block(); - } - - /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapCentralServerInstanceInner update( @@ -1074,18 +1093,19 @@ public SapCentralServerInstanceInner update( } /** - * Updates the SAP Central Instance. <br><br>This can be used to update tags. + * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the + * resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param body The SAP Central Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @param body The SAP Central Services Instance resource request body. * @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 define the SAP Central Server Instance. + * @return define the SAP Central Services Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapCentralServerInstanceInner update( @@ -1098,13 +1118,14 @@ public SapCentralServerInstanceInner update( } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1157,13 +1178,14 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -1214,13 +1236,14 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1242,13 +1265,14 @@ private PollerFlux, OperationStatusResult } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -1272,13 +1296,14 @@ private PollerFlux, OperationStatusResult } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1291,13 +1316,14 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -1312,13 +1338,14 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1333,13 +1360,14 @@ private Mono deleteAsync( } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -1355,13 +1383,14 @@ private Mono deleteAsync( } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1374,13 +1403,14 @@ public OperationStatusResultInner delete( } /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -1394,15 +1424,15 @@ public OperationStatusResultInner delete( } /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return defines the collection of SAP Central Services Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1454,16 +1484,16 @@ private Mono> listSinglePageAsync( } /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return defines the collection of SAP Central Services Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1512,14 +1542,15 @@ private Mono> listSinglePageAsync( } /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedFlux}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1530,15 +1561,16 @@ private PagedFlux listAsync( } /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedFlux}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1549,14 +1581,15 @@ private PagedFlux listAsync( } /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedIterable}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String sapVirtualInstanceName) { @@ -1564,15 +1597,16 @@ public PagedIterable list(String resourceGroupNam } /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedIterable}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -1583,12 +1617,13 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the collection of SAP Central Instances along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return defines the collection of SAP Central Services Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1619,13 +1654,14 @@ private Mono> listNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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 defines the collection of SAP Central Instances along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return defines the collection of SAP Central Services Instance resources along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesImpl.java index bf4d47434bc9f..630e4a2e7bd75 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralInstancesImpl.java @@ -29,17 +29,6 @@ public SapCentralInstancesImpl( this.serviceManager = serviceManager; } - public SapCentralServerInstance get( - String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { - SapCentralServerInstanceInner inner = - this.serviceClient().get(resourceGroupName, sapVirtualInstanceName, centralInstanceName); - if (inner != null) { - return new SapCentralServerInstanceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context) { Response inner = @@ -57,6 +46,17 @@ public Response getWithResponse( } } + public SapCentralServerInstance get( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { + SapCentralServerInstanceInner inner = + this.serviceClient().get(resourceGroupName, sapVirtualInstanceName, centralInstanceName); + if (inner != null) { + return new SapCentralServerInstanceImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName) { OperationStatusResultInner inner = diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralServerInstanceImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralServerInstanceImpl.java index f887b4cdd5bd7..77fd306d86171 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralServerInstanceImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapCentralServerInstanceImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.workloads.models.EnqueueReplicationServerProperties; import com.azure.resourcemanager.workloads.models.EnqueueServerProperties; import com.azure.resourcemanager.workloads.models.GatewayServerProperties; +import com.azure.resourcemanager.workloads.models.LoadBalancerDetails; import com.azure.resourcemanager.workloads.models.MessageServerProperties; import com.azure.resourcemanager.workloads.models.SapCentralServerInstance; import com.azure.resourcemanager.workloads.models.SapHealthState; @@ -90,6 +91,10 @@ public String kernelPatch() { return this.innerModel().kernelPatch(); } + public LoadBalancerDetails loadBalancerDetails() { + return this.innerModel().loadBalancerDetails(); + } + public List vmDetails() { List inner = this.innerModel().vmDetails(); if (inner != null) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstanceImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstanceImpl.java index 1e6e36fe9a13c..b5bdc553b59e8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstanceImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstanceImpl.java @@ -9,6 +9,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.workloads.fluent.models.SapDatabaseInstanceInner; import com.azure.resourcemanager.workloads.models.DatabaseVmDetails; +import com.azure.resourcemanager.workloads.models.LoadBalancerDetails; import com.azure.resourcemanager.workloads.models.SapDatabaseInstance; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceError; import com.azure.resourcemanager.workloads.models.SapVirtualInstanceProvisioningState; @@ -69,6 +70,10 @@ public String ipAddress() { return this.innerModel().ipAddress(); } + public LoadBalancerDetails loadBalancerDetails() { + return this.innerModel().loadBalancerDetails(); + } + public List vmDetails() { List inner = this.innerModel().vmDetails(); if (inner != null) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesClientImpl.java index e43f52de2a422..9bd1b3ef025d5 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesClientImpl.java @@ -67,7 +67,7 @@ public final class SapDatabaseInstancesClientImpl implements SapDatabaseInstance */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientSapDa") - private interface SapDatabaseInstancesService { + public interface SapDatabaseInstancesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads" @@ -161,15 +161,16 @@ Mono> listNext( } /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the SAP Database Instance along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Database Instance resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -217,16 +218,17 @@ private Mono> getWithResponseAsync( } /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 SAP Database Instance along with {@link Response} on successful completion of {@link Mono}. + * @return the SAP Database Instance resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -271,15 +273,16 @@ private Mono> getWithResponseAsync( } /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the SAP Database Instance on successful completion of {@link Mono}. + * @return the SAP Database Instance resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -289,52 +292,56 @@ private Mono getAsync( } /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @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 SAP Database Instance. + * @return the SAP Database Instance resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapDatabaseInstanceInner get( - String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { - return getAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName).block(); + public Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context) { + return getWithResponseAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, context).block(); } /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the SAP Database Instance along with {@link Response}. + * @return the SAP Database Instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context) { - return getWithResponseAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, context).block(); + public SapDatabaseInstanceInner get( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { + return getWithResponse(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, Context.NONE) + .getValue(); } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance along with {@link Response} on successful completion of {@link Mono}. + * @return define the Database resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -389,18 +396,19 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance along with {@link Response} on successful completion of {@link Mono}. + * @return define the Database resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -453,17 +461,18 @@ private Mono>> createWithResponseAsync( } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Database Instance. + * @return the {@link PollerFlux} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapDatabaseInstanceInner> beginCreateAsync( @@ -484,18 +493,48 @@ private PollerFlux, SapDatabaseInstanceInne } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 define the Database resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapDatabaseInstanceInner> beginCreateAsync( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { + final SapDatabaseInstanceInner body = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapDatabaseInstanceInner.class, + SapDatabaseInstanceInner.class, + this.client.getContext()); + } + + /** + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance. + * @return the {@link PollerFlux} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapDatabaseInstanceInner> beginCreateAsync( @@ -518,40 +557,39 @@ private PollerFlux, SapDatabaseInstanceInne } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapDatabaseInstanceInner> beginCreate( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - SapDatabaseInstanceInner body) { + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { + final SapDatabaseInstanceInner body = null; return beginCreateAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body).getSyncPoller(); } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapDatabaseInstanceInner> beginCreate( @@ -565,17 +603,18 @@ public SyncPoller, SapDatabaseInstanceInner } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance on successful completion of {@link Mono}. + * @return define the Database resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -589,16 +628,17 @@ private Mono createAsync( } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance on successful completion of {@link Mono}. + * @return define the Database resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -610,18 +650,19 @@ private Mono createAsync( } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance on successful completion of {@link Mono}. + * @return define the Database resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -636,38 +677,17 @@ private Mono createAsync( } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapDatabaseInstanceInner create( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - SapDatabaseInstanceInner body) { - return createAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body).block(); - } - - /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapDatabaseInstanceInner create( @@ -677,18 +697,19 @@ public SapDatabaseInstanceInner create( } /** - * Puts the SAP Database Instance. <br><br>This will be used by service only. PUT by end user will - * return a Bad Request error. + * Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. PUT by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Request body of Database resource of a SAP system. * @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 define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapDatabaseInstanceInner create( @@ -701,16 +722,17 @@ public SapDatabaseInstanceInner create( } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance along with {@link Response} on successful completion of {@link Mono}. + * @return define the Database resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -765,17 +787,18 @@ private Mono>> updateWithResponseAsync( } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance along with {@link Response} on successful completion of {@link Mono}. + * @return define the Database resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -828,16 +851,17 @@ private Mono>> updateWithResponseAsync( } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Database Instance. + * @return the {@link PollerFlux} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapDatabaseInstanceInner> beginUpdateAsync( @@ -858,17 +882,46 @@ private PollerFlux, SapDatabaseInstanceInne } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 define the Database resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapDatabaseInstanceInner> beginUpdateAsync( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { + final UpdateSapDatabaseInstanceRequest body = null; + Mono>> mono = + updateWithResponseAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapDatabaseInstanceInner.class, + SapDatabaseInstanceInner.class, + this.client.getContext()); + } + + /** + * Updates the Database resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance. + * @return the {@link PollerFlux} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapDatabaseInstanceInner> beginUpdateAsync( @@ -891,38 +944,37 @@ private PollerFlux, SapDatabaseInstanceInne } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapDatabaseInstanceInner> beginUpdate( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - UpdateSapDatabaseInstanceRequest body) { + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { + final UpdateSapDatabaseInstanceRequest body = null; return beginUpdateAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body).getSyncPoller(); } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance. + * @return the {@link SyncPoller} for polling of define the Database resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapDatabaseInstanceInner> beginUpdate( @@ -936,16 +988,17 @@ public SyncPoller, SapDatabaseInstanceInner } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance on successful completion of {@link Mono}. + * @return define the Database resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -959,15 +1012,16 @@ private Mono updateAsync( } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance on successful completion of {@link Mono}. + * @return define the Database resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -979,17 +1033,18 @@ private Mono updateAsync( } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance on successful completion of {@link Mono}. + * @return define the Database resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1004,36 +1059,16 @@ private Mono updateAsync( } /** - * Puts the SAP Database Instance. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapDatabaseInstanceInner update( - String resourceGroupName, - String sapVirtualInstanceName, - String databaseInstanceName, - UpdateSapDatabaseInstanceRequest body) { - return updateAsync(resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body).block(); - } - - /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapDatabaseInstanceInner update( @@ -1043,17 +1078,18 @@ public SapDatabaseInstanceInner update( } /** - * Puts the SAP Database Instance. + * Updates the Database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param body The SAP Database Server instance request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @param body Database resource update request body. * @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 define the SAP Database Instance. + * @return define the Database resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapDatabaseInstanceInner update( @@ -1066,12 +1102,13 @@ public SapDatabaseInstanceInner update( } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1124,12 +1161,13 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -1180,12 +1218,13 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1207,12 +1246,13 @@ private PollerFlux, OperationStatusResult } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -1236,12 +1276,13 @@ private PollerFlux, OperationStatusResult } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1254,12 +1295,13 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -1274,12 +1316,13 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1294,12 +1337,13 @@ private Mono deleteAsync( } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -1315,12 +1359,13 @@ private Mono deleteAsync( } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1333,12 +1378,13 @@ public OperationStatusResultInner delete( } /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -1352,10 +1398,10 @@ public OperationStatusResultInner delete( } /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1412,10 +1458,10 @@ private Mono> listSinglePageAsync( } /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1470,10 +1516,10 @@ private Mono> listSinglePageAsync( } /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1487,10 +1533,10 @@ private PagedFlux listAsync(String resourceGroupName, } /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1506,10 +1552,10 @@ private PagedFlux listAsync( } /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1521,10 +1567,10 @@ public PagedIterable list(String resourceGroupName, St } /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1540,7 +1586,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1576,7 +1623,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesImpl.java index fa2f569287307..a01fe21a93a16 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapDatabaseInstancesImpl.java @@ -29,17 +29,6 @@ public SapDatabaseInstancesImpl( this.serviceManager = serviceManager; } - public SapDatabaseInstance get( - String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { - SapDatabaseInstanceInner inner = - this.serviceClient().get(resourceGroupName, sapVirtualInstanceName, databaseInstanceName); - if (inner != null) { - return new SapDatabaseInstanceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context) { Response inner = @@ -57,6 +46,17 @@ public Response getWithResponse( } } + public SapDatabaseInstance get( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { + SapDatabaseInstanceInner inner = + this.serviceClient().get(resourceGroupName, sapVirtualInstanceName, databaseInstanceName); + if (inner != null) { + return new SapDatabaseInstanceImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName) { OperationStatusResultInner inner = diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstanceImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstanceImpl.java index 738e6903068ab..81c4fe96c069b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstanceImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstanceImpl.java @@ -216,10 +216,6 @@ public OperationStatusResult start(Context context) { return serviceManager.sapVirtualInstances().start(resourceGroupName, sapVirtualInstanceName, context); } - public OperationStatusResult stop(StopRequest body) { - return serviceManager.sapVirtualInstances().stop(resourceGroupName, sapVirtualInstanceName, body); - } - public OperationStatusResult stop() { return serviceManager.sapVirtualInstances().stop(resourceGroupName, sapVirtualInstanceName); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesClientImpl.java index 6df70251c9546..6881b68144ed3 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesClientImpl.java @@ -68,7 +68,7 @@ public final class SapVirtualInstancesClientImpl implements SapVirtualInstancesC */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientSapVi") - private interface SapVirtualInstancesService { + public interface SapVirtualInstancesService { @Headers({"Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads" @@ -209,15 +209,16 @@ Mono> listBySubscriptionNext( } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the Virtual Instance for SAP along with {@link Response} on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -264,16 +265,17 @@ private Mono>> createWithResponseAsync( } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP along with {@link Response} on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -317,15 +319,15 @@ private Mono>> createWithResponseAsync( } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 define the Virtual Instance for SAP. + * @return the {@link PollerFlux} for polling of define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapVirtualInstanceInner> beginCreateAsync( @@ -343,16 +345,42 @@ private PollerFlux, SapVirtualInstanceInner> } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP solutions resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SapVirtualInstanceInner> beginCreateAsync( + String resourceGroupName, String sapVirtualInstanceName) { + final SapVirtualInstanceInner body = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, sapVirtualInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + SapVirtualInstanceInner.class, + SapVirtualInstanceInner.class, + this.client.getContext()); + } + + /** + * Creates a Virtual Instance for SAP solutions (VIS) resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP. + * @return the {@link PollerFlux} for polling of define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SapVirtualInstanceInner> beginCreateAsync( @@ -371,33 +399,33 @@ private PollerFlux, SapVirtualInstanceInner> } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP. + * @return the {@link SyncPoller} for polling of define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapVirtualInstanceInner> beginCreate( - String resourceGroupName, String sapVirtualInstanceName, SapVirtualInstanceInner body) { + String resourceGroupName, String sapVirtualInstanceName) { + final SapVirtualInstanceInner body = null; return beginCreateAsync(resourceGroupName, sapVirtualInstanceName, body).getSyncPoller(); } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP. + * @return the {@link SyncPoller} for polling of define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SapVirtualInstanceInner> beginCreate( @@ -406,15 +434,15 @@ public SyncPoller, SapVirtualInstanceInner> } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the Virtual Instance for SAP on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -425,14 +453,14 @@ private Mono createAsync( } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync(String resourceGroupName, String sapVirtualInstanceName) { @@ -443,16 +471,16 @@ private Mono createAsync(String resourceGroupName, Stri } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -463,31 +491,14 @@ private Mono createAsync( } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SapVirtualInstanceInner create( - String resourceGroupName, String sapVirtualInstanceName, SapVirtualInstanceInner body) { - return createAsync(resourceGroupName, sapVirtualInstanceName, body).block(); - } - - /** - * Creates an Virtual Instance for SAP. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the Virtual Instance for SAP. + * @return define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapVirtualInstanceInner create(String resourceGroupName, String sapVirtualInstanceName) { @@ -496,16 +507,16 @@ public SapVirtualInstanceInner create(String resourceGroupName, String sapVirtua } /** - * Creates an Virtual Instance for SAP. + * Creates a Virtual Instance for SAP solutions (VIS) resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Virtual Instance for SAP solutions resource request body. * @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 define the Virtual Instance for SAP. + * @return define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public SapVirtualInstanceInner create( @@ -514,14 +525,15 @@ public SapVirtualInstanceInner create( } /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP along with {@link Response} on successful completion of {@link Mono}. + * @return a Virtual Instance for SAP solutions resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -564,15 +576,16 @@ private Mono> getByResourceGroupWithResponseAs } /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP along with {@link Response} on successful completion of {@link Mono}. + * @return a Virtual Instance for SAP solutions resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -612,14 +625,14 @@ private Mono> getByResourceGroupWithResponseAs } /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP on successful completion of {@link Mono}. + * @return a Virtual Instance for SAP solutions resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync( @@ -629,47 +642,48 @@ private Mono getByResourceGroupAsync( } /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP. + * @return a Virtual Instance for SAP solutions resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapVirtualInstanceInner getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName) { - return getByResourceGroupAsync(resourceGroupName, sapVirtualInstanceName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String sapVirtualInstanceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, sapVirtualInstanceName, context).block(); } /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP along with {@link Response}. + * @return a Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String sapVirtualInstanceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, sapVirtualInstanceName, context).block(); + public SapVirtualInstanceInner getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName) { + return getByResourceGroupWithResponse(resourceGroupName, sapVirtualInstanceName, Context.NONE).getValue(); } /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Update Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Request body to update a Virtual Instance for SAP solutions 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 define the Virtual Instance for SAP along with {@link Response} on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -716,16 +730,17 @@ private Mono> updateWithResponseAsync( } /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Update Virtual Instance for SAP request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Request body to update a Virtual Instance for SAP solutions 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 define the Virtual Instance for SAP along with {@link Response} on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -772,32 +787,14 @@ private Mono> updateWithResponseAsync( } /** - * Updates an Virtual Instance for SAP. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Update Virtual Instance for SAP request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return define the Virtual Instance for SAP on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String sapVirtualInstanceName, UpdateSapVirtualInstanceRequest body) { - return updateWithResponseAsync(resourceGroupName, sapVirtualInstanceName, body) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP on successful completion of {@link Mono}. + * @return define the Virtual Instance for SAP solutions resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String sapVirtualInstanceName) { @@ -807,47 +804,48 @@ private Mono updateAsync(String resourceGroupName, Stri } /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body Request body to update a Virtual Instance for SAP solutions 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 define the Virtual Instance for SAP. + * @return define the Virtual Instance for SAP solutions resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SapVirtualInstanceInner update(String resourceGroupName, String sapVirtualInstanceName) { - final UpdateSapVirtualInstanceRequest body = null; - return updateAsync(resourceGroupName, sapVirtualInstanceName, body).block(); + public Response updateWithResponse( + String resourceGroupName, + String sapVirtualInstanceName, + UpdateSapVirtualInstanceRequest body, + Context context) { + return updateWithResponseAsync(resourceGroupName, sapVirtualInstanceName, body, context).block(); } /** - * Updates an Virtual Instance for SAP. + * Updates a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Update Virtual Instance for SAP request body. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 define the Virtual Instance for SAP along with {@link Response}. + * @return define the Virtual Instance for SAP solutions resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String sapVirtualInstanceName, - UpdateSapVirtualInstanceRequest body, - Context context) { - return updateWithResponseAsync(resourceGroupName, sapVirtualInstanceName, body, context).block(); + public SapVirtualInstanceInner update(String resourceGroupName, String sapVirtualInstanceName) { + final UpdateSapVirtualInstanceRequest body = null; + return updateWithResponse(resourceGroupName, sapVirtualInstanceName, body, Context.NONE).getValue(); } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -895,10 +893,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -944,10 +943,11 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -968,10 +968,11 @@ private PollerFlux, OperationStatusResult } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -995,10 +996,11 @@ private PollerFlux, OperationStatusResult } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1011,10 +1013,11 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1028,10 +1031,11 @@ public SyncPoller, OperationStatusResultI } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1045,10 +1049,11 @@ private Mono deleteAsync(String resourceGroupName, S } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1064,10 +1069,11 @@ private Mono deleteAsync( } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1079,10 +1085,11 @@ public OperationStatusResultInner delete(String resourceGroupName, String sapVir } /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1095,14 +1102,14 @@ public OperationStatusResultInner delete(String resourceGroupName, String sapVir } /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -1147,15 +1154,15 @@ private Mono> listByResourceGroupSinglePa } /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -1198,13 +1205,14 @@ private Mono> listByResourceGroupSinglePa } /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedFlux}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -1214,14 +1222,15 @@ private PagedFlux listByResourceGroupAsync(String resou } /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedFlux}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -1231,13 +1240,14 @@ private PagedFlux listByResourceGroupAsync(String resou } /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -1245,14 +1255,15 @@ public PagedIterable listByResourceGroup(String resourc } /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -1260,12 +1271,12 @@ public PagedIterable listByResourceGroup(String resourc } /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @throws 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 Virtual Instances for SAP in the subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all Virtual Instances for SAP solutions resources in a Subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -1305,14 +1316,14 @@ private Mono> listSinglePageAsync() { } /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 all Virtual Instances for SAP in the subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all Virtual Instances for SAP solutions resources in a Subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -1349,11 +1360,12 @@ private Mono> listSinglePageAsync(Context } /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @throws 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 Virtual Instances for SAP in the subscription as paginated response with {@link PagedFlux}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -1362,13 +1374,14 @@ private PagedFlux listAsync() { } /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 all Virtual Instances for SAP in the subscription as paginated response with {@link PagedFlux}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -1377,11 +1390,12 @@ private PagedFlux listAsync(Context context) { } /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @throws 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 Virtual Instances for SAP in the subscription as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -1389,13 +1403,14 @@ public PagedIterable list() { } /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 all Virtual Instances for SAP in the subscription as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -1403,10 +1418,10 @@ public PagedIterable list(Context context) { } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1454,10 +1469,10 @@ private Mono>> startWithResponseAsync( } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1503,10 +1518,10 @@ private Mono>> startWithResponseAsync( } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1527,10 +1542,10 @@ private PollerFlux, OperationStatusResult } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1554,10 +1569,10 @@ private PollerFlux, OperationStatusResult } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1570,10 +1585,10 @@ public SyncPoller, OperationStatusResultI } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1587,10 +1602,10 @@ public SyncPoller, OperationStatusResultI } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1604,10 +1619,10 @@ private Mono startAsync(String resourceGroupName, St } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1623,10 +1638,10 @@ private Mono startAsync( } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1638,10 +1653,10 @@ public OperationStatusResultInner start(String resourceGroupName, String sapVirt } /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1654,11 +1669,11 @@ public OperationStatusResultInner start(String resourceGroupName, String sapVirt } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1710,11 +1725,11 @@ private Mono>> stopWithResponseAsync( } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -1764,11 +1779,11 @@ private Mono>> stopWithResponseAsync( } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1789,11 +1804,36 @@ private PollerFlux, OperationStatusResult } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> beginStopAsync( + String resourceGroupName, String sapVirtualInstanceName) { + final StopRequest body = null; + Mono>> mono = stopWithResponseAsync(resourceGroupName, sapVirtualInstanceName, body); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + OperationStatusResultInner.class, + OperationStatusResultInner.class, + this.client.getContext()); + } + + /** + * Stops the SAP Application, that is the Application server instances and Central Services instance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -1817,11 +1857,10 @@ private PollerFlux, OperationStatusResult } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1829,16 +1868,17 @@ private PollerFlux, OperationStatusResult */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, OperationStatusResultInner> beginStop( - String resourceGroupName, String sapVirtualInstanceName, StopRequest body) { + String resourceGroupName, String sapVirtualInstanceName) { + final StopRequest body = null; return beginStopAsync(resourceGroupName, sapVirtualInstanceName, body).getSyncPoller(); } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -1852,11 +1892,11 @@ public SyncPoller, OperationStatusResultI } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1871,10 +1911,10 @@ private Mono stopAsync( } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1889,11 +1929,11 @@ private Mono stopAsync(String resourceGroupName, Str } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -1909,26 +1949,10 @@ private Mono stopAsync( } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public OperationStatusResultInner stop(String resourceGroupName, String sapVirtualInstanceName, StopRequest body) { - return stopAsync(resourceGroupName, sapVirtualInstanceName, body).block(); - } - - /** - * Stops the SAP System. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -1941,11 +1965,11 @@ public OperationStatusResultInner stop(String resourceGroupName, String sapVirtu } /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -1961,12 +1985,13 @@ public OperationStatusResultInner stop( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the collection of Virtual Instance for SAP along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of Virtual Instance for SAP solutions resources along with {@link PagedResponse} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1998,13 +2023,14 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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 defines the collection of Virtual Instance for SAP along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of Virtual Instance for SAP solutions resources along with {@link PagedResponse} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( @@ -2036,12 +2062,13 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return defines the collection of Virtual Instance for SAP along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of Virtual Instance for SAP solutions resources along with {@link PagedResponse} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2073,13 +2100,14 @@ private Mono> listBySubscriptionNextSingl /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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 defines the collection of Virtual Instance for SAP along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return defines the collection of Virtual Instance for SAP solutions resources along with {@link PagedResponse} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesImpl.java index 5e4aad740b961..03a0962bfaf95 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SapVirtualInstancesImpl.java @@ -30,16 +30,6 @@ public SapVirtualInstancesImpl( this.serviceManager = serviceManager; } - public SapVirtualInstance getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName) { - SapVirtualInstanceInner inner = - this.serviceClient().getByResourceGroup(resourceGroupName, sapVirtualInstanceName); - if (inner != null) { - return new SapVirtualInstanceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String sapVirtualInstanceName, Context context) { Response inner = @@ -55,6 +45,16 @@ public Response getByResourceGroupWithResponse( } } + public SapVirtualInstance getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName) { + SapVirtualInstanceInner inner = + this.serviceClient().getByResourceGroup(resourceGroupName, sapVirtualInstanceName); + if (inner != null) { + return new SapVirtualInstanceImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String sapVirtualInstanceName) { OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, sapVirtualInstanceName); if (inner != null) { @@ -114,15 +114,6 @@ public OperationStatusResult start(String resourceGroupName, String sapVirtualIn } } - public OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName, StopRequest body) { - OperationStatusResultInner inner = this.serviceClient().stop(resourceGroupName, sapVirtualInstanceName, body); - if (inner != null) { - return new OperationStatusResultImpl(inner, this.manager()); - } else { - return null; - } - } - public OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName) { OperationStatusResultInner inner = this.serviceClient().stop(resourceGroupName, sapVirtualInstanceName); if (inner != null) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SkusClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SkusClientImpl.java index ab2ca866f85e8..4f284a5457078 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SkusClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/SkusClientImpl.java @@ -54,7 +54,7 @@ public final class SkusClientImpl implements SkusClient { */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientSkus") - private interface SkusService { + public interface SkusService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/skus") @ExpectedResponses({200}) @@ -222,7 +222,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -258,7 +259,8 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstanceResourceImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstanceResourceImpl.java index 88d0d05fa340f..fd92003cf5870 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstanceResourceImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstanceResourceImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.workloads.implementation; +import com.azure.core.management.SystemData; import com.azure.resourcemanager.workloads.fluent.models.WordpressInstanceResourceInner; import com.azure.resourcemanager.workloads.models.ApplicationProvisioningState; import com.azure.resourcemanager.workloads.models.WordpressInstanceResource; @@ -33,6 +34,10 @@ public String type() { return this.innerModel().type(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public WordpressVersions version() { return this.innerModel().version(); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesClientImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesClientImpl.java index 795fe812bda4d..610ab7cd3fbef 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesClientImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesClientImpl.java @@ -63,7 +63,7 @@ public final class WordpressInstancesClientImpl implements WordpressInstancesCli */ @Host("{$host}") @ServiceInterface(name = "WorkloadsClientWordp") - private interface WordpressInstancesService { + public interface WordpressInstancesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads" @@ -437,14 +437,16 @@ private Mono getAsync(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @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 WordPress instance resource. + * @return the WordPress instance resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WordpressInstanceResourceInner get(String resourceGroupName, String phpWorkloadName) { - return getAsync(resourceGroupName, phpWorkloadName).block(); + public Response getWithResponse( + String resourceGroupName, String phpWorkloadName, Context context) { + return getWithResponseAsync(resourceGroupName, phpWorkloadName, context).block(); } /** @@ -452,16 +454,14 @@ public WordpressInstanceResourceInner get(String resourceGroupName, String phpWo * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @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 WordPress instance resource along with {@link Response}. + * @return the WordPress instance resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String phpWorkloadName, Context context) { - return getWithResponseAsync(resourceGroupName, phpWorkloadName, context).block(); + public WordpressInstanceResourceInner get(String resourceGroupName, String phpWorkloadName) { + return getWithResponse(resourceGroupName, phpWorkloadName, Context.NONE).getValue(); } /** @@ -878,13 +878,15 @@ private Mono deleteAsync(String resourceGroupName, String phpWorkloadName) * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String phpWorkloadName) { - deleteAsync(resourceGroupName, phpWorkloadName).block(); + public Response deleteWithResponse(String resourceGroupName, String phpWorkloadName, Context context) { + return deleteWithResponseAsync(resourceGroupName, phpWorkloadName, context).block(); } /** @@ -892,21 +894,20 @@ public void delete(String resourceGroupName, String phpWorkloadName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String phpWorkloadName, Context context) { - return deleteWithResponseAsync(resourceGroupName, phpWorkloadName, context).block(); + public void delete(String resourceGroupName, String phpWorkloadName) { + deleteWithResponse(resourceGroupName, phpWorkloadName, Context.NONE); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -942,7 +943,8 @@ private Mono> listNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @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. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesImpl.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesImpl.java index 5ffb101b156f8..a95eeea2ce3be 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesImpl.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WordpressInstancesImpl.java @@ -40,15 +40,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new WordpressInstanceResourceImpl(inner1, this.manager())); } - public WordpressInstanceResource get(String resourceGroupName, String phpWorkloadName) { - WordpressInstanceResourceInner inner = this.serviceClient().get(resourceGroupName, phpWorkloadName); - if (inner != null) { - return new WordpressInstanceResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String phpWorkloadName, Context context) { Response inner = @@ -64,6 +55,15 @@ public Response getWithResponse( } } + public WordpressInstanceResource get(String resourceGroupName, String phpWorkloadName) { + WordpressInstanceResourceInner inner = this.serviceClient().get(resourceGroupName, phpWorkloadName); + if (inner != null) { + return new WordpressInstanceResourceImpl(inner, this.manager()); + } else { + return null; + } + } + public WordpressInstanceResource createOrUpdate( String resourceGroupName, String phpWorkloadName, WordpressInstanceResourceInner wordpressInstanceResource) { WordpressInstanceResourceInner inner = @@ -89,12 +89,13 @@ public WordpressInstanceResource createOrUpdate( } } - public void deleteByResourceGroup(String resourceGroupName, String phpWorkloadName) { - this.serviceClient().delete(resourceGroupName, phpWorkloadName); + public Response deleteByResourceGroupWithResponse( + String resourceGroupName, String phpWorkloadName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, phpWorkloadName, context); } - public Response deleteWithResponse(String resourceGroupName, String phpWorkloadName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, phpWorkloadName, context); + public void deleteByResourceGroup(String resourceGroupName, String phpWorkloadName) { + this.serviceClient().delete(resourceGroupName, phpWorkloadName); } private WordpressInstancesClient serviceClient() { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WorkloadsClientBuilder.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WorkloadsClientBuilder.java index 1c08f50a28994..6db732ae69d52 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WorkloadsClientBuilder.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/implementation/WorkloadsClientBuilder.java @@ -119,24 +119,26 @@ public WorkloadsClientBuilder serializerAdapter(SerializerAdapter serializerAdap * @return an instance of WorkloadsClientImpl. */ public WorkloadsClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); WorkloadsClientImpl client = new WorkloadsClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ActionType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ActionType.java index d0660a2e0a2c1..2277252f68f31 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ActionType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ActionType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ActionType. */ +/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** Static value Internal for ActionType. */ public static final ActionType INTERNAL = fromString("Internal"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationProvisioningState.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationProvisioningState.java index 89e8261e63fd3..7e034b6789e58 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationProvisioningState.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ApplicationProvisioningState. */ +/** WordPress instance provisioning state. */ public final class ApplicationProvisioningState extends ExpandableStringEnum { /** Static value NotSpecified for ApplicationProvisioningState. */ public static final ApplicationProvisioningState NOT_SPECIFIED = fromString("NotSpecified"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationServerConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationServerConfiguration.java index a18dc7b7b446c..fb143f9ba9602 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationServerConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ApplicationServerConfiguration.java @@ -29,6 +29,10 @@ public final class ApplicationServerConfiguration { @JsonProperty(value = "instanceCount", required = true) private long instanceCount; + /** Creates an instance of ApplicationServerConfiguration class. */ + public ApplicationServerConfiguration() { + } + /** * Get the subnetId property: The subnet id. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/AzureFrontDoorEnabled.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/AzureFrontDoorEnabled.java index b6cfc8ee211cb..70b5c11b7798b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/AzureFrontDoorEnabled.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/AzureFrontDoorEnabled.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AzureFrontDoorEnabled. */ +/** Whether to enable Azure front door. */ public final class AzureFrontDoorEnabled extends ExpandableStringEnum { /** Static value Enabled for AzureFrontDoorEnabled. */ public static final AzureFrontDoorEnabled ENABLED = fromString("Enabled"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/BackupProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/BackupProfile.java index 11465862d463b..1d714f8dd3efb 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/BackupProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/BackupProfile.java @@ -23,6 +23,10 @@ public final class BackupProfile { @JsonProperty(value = "vaultResourceId", access = JsonProperty.Access.WRITE_ONLY) private String vaultResourceId; + /** Creates an instance of BackupProfile class. */ + public BackupProfile() { + } + /** * Get the backupEnabled property: Whether to enable Azure backup for the workload. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CacheProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CacheProfile.java index 5b27b7b8766ff..fa6eee22bcbe1 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CacheProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CacheProfile.java @@ -41,6 +41,10 @@ public final class CacheProfile { @JsonProperty(value = "cacheResourceId", access = JsonProperty.Access.WRITE_ONLY) private String cacheResourceId; + /** Creates an instance of CacheProfile class. */ + public CacheProfile() { + } + /** * Get the name property: Cache name. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerConfiguration.java index 77cc7e198a685..dfa832f234e25 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerConfiguration.java @@ -29,6 +29,10 @@ public final class CentralServerConfiguration { @JsonProperty(value = "instanceCount", required = true) private long instanceCount; + /** Creates an instance of CentralServerConfiguration class. */ + public CentralServerConfiguration() { + } + /** * Get the subnetId property: The subnet id. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVirtualMachineType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVirtualMachineType.java index d0d9670805c57..9a934b68d2aaa 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVirtualMachineType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVirtualMachineType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for CentralServerVirtualMachineType. */ +/** Defines the type of central server VM. */ public final class CentralServerVirtualMachineType extends ExpandableStringEnum { /** Static value Primary for CentralServerVirtualMachineType. */ public static final CentralServerVirtualMachineType PRIMARY = fromString("Primary"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVmDetails.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVmDetails.java index 35c83c1dd6d81..e00c49d83e25b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVmDetails.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CentralServerVmDetails.java @@ -6,8 +6,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; -/** The Central Server VM Details. */ +/** The SAP Central Services Instance VM details. */ @Immutable public final class CentralServerVmDetails { /* @@ -22,6 +23,17 @@ public final class CentralServerVmDetails { @JsonProperty(value = "virtualMachineId", access = JsonProperty.Access.WRITE_ONLY) private String virtualMachineId; + /* + * Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared + * Storage. + */ + @JsonProperty(value = "storageDetails", access = JsonProperty.Access.WRITE_ONLY) + private List storageDetails; + + /** Creates an instance of CentralServerVmDetails class. */ + public CentralServerVmDetails() { + } + /** * Get the type property: Defines the type of central server VM. * @@ -40,11 +52,24 @@ public String virtualMachineId() { return this.virtualMachineId; } + /** + * Get the storageDetails property: Storage details of all the Storage Accounts attached to the ASCS Virtual + * Machine. For e.g. NFS on AFS Shared Storage. + * + * @return the storageDetails value. + */ + public List storageDetails() { + return this.storageDetails; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (storageDetails() != null) { + storageDetails().forEach(e -> e.validate()); + } } } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ConfigurationType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ConfigurationType.java new file mode 100644 index 0000000000000..6c889a65f72e7 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ConfigurationType.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** The type of file share config. */ +public final class ConfigurationType extends ExpandableStringEnum { + /** Static value Skip for ConfigurationType. */ + public static final ConfigurationType SKIP = fromString("Skip"); + + /** Static value CreateAndMount for ConfigurationType. */ + public static final ConfigurationType CREATE_AND_MOUNT = fromString("CreateAndMount"); + + /** Static value Mount for ConfigurationType. */ + public static final ConfigurationType MOUNT = fromString("Mount"); + + /** + * Creates or finds a ConfigurationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ConfigurationType. + */ + @JsonCreator + public static ConfigurationType fromString(String name) { + return fromString(name, ConfigurationType.class); + } + + /** + * Gets known ConfigurationType values. + * + * @return known ConfigurationType values. + */ + public static Collection values() { + return values(ConfigurationType.class); + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CreateAndMountFileShareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CreateAndMountFileShareConfiguration.java new file mode 100644 index 0000000000000..b05df485f9082 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/CreateAndMountFileShareConfiguration.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of + * the create infra flow. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "configurationType") +@JsonTypeName("CreateAndMount") +@Fluent +public final class CreateAndMountFileShareConfiguration extends FileShareConfiguration { + /* + * The name of file share resource group. The app rg is used in case of missing input. + */ + @JsonProperty(value = "resourceGroup") + private String resourceGroup; + + /* + * The name of file share storage account name . A custom name is used in case of missing input. + */ + @JsonProperty(value = "storageAccountName") + private String storageAccountName; + + /** Creates an instance of CreateAndMountFileShareConfiguration class. */ + public CreateAndMountFileShareConfiguration() { + } + + /** + * Get the resourceGroup property: The name of file share resource group. The app rg is used in case of missing + * input. + * + * @return the resourceGroup value. + */ + public String resourceGroup() { + return this.resourceGroup; + } + + /** + * Set the resourceGroup property: The name of file share resource group. The app rg is used in case of missing + * input. + * + * @param resourceGroup the resourceGroup value to set. + * @return the CreateAndMountFileShareConfiguration object itself. + */ + public CreateAndMountFileShareConfiguration withResourceGroup(String resourceGroup) { + this.resourceGroup = resourceGroup; + return this; + } + + /** + * Get the storageAccountName property: The name of file share storage account name . A custom name is used in case + * of missing input. + * + * @return the storageAccountName value. + */ + public String storageAccountName() { + return this.storageAccountName; + } + + /** + * Set the storageAccountName property: The name of file share storage account name . A custom name is used in case + * of missing input. + * + * @param storageAccountName the storageAccountName value to set. + * @return the CreateAndMountFileShareConfiguration object itself. + */ + public CreateAndMountFileShareConfiguration withStorageAccountName(String storageAccountName) { + this.storageAccountName = storageAccountName; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DB2ProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DB2ProviderInstanceProperties.java index 53972ac4fedd2..699a2d830497c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DB2ProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DB2ProviderInstanceProperties.java @@ -56,6 +56,22 @@ public final class DB2ProviderInstanceProperties extends ProviderSpecificPropert @JsonProperty(value = "sapSid") private String sapSid; + /* + * Gets or sets certificate preference if secure communication is enabled. + */ + @JsonProperty(value = "sslPreference") + private SslPreference sslPreference; + + /* + * Gets or sets the blob URI to SSL certificate for the DB2 Database. + */ + @JsonProperty(value = "sslCertificateUri") + private String sslCertificateUri; + + /** Creates an instance of DB2ProviderInstanceProperties class. */ + public DB2ProviderInstanceProperties() { + } + /** * Get the hostname property: Gets or sets the target virtual machine name. * @@ -196,6 +212,46 @@ public DB2ProviderInstanceProperties withSapSid(String sapSid) { return this; } + /** + * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @return the sslPreference value. + */ + public SslPreference sslPreference() { + return this.sslPreference; + } + + /** + * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @param sslPreference the sslPreference value to set. + * @return the DB2ProviderInstanceProperties object itself. + */ + public DB2ProviderInstanceProperties withSslPreference(SslPreference sslPreference) { + this.sslPreference = sslPreference; + return this; + } + + /** + * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the DB2 Database. + * + * @return the sslCertificateUri value. + */ + public String sslCertificateUri() { + return this.sslCertificateUri; + } + + /** + * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the DB2 Database. + * + * @param sslCertificateUri the sslCertificateUri value to set. + * @return the DB2ProviderInstanceProperties object itself. + */ + public DB2ProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) { + this.sslCertificateUri = sslCertificateUri; + return this; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseConfiguration.java index 09b99f23406db..f3b2faca3890d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseConfiguration.java @@ -35,6 +35,16 @@ public final class DatabaseConfiguration { @JsonProperty(value = "instanceCount", required = true) private long instanceCount; + /* + * Gets or sets the disk configuration. + */ + @JsonProperty(value = "diskConfiguration") + private DiskConfiguration diskConfiguration; + + /** Creates an instance of DatabaseConfiguration class. */ + public DatabaseConfiguration() { + } + /** * Get the databaseType property: The database type. * @@ -116,6 +126,26 @@ public DatabaseConfiguration withInstanceCount(long instanceCount) { return this; } + /** + * Get the diskConfiguration property: Gets or sets the disk configuration. + * + * @return the diskConfiguration value. + */ + public DiskConfiguration diskConfiguration() { + return this.diskConfiguration; + } + + /** + * Set the diskConfiguration property: Gets or sets the disk configuration. + * + * @param diskConfiguration the diskConfiguration value to set. + * @return the DatabaseConfiguration object itself. + */ + public DatabaseConfiguration withDiskConfiguration(DiskConfiguration diskConfiguration) { + this.diskConfiguration = diskConfiguration; + return this; + } + /** * Validates the instance. * @@ -135,6 +165,9 @@ public void validate() { } else { virtualMachineConfiguration().validate(); } + if (diskConfiguration() != null) { + diskConfiguration().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(DatabaseConfiguration.class); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseProfile.java index 9d31808e889d1..28a0477897d27 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseProfile.java @@ -83,6 +83,10 @@ public final class DatabaseProfile { @JsonProperty(value = "serverResourceId", access = JsonProperty.Access.WRITE_ONLY) private String serverResourceId; + /** Creates an instance of DatabaseProfile class. */ + public DatabaseProfile() { + } + /** * Get the type property: Database type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseTier.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseTier.java index fe930d44fafda..6fe558328fda6 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseTier.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseTier.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for DatabaseTier. */ +/** Tier of the server SKU. */ public enum DatabaseTier { /** Enum value Burstable. */ BURSTABLE("Burstable"), @@ -33,6 +33,9 @@ public enum DatabaseTier { */ @JsonCreator public static DatabaseTier fromString(String value) { + if (value == null) { + return null; + } DatabaseTier[] items = DatabaseTier.values(); for (DatabaseTier item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +45,7 @@ public static DatabaseTier fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseType.java index a8386626c9310..e737a1be17cc6 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DatabaseType. */ +/** Database type. */ public final class DatabaseType extends ExpandableStringEnum { /** Static value MySql for DatabaseType. */ public static final DatabaseType MY_SQL = fromString("MySql"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseVmDetails.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseVmDetails.java index 0c564446bf30a..0002109d1ccd0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseVmDetails.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DatabaseVmDetails.java @@ -6,8 +6,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; -/** The Database VM Details. */ +/** Database VM details. */ @Immutable public final class DatabaseVmDetails { /* @@ -22,6 +23,17 @@ public final class DatabaseVmDetails { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private SapVirtualInstanceStatus status; + /* + * Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared + * Storage. + */ + @JsonProperty(value = "storageDetails", access = JsonProperty.Access.WRITE_ONLY) + private List storageDetails; + + /** Creates an instance of DatabaseVmDetails class. */ + public DatabaseVmDetails() { + } + /** * Get the virtualMachineId property: The virtualMachineId property. * @@ -40,11 +52,24 @@ public SapVirtualInstanceStatus status() { return this.status; } + /** + * Get the storageDetails property: Storage details of all the Storage Accounts attached to the Database Virtual + * Machine. For e.g. NFS on AFS Shared Storage. + * + * @return the storageDetails value. + */ + public List storageDetails() { + return this.storageDetails; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (storageDetails() != null) { + storageDetails().forEach(e -> e.validate()); + } } } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeployerVmPackages.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeployerVmPackages.java index b127c7f06b25c..97737982788dc 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeployerVmPackages.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeployerVmPackages.java @@ -22,6 +22,10 @@ public final class DeployerVmPackages { @JsonProperty(value = "storageAccountId") private String storageAccountId; + /** Creates an instance of DeployerVmPackages class. */ + public DeployerVmPackages() { + } + /** * Get the url property: The URL to the deployer VM packages file. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentConfiguration.java index 67ae81b39f71f..ee75617f5df43 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentConfiguration.java @@ -32,6 +32,10 @@ public final class DeploymentConfiguration extends SapConfiguration { @JsonProperty(value = "softwareConfiguration") private SoftwareConfiguration softwareConfiguration; + /** Creates an instance of DeploymentConfiguration class. */ + public DeploymentConfiguration() { + } + /** * Get the appLocation property: The geo-location where the SAP system is to be created. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentWithOSConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentWithOSConfiguration.java index 1d519037b8f41..a2099837a6d61 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentWithOSConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DeploymentWithOSConfiguration.java @@ -38,6 +38,10 @@ public final class DeploymentWithOSConfiguration extends SapConfiguration { @JsonProperty(value = "osSapConfiguration") private OsSapConfiguration osSapConfiguration; + /** Creates an instance of DeploymentWithOSConfiguration class. */ + public DeploymentWithOSConfiguration() { + } + /** * Get the appLocation property: The geo-location where the SAP system is to be created. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiscoveryConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiscoveryConfiguration.java index 6f0a241032317..31f7fd5eae98c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiscoveryConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiscoveryConfiguration.java @@ -26,6 +26,10 @@ public final class DiscoveryConfiguration extends SapConfiguration { @JsonProperty(value = "appLocation", access = JsonProperty.Access.WRITE_ONLY) private String appLocation; + /** Creates an instance of DiscoveryConfiguration class. */ + public DiscoveryConfiguration() { + } + /** * Get the centralServerVmId property: The virtual machine ID of the Central Server. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskConfiguration.java new file mode 100644 index 0000000000000..8497c9e0908a0 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskConfiguration.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** The Disk Configuration Details. */ +@Fluent +public final class DiskConfiguration { + /* + * The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', + * hana/shared', 'usr/sap', 'os'], Optional volume : ['backup']. + */ + @JsonProperty(value = "diskVolumeConfigurations") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map diskVolumeConfigurations; + + /** Creates an instance of DiskConfiguration class. */ + public DiskConfiguration() { + } + + /** + * Get the diskVolumeConfigurations property: The disk configuration for the db volume. For HANA, Required volumes + * are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup']. + * + * @return the diskVolumeConfigurations value. + */ + public Map diskVolumeConfigurations() { + return this.diskVolumeConfigurations; + } + + /** + * Set the diskVolumeConfigurations property: The disk configuration for the db volume. For HANA, Required volumes + * are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup']. + * + * @param diskVolumeConfigurations the diskVolumeConfigurations value to set. + * @return the DiskConfiguration object itself. + */ + public DiskConfiguration withDiskVolumeConfigurations( + Map diskVolumeConfigurations) { + this.diskVolumeConfigurations = diskVolumeConfigurations; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (diskVolumeConfigurations() != null) { + diskVolumeConfigurations() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskInfo.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskInfo.java index 930f99c8f8d28..861401a8de816 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskInfo.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskInfo.java @@ -23,6 +23,10 @@ public final class DiskInfo { @JsonProperty(value = "sizeInGB") private Long sizeInGB; + /** Creates an instance of DiskInfo class. */ + public DiskInfo() { + } + /** * Get the storageType property: Storage type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskSku.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskSku.java new file mode 100644 index 0000000000000..73010186d104c --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskSku.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The disk sku. */ +@Fluent +public final class DiskSku { + /* + * Defines the disk sku name. + */ + @JsonProperty(value = "name") + private DiskSkuName name; + + /** Creates an instance of DiskSku class. */ + public DiskSku() { + } + + /** + * Get the name property: Defines the disk sku name. + * + * @return the name value. + */ + public DiskSkuName name() { + return this.name; + } + + /** + * Set the name property: Defines the disk sku name. + * + * @param name the name value to set. + * @return the DiskSku object itself. + */ + public DiskSku withName(DiskSkuName name) { + this.name = name; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskSkuName.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskSkuName.java new file mode 100644 index 0000000000000..28cd4fe9f4440 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskSkuName.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines the disk sku name. */ +public final class DiskSkuName extends ExpandableStringEnum { + /** Static value Standard_LRS for DiskSkuName. */ + public static final DiskSkuName STANDARD_LRS = fromString("Standard_LRS"); + + /** Static value Premium_LRS for DiskSkuName. */ + public static final DiskSkuName PREMIUM_LRS = fromString("Premium_LRS"); + + /** Static value StandardSSD_LRS for DiskSkuName. */ + public static final DiskSkuName STANDARD_SSD_LRS = fromString("StandardSSD_LRS"); + + /** Static value UltraSSD_LRS for DiskSkuName. */ + public static final DiskSkuName ULTRA_SSD_LRS = fromString("UltraSSD_LRS"); + + /** Static value Premium_ZRS for DiskSkuName. */ + public static final DiskSkuName PREMIUM_ZRS = fromString("Premium_ZRS"); + + /** Static value StandardSSD_ZRS for DiskSkuName. */ + public static final DiskSkuName STANDARD_SSD_ZRS = fromString("StandardSSD_ZRS"); + + /** Static value PremiumV2_LRS for DiskSkuName. */ + public static final DiskSkuName PREMIUM_V2_LRS = fromString("PremiumV2_LRS"); + + /** + * Creates or finds a DiskSkuName from its string representation. + * + * @param name a name to look for. + * @return the corresponding DiskSkuName. + */ + @JsonCreator + public static DiskSkuName fromString(String name) { + return fromString(name, DiskSkuName.class); + } + + /** + * Gets known DiskSkuName values. + * + * @return known DiskSkuName values. + */ + public static Collection values() { + return values(DiskSkuName.class); + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskStorageType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskStorageType.java index cf45e09d9ef5e..64807c02ca1af 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskStorageType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskStorageType.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for DiskStorageType. */ +/** Storage type. */ public enum DiskStorageType { /** Enum value Premium_LRS. */ PREMIUM_LRS("Premium_LRS"), @@ -33,6 +33,9 @@ public enum DiskStorageType { */ @JsonCreator public static DiskStorageType fromString(String value) { + if (value == null) { + return null; + } DiskStorageType[] items = DiskStorageType.values(); for (DiskStorageType item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +45,7 @@ public static DiskStorageType fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskVolumeConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskVolumeConfiguration.java new file mode 100644 index 0000000000000..d31ec2ad12eb8 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/DiskVolumeConfiguration.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The disk configuration required for the selected volume. */ +@Fluent +public final class DiskVolumeConfiguration { + /* + * The total number of disks required for the concerned volume. + */ + @JsonProperty(value = "count") + private Long count; + + /* + * The disk size in GB. + */ + @JsonProperty(value = "sizeGB") + private Long sizeGB; + + /* + * The disk SKU details. + */ + @JsonProperty(value = "sku") + private DiskSku sku; + + /** Creates an instance of DiskVolumeConfiguration class. */ + public DiskVolumeConfiguration() { + } + + /** + * Get the count property: The total number of disks required for the concerned volume. + * + * @return the count value. + */ + public Long count() { + return this.count; + } + + /** + * Set the count property: The total number of disks required for the concerned volume. + * + * @param count the count value to set. + * @return the DiskVolumeConfiguration object itself. + */ + public DiskVolumeConfiguration withCount(Long count) { + this.count = count; + return this; + } + + /** + * Get the sizeGB property: The disk size in GB. + * + * @return the sizeGB value. + */ + public Long sizeGB() { + return this.sizeGB; + } + + /** + * Set the sizeGB property: The disk size in GB. + * + * @param sizeGB the sizeGB value to set. + * @return the DiskVolumeConfiguration object itself. + */ + public DiskVolumeConfiguration withSizeGB(Long sizeGB) { + this.sizeGB = sizeGB; + return this; + } + + /** + * Get the sku property: The disk SKU details. + * + * @return the sku value. + */ + public DiskSku sku() { + return this.sku; + } + + /** + * Set the sku property: The disk SKU details. + * + * @param sku the sku value to set. + * @return the DiskVolumeConfiguration object itself. + */ + public DiskVolumeConfiguration withSku(DiskSku sku) { + this.sku = sku; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sku() != null) { + sku().validate(); + } + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableBackup.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableBackup.java index ae49157d9bf7e..320a7a74b9036 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableBackup.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableBackup.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EnableBackup. */ +/** Whether to enable Azure backup for the workload. */ public final class EnableBackup extends ExpandableStringEnum { /** Static value Enabled for EnableBackup. */ public static final EnableBackup ENABLED = fromString("Enabled"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableSslEnforcement.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableSslEnforcement.java index 34d6bf7b47e7d..fdb3953ec83fa 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableSslEnforcement.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnableSslEnforcement.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EnableSslEnforcement. */ +/** Whether to enable SSL enforcement on the database. */ public final class EnableSslEnforcement extends ExpandableStringEnum { /** Static value Enabled for EnableSslEnforcement. */ public static final EnableSslEnforcement ENABLED = fromString("Enabled"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerProperties.java index 29a163518ca55..3721846aac497 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerProperties.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Defines the SAP ERS Server properties. */ +/** Defines the SAP Enqueue Replication Server (ERS) properties. */ @Immutable public final class EnqueueReplicationServerProperties { /* @@ -17,41 +17,45 @@ public final class EnqueueReplicationServerProperties { private EnqueueReplicationServerType ersVersion; /* - * The ERS server instance id. + * ERS Instance Number. */ @JsonProperty(value = "instanceNo", access = JsonProperty.Access.WRITE_ONLY) private String instanceNo; /* - * The ERS server SAP host name. + * ERS SAP Hostname. */ @JsonProperty(value = "hostname", access = JsonProperty.Access.WRITE_ONLY) private String hostname; /* - * The ERS server SAP kernel version. + * ERS SAP Kernel Version. */ @JsonProperty(value = "kernelVersion", access = JsonProperty.Access.WRITE_ONLY) private String kernelVersion; /* - * The ERS server SAP kernel patch. + * ERS SAP Kernel Patch level. */ @JsonProperty(value = "kernelPatch", access = JsonProperty.Access.WRITE_ONLY) private String kernelPatch; /* - * The ERS server SAP IP Address. + * ERS SAP IP Address. */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /* - * Defines the SAP Instance health. + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; + /** Creates an instance of EnqueueReplicationServerProperties class. */ + public EnqueueReplicationServerProperties() { + } + /** * Get the ersVersion property: Defines the type of Enqueue Replication Server. * @@ -62,7 +66,7 @@ public EnqueueReplicationServerType ersVersion() { } /** - * Get the instanceNo property: The ERS server instance id. + * Get the instanceNo property: ERS Instance Number. * * @return the instanceNo value. */ @@ -71,7 +75,7 @@ public String instanceNo() { } /** - * Get the hostname property: The ERS server SAP host name. + * Get the hostname property: ERS SAP Hostname. * * @return the hostname value. */ @@ -80,7 +84,7 @@ public String hostname() { } /** - * Get the kernelVersion property: The ERS server SAP kernel version. + * Get the kernelVersion property: ERS SAP Kernel Version. * * @return the kernelVersion value. */ @@ -89,7 +93,7 @@ public String kernelVersion() { } /** - * Get the kernelPatch property: The ERS server SAP kernel patch. + * Get the kernelPatch property: ERS SAP Kernel Patch level. * * @return the kernelPatch value. */ @@ -98,7 +102,7 @@ public String kernelPatch() { } /** - * Get the ipAddress property: The ERS server SAP IP Address. + * Get the ipAddress property: ERS SAP IP Address. * * @return the ipAddress value. */ @@ -107,7 +111,7 @@ public String ipAddress() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerType.java index 1bf293654a8ac..5abe800ee0155 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueReplicationServerType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EnqueueReplicationServerType. */ +/** Defines the type of Enqueue Replication Server. */ public final class EnqueueReplicationServerType extends ExpandableStringEnum { /** Static value EnqueueReplicator1 for EnqueueReplicationServerType. */ public static final EnqueueReplicationServerType ENQUEUE_REPLICATOR1 = fromString("EnqueueReplicator1"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueServerProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueServerProperties.java index c1c7559bee295..e61afd049343e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueServerProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/EnqueueServerProperties.java @@ -7,35 +7,39 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Defines the SAP enqueue server properties. */ +/** Defines the SAP Enqueue Server properties. */ @Immutable public final class EnqueueServerProperties { /* - * The enqueue server SAP host name. + * Enqueue Server SAP Hostname. */ @JsonProperty(value = "hostname", access = JsonProperty.Access.WRITE_ONLY) private String hostname; /* - * The enqueue server SAP IP Address. + * Enqueue Server SAP IP Address. */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /* - * The enqueue server Port. + * Enqueue Server Port. */ @JsonProperty(value = "port", access = JsonProperty.Access.WRITE_ONLY) private Long port; /* - * Defines the SAP Instance health. + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; + /** Creates an instance of EnqueueServerProperties class. */ + public EnqueueServerProperties() { + } + /** - * Get the hostname property: The enqueue server SAP host name. + * Get the hostname property: Enqueue Server SAP Hostname. * * @return the hostname value. */ @@ -44,7 +48,7 @@ public String hostname() { } /** - * Get the ipAddress property: The enqueue server SAP IP Address. + * Get the ipAddress property: Enqueue Server SAP IP Address. * * @return the ipAddress value. */ @@ -53,7 +57,7 @@ public String ipAddress() { } /** - * Get the port property: The enqueue server Port. + * Get the port property: Enqueue Server Port. * * @return the port value. */ @@ -62,7 +66,7 @@ public Long port() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Error.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Error.java index d67b8605e86c5..76ac3db4bb2e7 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Error.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Error.java @@ -36,12 +36,15 @@ public class Error { private List details; /* - * Object containing more specific information than the current object - * about the error. + * Object containing more specific information than the current object about the error. */ @JsonProperty(value = "innerError", access = JsonProperty.Access.WRITE_ONLY) private ErrorInnerError innerError; + /** Creates an instance of Error class. */ + public Error() { + } + /** * Get the code property: Server-defined set of error codes. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorDefinition.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorDefinition.java index f2efbbe321382..6299bf231468f 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorDefinition.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorDefinition.java @@ -12,8 +12,7 @@ @Immutable public final class ErrorDefinition { /* - * Service specific error code which serves as the substatus for the HTTP - * error code. + * Service specific error code which serves as the substatus for the HTTP error code. */ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) private String code; @@ -30,6 +29,10 @@ public final class ErrorDefinition { @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) private List details; + /** Creates an instance of ErrorDefinition class. */ + public ErrorDefinition() { + } + /** * Get the code property: Service specific error code which serves as the substatus for the HTTP error code. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorInnerError.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorInnerError.java index 9cf5260c3e425..093b832c63c24 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorInnerError.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ErrorInnerError.java @@ -16,6 +16,10 @@ public final class ErrorInnerError { @JsonProperty(value = "innerError") private Error innerError; + /** Creates an instance of ErrorInnerError class. */ + public ErrorInnerError() { + } + /** * Get the innerError property: Standard error object. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ExternalInstallationSoftwareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ExternalInstallationSoftwareConfiguration.java new file mode 100644 index 0000000000000..25e66f6989e32 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ExternalInstallationSoftwareConfiguration.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** The SAP Software configuration Input when the software is installed externally outside the service. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "softwareInstallationType") +@JsonTypeName("External") +@Fluent +public final class ExternalInstallationSoftwareConfiguration extends SoftwareConfiguration { + /* + * The resource ID of the virtual machine containing the central server instance. + */ + @JsonProperty(value = "centralServerVmId") + private String centralServerVmId; + + /** Creates an instance of ExternalInstallationSoftwareConfiguration class. */ + public ExternalInstallationSoftwareConfiguration() { + } + + /** + * Get the centralServerVmId property: The resource ID of the virtual machine containing the central server + * instance. + * + * @return the centralServerVmId value. + */ + public String centralServerVmId() { + return this.centralServerVmId; + } + + /** + * Set the centralServerVmId property: The resource ID of the virtual machine containing the central server + * instance. + * + * @param centralServerVmId the centralServerVmId value to set. + * @return the ExternalInstallationSoftwareConfiguration object itself. + */ + public ExternalInstallationSoftwareConfiguration withCentralServerVmId(String centralServerVmId) { + this.centralServerVmId = centralServerVmId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareConfiguration.java new file mode 100644 index 0000000000000..9a95f7fca0219 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareConfiguration.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * File Share configuration details, populated with information on storage configuration mounted on the VIS. The + * createAndMount option is selected in case of missing input. + */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "configurationType", + defaultImpl = FileShareConfiguration.class) +@JsonTypeName("FileShareConfiguration") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Skip", value = SkipFileShareConfiguration.class), + @JsonSubTypes.Type(name = "CreateAndMount", value = CreateAndMountFileShareConfiguration.class), + @JsonSubTypes.Type(name = "Mount", value = MountFileShareConfiguration.class) +}) +@Immutable +public class FileShareConfiguration { + /** Creates an instance of FileShareConfiguration class. */ + public FileShareConfiguration() { + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareStorageType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareStorageType.java index 4ca91717dcc14..beaabf1e1aa3c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareStorageType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareStorageType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for FileShareStorageType. */ +/** File share backing storage type. */ public final class FileShareStorageType extends ExpandableStringEnum { /** Static value Standard_LRS for FileShareStorageType. */ public static final FileShareStorageType STANDARD_LRS = fromString("Standard_LRS"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareType.java index e11552a512df7..55404a2fbdab8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileShareType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for FileShareType. */ +/** Share type. */ public final class FileShareType extends ExpandableStringEnum { /** Static value NfsOnController for FileShareType. */ public static final FileShareType NFS_ON_CONTROLLER = fromString("NfsOnController"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileshareProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileshareProfile.java index e9dd919f71df8..9611419c097da 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileshareProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/FileshareProfile.java @@ -41,6 +41,10 @@ public final class FileshareProfile { @JsonProperty(value = "shareName", access = JsonProperty.Access.WRITE_ONLY) private String shareName; + /** Creates an instance of FileshareProfile class. */ + public FileshareProfile() { + } + /** * Get the shareType property: Share type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/GatewayServerProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/GatewayServerProperties.java index eaa20a5d717ac..fc55202f3ed5d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/GatewayServerProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/GatewayServerProperties.java @@ -11,19 +11,23 @@ @Immutable public final class GatewayServerProperties { /* - * The gateway Port. + * Gateway Port. */ @JsonProperty(value = "port", access = JsonProperty.Access.WRITE_ONLY) private Long port; /* - * Defines the SAP Instance health. + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; + /** Creates an instance of GatewayServerProperties class. */ + public GatewayServerProperties() { + } + /** - * Get the port property: The gateway Port. + * Get the port property: Gateway Port. * * @return the port value. */ @@ -32,7 +36,7 @@ public Long port() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HAEnabled.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HAEnabled.java index b31f156c418a9..4a073be3b535e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HAEnabled.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HAEnabled.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for HAEnabled. */ +/** Whether to enable HA for the server. */ public final class HAEnabled extends ExpandableStringEnum { /** Static value Enabled for HAEnabled. */ public static final HAEnabled ENABLED = fromString("Enabled"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HanaDbProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HanaDbProviderInstanceProperties.java index 8815a4c7022de..9a7bfa18fdfc7 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HanaDbProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HanaDbProviderInstanceProperties.java @@ -62,12 +62,28 @@ public final class HanaDbProviderInstanceProperties extends ProviderSpecificProp @JsonProperty(value = "dbSslCertificateUri") private String dbSslCertificateUri; + /* + * Gets or sets the blob URI to SSL certificate for the DB. + */ + @JsonProperty(value = "sslCertificateUri") + private String sslCertificateUri; + /* * Gets or sets the hostname(s) in the SSL certificate. */ @JsonProperty(value = "sslHostNameInCertificate") private String sslHostnameInCertificate; + /* + * Gets or sets certificate preference if secure communication is enabled. + */ + @JsonProperty(value = "sslPreference") + private SslPreference sslPreference; + + /** Creates an instance of HanaDbProviderInstanceProperties class. */ + public HanaDbProviderInstanceProperties() { + } + /** * Get the hostname property: Gets or sets the target virtual machine size. * @@ -228,6 +244,26 @@ public HanaDbProviderInstanceProperties withDbSslCertificateUri(String dbSslCert return this; } + /** + * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the DB. + * + * @return the sslCertificateUri value. + */ + public String sslCertificateUri() { + return this.sslCertificateUri; + } + + /** + * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the DB. + * + * @param sslCertificateUri the sslCertificateUri value to set. + * @return the HanaDbProviderInstanceProperties object itself. + */ + public HanaDbProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) { + this.sslCertificateUri = sslCertificateUri; + return this; + } + /** * Get the sslHostnameInCertificate property: Gets or sets the hostname(s) in the SSL certificate. * @@ -248,6 +284,26 @@ public HanaDbProviderInstanceProperties withSslHostnameInCertificate(String sslH return this; } + /** + * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @return the sslPreference value. + */ + public SslPreference sslPreference() { + return this.sslPreference; + } + + /** + * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @param sslPreference the sslPreference value to set. + * @return the HanaDbProviderInstanceProperties object itself. + */ + public HanaDbProviderInstanceProperties withSslPreference(SslPreference sslPreference) { + this.sslPreference = sslPreference; + return this; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilityConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilityConfiguration.java index 6250f7598fd59..f17d0353e0691 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilityConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilityConfiguration.java @@ -17,6 +17,10 @@ public final class HighAvailabilityConfiguration { @JsonProperty(value = "highAvailabilityType", required = true) private SapHighAvailabilityType highAvailabilityType; + /** Creates an instance of HighAvailabilityConfiguration class. */ + public HighAvailabilityConfiguration() { + } + /** * Get the highAvailabilityType property: The high availability type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilitySoftwareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilitySoftwareConfiguration.java index 9cdbb61ed4b95..5a5483ea03f71 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilitySoftwareConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/HighAvailabilitySoftwareConfiguration.java @@ -18,12 +18,16 @@ public final class HighAvailabilitySoftwareConfiguration { private String fencingClientId; /* - * The fencing client id secret/password. The secret should never expire. - * This will be used pacemaker to start/stop the cluster VMs. + * The fencing client id secret/password. The secret should never expire. This will be used pacemaker to start/stop + * the cluster VMs. */ @JsonProperty(value = "fencingClientPassword", required = true) private String fencingClientPassword; + /** Creates an instance of HighAvailabilitySoftwareConfiguration class. */ + public HighAvailabilitySoftwareConfiguration() { + } + /** * Get the fencingClientId property: The fencing client id. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ImageReference.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ImageReference.java index fd3708883ddad..de09d4559afb2 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ImageReference.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ImageReference.java @@ -22,8 +22,7 @@ public final class ImageReference { private String publisher; /* - * Specifies the offer of the platform image or marketplace image used to - * create the virtual machine. + * Specifies the offer of the platform image or marketplace image used to create the virtual machine. */ @JsonProperty(value = "offer") private String offer; @@ -35,32 +34,32 @@ public final class ImageReference { private String sku; /* - * Specifies the version of the platform image or marketplace image used to - * create the virtual machine. The allowed formats are Major.Minor.Build or - * 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' - * to use the latest version of an image available at deploy time. Even if - * you use 'latest', the VM image will not automatically update after - * deploy time even if a new version becomes available. + * Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed + * formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use + * the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not + * automatically update after deploy time even if a new version becomes available. */ @JsonProperty(value = "version") private String version; /* - * Specifies in decimal numbers, the version of platform image or - * marketplace image used to create the virtual machine. This readonly - * field differs from 'version', only if the value specified in 'version' - * field is 'latest'. + * Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual + * machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'. */ @JsonProperty(value = "exactVersion", access = JsonProperty.Access.WRITE_ONLY) private String exactVersion; /* - * Specified the shared gallery image unique id for vm deployment. This can - * be fetched from shared gallery image GET call. + * Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image + * GET call. */ @JsonProperty(value = "sharedGalleryImageId") private String sharedGalleryImageId; + /** Creates an instance of ImageReference class. */ + public ImageReference() { + } + /** * Get the publisher property: The image publisher. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/InfrastructureConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/InfrastructureConfiguration.java index e2b70e4efc13e..7c6fcc33bf01b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/InfrastructureConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/InfrastructureConfiguration.java @@ -25,12 +25,15 @@ @Fluent public class InfrastructureConfiguration { /* - * The application resource group where SAP system resources will be - * deployed. + * The application resource group where SAP system resources will be deployed. */ @JsonProperty(value = "appResourceGroup", required = true) private String appResourceGroup; + /** Creates an instance of InfrastructureConfiguration class. */ + public InfrastructureConfiguration() { + } + /** * Get the appResourceGroup property: The application resource group where SAP system resources will be deployed. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LinuxConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LinuxConfiguration.java index 34af30c292891..f18b6343665db 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LinuxConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LinuxConfiguration.java @@ -25,8 +25,8 @@ public final class LinuxConfiguration extends OSConfiguration { private Boolean disablePasswordAuthentication; /* - * Specifies the ssh key configuration for a Linux OS. (This property is - * deprecated, please use 'sshKeyPair' instead) + * Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' + * instead) */ @JsonProperty(value = "ssh") private SshConfiguration ssh; @@ -37,6 +37,10 @@ public final class LinuxConfiguration extends OSConfiguration { @JsonProperty(value = "sshKeyPair") private SshKeyPair sshKeyPair; + /** Creates an instance of LinuxConfiguration class. */ + public LinuxConfiguration() { + } + /** * Get the disablePasswordAuthentication property: Specifies whether password authentication should be disabled. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerDetails.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerDetails.java new file mode 100644 index 0000000000000..c14130b4d2504 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerDetails.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Load Balancer details such as Load Balancer ID. */ +@Immutable +public final class LoadBalancerDetails { + /* + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** Creates an instance of LoadBalancerDetails class. */ + public LoadBalancerDetails() { + } + + /** + * Get the id property: The id property. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerType.java index 5c4c012a34d27..b75109834d378 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LoadBalancerType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for LoadBalancerType. */ +/** Load balancer type. */ public final class LoadBalancerType extends ExpandableStringEnum { /** Static value ApplicationGateway for LoadBalancerType. */ public static final LoadBalancerType APPLICATION_GATEWAY = fromString("ApplicationGateway"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LocationType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LocationType.java index e16107c8bf1cd..54f24cb0d05ca 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LocationType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/LocationType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for LocationType. */ +/** Type of the extended location. */ public final class LocationType extends ExpandableStringEnum { /** Static value Region for LocationType. */ public static final LocationType REGION = fromString("Region"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedRGConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedRGConfiguration.java index 4cc347a8781fc..af21758da2fe8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedRGConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedRGConfiguration.java @@ -16,6 +16,10 @@ public final class ManagedRGConfiguration { @JsonProperty(value = "name") private String name; + /** Creates an instance of ManagedRGConfiguration class. */ + public ManagedRGConfiguration() { + } + /** * Get the name property: Managed resource group name. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedServiceIdentityType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedServiceIdentityType.java index 1b5b2d1a29035..5f50024693e43 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedServiceIdentityType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ManagedServiceIdentityType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ManagedServiceIdentityType. */ +/** Type of managed service identity (only None, UserAssigned types are allowed). */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { /** Static value None for ManagedServiceIdentityType. */ public static final ManagedServiceIdentityType NONE = fromString("None"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MessageServerProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MessageServerProperties.java index 54d2cf594ad1c..775f4a45008f6 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MessageServerProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MessageServerProperties.java @@ -7,53 +7,57 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Defines the SAP message server properties. */ +/** Defines the SAP Message Server properties. */ @Immutable public final class MessageServerProperties { /* - * The message server port. + * Message Server port. */ @JsonProperty(value = "msPort", access = JsonProperty.Access.WRITE_ONLY) private Long msPort; /* - * The message server internal MS port. + * Message Server internal MS port. */ @JsonProperty(value = "internalMsPort", access = JsonProperty.Access.WRITE_ONLY) private Long internalMsPort; /* - * The message server http port. + * Message Server HTTP Port. */ @JsonProperty(value = "httpPort", access = JsonProperty.Access.WRITE_ONLY) private Long httpPort; /* - * The message server https port. + * Message Server HTTPS Port. */ @JsonProperty(value = "httpsPort", access = JsonProperty.Access.WRITE_ONLY) private Long httpsPort; /* - * The message server SAP host name. + * Message Server SAP Hostname. */ @JsonProperty(value = "hostname", access = JsonProperty.Access.WRITE_ONLY) private String hostname; /* - * The message server IP Address. + * Message server IP Address. */ @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) private String ipAddress; /* - * Defines the SAP Instance health. + * Defines the health of SAP Instances. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private SapHealthState health; + /** Creates an instance of MessageServerProperties class. */ + public MessageServerProperties() { + } + /** - * Get the msPort property: The message server port. + * Get the msPort property: Message Server port. * * @return the msPort value. */ @@ -62,7 +66,7 @@ public Long msPort() { } /** - * Get the internalMsPort property: The message server internal MS port. + * Get the internalMsPort property: Message Server internal MS port. * * @return the internalMsPort value. */ @@ -71,7 +75,7 @@ public Long internalMsPort() { } /** - * Get the httpPort property: The message server http port. + * Get the httpPort property: Message Server HTTP Port. * * @return the httpPort value. */ @@ -80,7 +84,7 @@ public Long httpPort() { } /** - * Get the httpsPort property: The message server https port. + * Get the httpsPort property: Message Server HTTPS Port. * * @return the httpsPort value. */ @@ -89,7 +93,7 @@ public Long httpsPort() { } /** - * Get the hostname property: The message server SAP host name. + * Get the hostname property: Message Server SAP Hostname. * * @return the hostname value. */ @@ -98,7 +102,7 @@ public String hostname() { } /** - * Get the ipAddress property: The message server IP Address. + * Get the ipAddress property: Message server IP Address. * * @return the ipAddress value. */ @@ -107,7 +111,7 @@ public String ipAddress() { } /** - * Get the health property: Defines the SAP Instance health. + * Get the health property: Defines the health of SAP Instances. * * @return the health value. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitor.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitor.java index cfc6c29e6c2e3..5f031453402cc 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitor.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitor.java @@ -91,6 +91,14 @@ public interface Monitor { */ RoutingPreference routingPreference(); + /** + * Gets the zoneRedundancyPreference property: Sets the preference for zone redundancy on resources created for the + * SAP monitor. By default resources will be created which do not support zone redundancy. + * + * @return the zoneRedundancyPreference value. + */ + String zoneRedundancyPreference(); + /** * Gets the managedResourceGroupConfiguration property: Managed resource group configuration. * @@ -120,6 +128,13 @@ public interface Monitor { */ String msiArmId(); + /** + * Gets the storageAccountArmId property: The ARM ID of the Storage account used for SAP monitoring. + * + * @return the storageAccountArmId value. + */ + String storageAccountArmId(); + /** * Gets the region of the resource. * @@ -197,6 +212,7 @@ interface WithCreate DefinitionStages.WithIdentity, DefinitionStages.WithAppLocation, DefinitionStages.WithRoutingPreference, + DefinitionStages.WithZoneRedundancyPreference, DefinitionStages.WithManagedResourceGroupConfiguration, DefinitionStages.WithLogAnalyticsWorkspaceArmId, DefinitionStages.WithMonitorSubnet { @@ -259,6 +275,18 @@ interface WithRoutingPreference { */ WithCreate withRoutingPreference(RoutingPreference routingPreference); } + /** The stage of the Monitor definition allowing to specify zoneRedundancyPreference. */ + interface WithZoneRedundancyPreference { + /** + * Specifies the zoneRedundancyPreference property: Sets the preference for zone redundancy on resources + * created for the SAP monitor. By default resources will be created which do not support zone redundancy.. + * + * @param zoneRedundancyPreference Sets the preference for zone redundancy on resources created for the SAP + * monitor. By default resources will be created which do not support zone redundancy. + * @return the next definition stage. + */ + WithCreate withZoneRedundancyPreference(String zoneRedundancyPreference); + } /** The stage of the Monitor definition allowing to specify managedResourceGroupConfiguration. */ interface WithManagedResourceGroupConfiguration { /** diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorListResult.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorListResult.java index 4a048c028ef60..82eed2d429179 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorListResult.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorListResult.java @@ -24,6 +24,10 @@ public final class MonitorListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of MonitorListResult class. */ + public MonitorListResult() { + } + /** * Get the value property: The list of SAP monitors. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorPropertiesErrors.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorPropertiesErrors.java index d0faf3b45b18a..6b290ce5019fd 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorPropertiesErrors.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MonitorPropertiesErrors.java @@ -9,6 +9,10 @@ /** Defines the SAP monitor errors. */ @Immutable public final class MonitorPropertiesErrors extends Error { + /** Creates an instance of MonitorPropertiesErrors class. */ + public MonitorPropertiesErrors() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitors.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitors.java index a57277d2aaba5..70dbfb68f81c8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitors.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Monitors.java @@ -11,8 +11,10 @@ /** Resource collection API of Monitors. */ public interface Monitors { /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @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. @@ -21,8 +23,10 @@ public interface Monitors { PagedIterable list(); /** - * Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP - * monitor. + * Gets a list of SAP monitors in the specified subscription. + * + *

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each + * SAP monitor. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -33,7 +37,9 @@ public interface Monitors { PagedIterable list(Context context); /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -44,7 +50,9 @@ public interface Monitors { PagedIterable listByResourceGroup(String resourceGroupName); /** - * Gets a list of SAP monitors in the specified resource group. + * Gets a list of SAP monitors + * + *

Gets a list of SAP monitors in the specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -56,33 +64,39 @@ public interface Monitors { PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor 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 properties of a SAP monitor for the specified subscription, resource group, and resource name. + * @return properties of a SAP monitor for the specified subscription, resource group, and resource name along with + * {@link Response}. */ - Monitor getByResourceGroup(String resourceGroupName, String monitorName); + Response getByResourceGroupWithResponse(String resourceGroupName, String monitorName, Context context); /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor 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 properties of a SAP monitor for the specified subscription, resource group, and resource name along with - * {@link Response}. + * @return properties of a SAP monitor for the specified subscription, resource group, and resource name. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String monitorName, Context context); + Monitor getByResourceGroup(String resourceGroupName, String monitorName); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -94,7 +108,9 @@ public interface Monitors { OperationStatusResult deleteByResourceGroup(String resourceGroupName, String monitorName); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -107,7 +123,9 @@ public interface Monitors { OperationStatusResult delete(String resourceGroupName, String monitorName, Context context); /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,7 +137,9 @@ public interface Monitors { Monitor getById(String id); /** - * Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. + * Gets properties of a SAP monitor. + * + *

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -132,7 +152,9 @@ public interface Monitors { Response getByIdWithResponse(String id, Context context); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -143,7 +165,9 @@ public interface Monitors { OperationStatusResult deleteById(String id); /** - * Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. + * Deletes a SAP monitor. + * + *

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MountFileShareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MountFileShareConfiguration.java new file mode 100644 index 0000000000000..3687cc9d880f4 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MountFileShareConfiguration.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Gets or sets the file share configuration where the transport fileshare is already created, and user wishes to mount + * the fileshare as a part of the create infra flow. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "configurationType") +@JsonTypeName("Mount") +@Fluent +public final class MountFileShareConfiguration extends FileShareConfiguration { + /* + * The fileshare resource ID + */ + @JsonProperty(value = "id", required = true) + private String id; + + /* + * The private endpoint resource ID + */ + @JsonProperty(value = "privateEndpointId", required = true) + private String privateEndpointId; + + /** Creates an instance of MountFileShareConfiguration class. */ + public MountFileShareConfiguration() { + } + + /** + * Get the id property: The fileshare resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: The fileshare resource ID. + * + * @param id the id value to set. + * @return the MountFileShareConfiguration object itself. + */ + public MountFileShareConfiguration withId(String id) { + this.id = id; + return this; + } + + /** + * Get the privateEndpointId property: The private endpoint resource ID. + * + * @return the privateEndpointId value. + */ + public String privateEndpointId() { + return this.privateEndpointId; + } + + /** + * Set the privateEndpointId property: The private endpoint resource ID. + * + * @param privateEndpointId the privateEndpointId value to set. + * @return the MountFileShareConfiguration object itself. + */ + public MountFileShareConfiguration withPrivateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (id() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property id in model MountFileShareConfiguration")); + } + if (privateEndpointId() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property privateEndpointId in model MountFileShareConfiguration")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(MountFileShareConfiguration.class); +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MsSqlServerProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MsSqlServerProviderInstanceProperties.java index 25e7d2fb2ab41..e85182ad8e760 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MsSqlServerProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/MsSqlServerProviderInstanceProperties.java @@ -50,6 +50,22 @@ public final class MsSqlServerProviderInstanceProperties extends ProviderSpecifi @JsonProperty(value = "sapSid") private String sapSid; + /* + * Gets or sets certificate preference if secure communication is enabled. + */ + @JsonProperty(value = "sslPreference") + private SslPreference sslPreference; + + /* + * Gets or sets the blob URI to SSL certificate for the SQL Database. + */ + @JsonProperty(value = "sslCertificateUri") + private String sslCertificateUri; + + /** Creates an instance of MsSqlServerProviderInstanceProperties class. */ + public MsSqlServerProviderInstanceProperties() { + } + /** * Get the hostname property: Gets or sets the SQL server host name. * @@ -170,6 +186,46 @@ public MsSqlServerProviderInstanceProperties withSapSid(String sapSid) { return this; } + /** + * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @return the sslPreference value. + */ + public SslPreference sslPreference() { + return this.sslPreference; + } + + /** + * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @param sslPreference the sslPreference value to set. + * @return the MsSqlServerProviderInstanceProperties object itself. + */ + public MsSqlServerProviderInstanceProperties withSslPreference(SslPreference sslPreference) { + this.sslPreference = sslPreference; + return this; + } + + /** + * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the SQL Database. + * + * @return the sslCertificateUri value. + */ + public String sslCertificateUri() { + return this.sslCertificateUri; + } + + /** + * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the SQL Database. + * + * @param sslCertificateUri the sslCertificateUri value to set. + * @return the MsSqlServerProviderInstanceProperties object itself. + */ + public MsSqlServerProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) { + this.sslCertificateUri = sslCertificateUri; + return this; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkConfiguration.java index 15e93b704aa9c..05f239b6ca424 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkConfiguration.java @@ -7,19 +7,23 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Defines the network configuration for SAP infrastructure. */ +/** Defines the network configuration type for SAP system infrastructure that is being deployed. */ @Fluent public final class NetworkConfiguration { /* - * Specifies whether a secondary IP address should be added to the network - * interface on all VMs + * Specifies whether a secondary IP address should be added to the network interface on all VMs of the SAP system + * being deployed */ @JsonProperty(value = "isSecondaryIpEnabled") private Boolean isSecondaryIpEnabled; + /** Creates an instance of NetworkConfiguration class. */ + public NetworkConfiguration() { + } + /** * Get the isSecondaryIpEnabled property: Specifies whether a secondary IP address should be added to the network - * interface on all VMs. + * interface on all VMs of the SAP system being deployed. * * @return the isSecondaryIpEnabled value. */ @@ -29,7 +33,7 @@ public Boolean isSecondaryIpEnabled() { /** * Set the isSecondaryIpEnabled property: Specifies whether a secondary IP address should be added to the network - * interface on all VMs. + * interface on all VMs of the SAP system being deployed. * * @param isSecondaryIpEnabled the isSecondaryIpEnabled value to set. * @return the NetworkConfiguration object itself. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkProfile.java index f99e5a21c59a1..c3eead3fd34ed 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NetworkProfile.java @@ -72,6 +72,10 @@ public final class NetworkProfile { @JsonProperty(value = "outboundPublicIpResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List outboundPublicIpResourceIds; + /** Creates an instance of NetworkProfile class. */ + public NetworkProfile() { + } + /** * Get the loadBalancerType property: Load balancer type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NodeProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NodeProfile.java index d386a6eb33d9e..72810f219e682 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NodeProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/NodeProfile.java @@ -48,6 +48,10 @@ public class NodeProfile { @JsonProperty(value = "nodeResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List nodeResourceIds; + /** Creates an instance of NodeProfile class. */ + public NodeProfile() { + } + /** * Get the name property: VM or VMSS name. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSConfiguration.java index 33d4e4de0669d..7da749b3255ef 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSConfiguration.java @@ -22,6 +22,10 @@ }) @Immutable public class OSConfiguration { + /** Creates an instance of OSConfiguration class. */ + public OSConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageOffer.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageOffer.java index 672da63d540a5..052c730414c2e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageOffer.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageOffer.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OSImageOffer. */ +/** OS image offer. */ public final class OSImageOffer extends ExpandableStringEnum { /** Static value UbuntuServer for OSImageOffer. */ public static final OSImageOffer UBUNTU_SERVER = fromString("UbuntuServer"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImagePublisher.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImagePublisher.java index 95155d656ab6b..60b2a2893a964 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImagePublisher.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImagePublisher.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OSImagePublisher. */ +/** OS image publisher. */ public final class OSImagePublisher extends ExpandableStringEnum { /** Static value Canonical for OSImagePublisher. */ public static final OSImagePublisher CANONICAL = fromString("Canonical"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageSku.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageSku.java index f7d44922376e5..77fde9dd19b97 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageSku.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageSku.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OSImageSku. */ +/** OS image sku. */ public final class OSImageSku extends ExpandableStringEnum { /** Static value 18.04-LTS for OSImageSku. */ public static final OSImageSku ONE_EIGHT_ZERO_FOUR_LTS = fromString("18.04-LTS"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageVersion.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageVersion.java index 88b7d89945aa1..77ff89680ec79 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageVersion.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSImageVersion.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OSImageVersion. */ +/** OS image version. */ public final class OSImageVersion extends ExpandableStringEnum { /** Static value latest for OSImageVersion. */ public static final OSImageVersion LATEST = fromString("latest"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSProfile.java index 4eb60010cc78d..5c74e706c5590 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSProfile.java @@ -14,35 +14,27 @@ @Fluent public final class OSProfile { /* - * Specifies the name of the administrator account.

This property - * cannot be updated after the VM is created.

**Windows-only - * restriction:** Cannot end in "."

**Disallowed values:** - * "administrator", "admin", "user", "user1", "test", "user2", "test1", - * "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", - * "aspnet", "backup", "console", "david", "guest", "john", "owner", - * "root", "server", "sql", "support", "support_388945a0", "sys", "test2", - * "test3", "user4", "user5".

**Minimum-length (Linux):** 1 - * character

**Max-length (Linux):** 64 characters

- * **Max-length (Windows):** 20 characters. + * Specifies the name of the administrator account.

This property cannot be updated after the VM is + * created.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** + * "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", + * "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", + * "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length + * (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 + * characters. */ @JsonProperty(value = "adminUsername") private String adminUsername; /* - * Specifies the password of the administrator account.

- * **Minimum-length (Windows):** 8 characters

**Minimum-length - * (Linux):** 6 characters

**Max-length (Windows):** 123 - * characters

**Max-length (Linux):** 72 characters

- * **Complexity requirements:** 3 out of 4 conditions below need to be - * fulfilled
Has lower characters
Has upper characters
Has a - * digit
Has a special character (Regex match [\W_])

- * **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", - * "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", - * "iloveyou!"

For resetting the password, see [How to reset the - * Remote Desktop service or its login password in a Windows - * VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) - *

For resetting root password, see [Manage users, SSH, and check - * or repair disks on Azure Linux VMs using the VMAccess + * Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters + *

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

+ * **Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to + * be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character + * (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", + * "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

For resetting the + * password, see [How to reset the Remote Desktop service or its login password in a Windows + * VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)

For resetting root + * password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess * Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ @JsonProperty(value = "adminPassword") @@ -54,6 +46,10 @@ public final class OSProfile { @JsonProperty(value = "osConfiguration") private OSConfiguration osConfiguration; + /** Creates an instance of OSProfile class. */ + public OSProfile() { + } + /** * Get the adminUsername property: Specifies the name of the administrator account. <br><br> This * property cannot be updated after the VM is created. <br><br> **Windows-only restriction:** Cannot end diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSType.java index c35f7fc1ae848..85dc522996cab 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OSType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for OSType. */ +/** The OS Type. */ public final class OSType extends ExpandableStringEnum { /** Static value Linux for OSType. */ public static final OSType LINUX = fromString("Linux"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationDisplay.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationDisplay.java index 2ae9e4f48b3ff..f992b63316600 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationDisplay.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationDisplay.java @@ -11,34 +11,36 @@ @Immutable public final class OperationDisplay { /* - * The localized friendly form of the resource provider name, e.g. - * "Microsoft Monitoring Insights" or "Microsoft Compute". + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + * Compute". */ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* - * The localized friendly name of the resource type related to this - * operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + * Schedule Collections". */ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) private String resource; /* - * The concise, localized friendly name for the operation; suitable for - * dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual - * Machine". + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + * Machine", "Restart Virtual Machine". */ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) private String operation; /* - * The short, localized friendly description of the operation; suitable for - * tool tips and detailed views. + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring * Insights" or "Microsoft Compute". diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationListResult.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationListResult.java index ac6331db36e35..ad7a9d06f902e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationListResult.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationListResult.java @@ -27,6 +27,10 @@ public final class OperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of OperationListResult class. */ + public OperationListResult() { + } + /** * Get the value property: List of operations supported by the resource provider. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDefinitionDisplay.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDefinitionDisplay.java index 26dafcd71ec13..f3ad05574b660 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDefinitionDisplay.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDefinitionDisplay.java @@ -9,6 +9,10 @@ /** Display information of the operation. */ @Fluent public final class OperationsDefinitionDisplay extends OperationsDisplayDefinition { + /** Creates an instance of OperationsDefinitionDisplay class. */ + public OperationsDefinitionDisplay() { + } + /** {@inheritDoc} */ @Override public OperationsDefinitionDisplay withProvider(String provider) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDisplayDefinition.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDisplayDefinition.java index 72a550efd0034..ae32f1ea63c61 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDisplayDefinition.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OperationsDisplayDefinition.java @@ -35,6 +35,10 @@ public class OperationsDisplayDefinition { @JsonProperty(value = "description", required = true) private String description; + /** Creates an instance of OperationsDisplayDefinition class. */ + public OperationsDisplayDefinition() { + } + /** * Get the provider property: Defines the workload provider. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Origin.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Origin.java index 06d061e425965..85400f335c31c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Origin.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Origin.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Origin. */ +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value + * is "user,system". + */ public final class Origin extends ExpandableStringEnum { /** Static value user for Origin. */ public static final Origin USER = fromString("user"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsImageProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsImageProfile.java index 0a4a5449f7bba..ee6f34474c520 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsImageProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsImageProfile.java @@ -34,6 +34,10 @@ public final class OsImageProfile { @JsonProperty(value = "version") private OSImageVersion version; + /** Creates an instance of OsImageProfile class. */ + public OsImageProfile() { + } + /** * Get the publisher property: OS image publisher. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsSapConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsSapConfiguration.java index 0b9c869b92fd5..d542739f6994e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsSapConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/OsSapConfiguration.java @@ -22,6 +22,10 @@ public final class OsSapConfiguration { @JsonProperty(value = "sapFqdn") private String sapFqdn; + /** Creates an instance of OsSapConfiguration class. */ + public OsSapConfiguration() { + } + /** * Get the deployerVmPackages property: The url and storage account ID where deployer VM packages are uploaded. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBody.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBody.java index 77f1c9831018a..6ff0c7965e5cf 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBody.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBody.java @@ -25,6 +25,10 @@ public final class PatchResourceRequestBody { @JsonProperty(value = "identity") private PatchResourceRequestBodyIdentity identity; + /** Creates an instance of PatchResourceRequestBody class. */ + public PatchResourceRequestBody() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBodyIdentity.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBodyIdentity.java index 31c4a7f6eff32..af9bf16c19983 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBodyIdentity.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PatchResourceRequestBodyIdentity.java @@ -10,6 +10,10 @@ /** The PatchResourceRequestBodyIdentity model. */ @Fluent public class PatchResourceRequestBodyIdentity extends UserAssignedServiceIdentity { + /** Creates an instance of PatchResourceRequestBodyIdentity class. */ + public PatchResourceRequestBodyIdentity() { + } + /** {@inheritDoc} */ @Override public PatchResourceRequestBodyIdentity withType(ManagedServiceIdentityType type) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpProfile.java index 58d19fe6bd254..c14820978f6d0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpProfile.java @@ -17,6 +17,10 @@ public final class PhpProfile { @JsonProperty(value = "version", required = true) private PhpVersion version; + /** Creates an instance of PhpProfile class. */ + public PhpProfile() { + } + /** * Get the version property: PHP version. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpVersion.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpVersion.java index 900ae79d81459..4408c212b91f6 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpVersion.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpVersion.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PhpVersion. */ +/** PHP version. */ public final class PhpVersion extends ExpandableStringEnum { /** Static value 7.2 for PhpVersion. */ public static final PhpVersion SEVEN_TWO = fromString("7.2"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadProvisioningState.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadProvisioningState.java index 6b5604ddb8e2a..ae3f6da56eeb4 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadProvisioningState.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PhpWorkloadProvisioningState. */ +/** Php workload resource provisioning state. */ public final class PhpWorkloadProvisioningState extends ExpandableStringEnum { /** Static value NotSpecified for PhpWorkloadProvisioningState. */ public static final PhpWorkloadProvisioningState NOT_SPECIFIED = fromString("NotSpecified"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResource.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResource.java index 03679cfa77206..4603050ee8f7a 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResource.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResource.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.workloads.models; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.workloads.fluent.models.PhpWorkloadResourceInner; import java.util.Map; @@ -67,6 +68,13 @@ public interface PhpWorkloadResource { */ PhpWorkloadResourceIdentity identity(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the appLocation property: The infra resources for PHP workload will be created in this location. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceIdentity.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceIdentity.java index af481a97b20b2..13e752305022d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceIdentity.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceIdentity.java @@ -10,6 +10,10 @@ /** Identity for the resource. Currently not supported. */ @Fluent public class PhpWorkloadResourceIdentity extends UserAssignedServiceIdentity { + /** Creates an instance of PhpWorkloadResourceIdentity class. */ + public PhpWorkloadResourceIdentity() { + } + /** {@inheritDoc} */ @Override public PhpWorkloadResourceIdentity withType(ManagedServiceIdentityType type) { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceList.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceList.java index 4ce745345202a..de695a5563698 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceList.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloadResourceList.java @@ -24,6 +24,10 @@ public final class PhpWorkloadResourceList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PhpWorkloadResourceList class. */ + public PhpWorkloadResourceList() { + } + /** * Get the value property: List of resources in current page. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloads.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloads.java index 0f64d6433ca7d..08f58bdc0fb61 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloads.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PhpWorkloads.java @@ -53,18 +53,6 @@ public interface PhpWorkloads { */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** - * Gets the PHP workload resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param phpWorkloadName Php workload name. - * @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 PHP workload resource. - */ - PhpWorkloadResource getByResourceGroup(String resourceGroupName, String phpWorkloadName); - /** * Gets the PHP workload resource. * @@ -80,16 +68,16 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String phpWorkloadName, Context context); /** - * Delete PHP workload resource. + * Gets the PHP workload resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @param deleteInfra Whether to delete infra along with workload 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 PHP workload resource. */ - void delete(String resourceGroupName, String phpWorkloadName, String deleteInfra); + PhpWorkloadResource getByResourceGroup(String resourceGroupName, String phpWorkloadName); /** * Delete PHP workload resource. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusHaClusterProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusHaClusterProviderInstanceProperties.java index 6fe9ef53ea6f1..3e62fa3a2a002 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusHaClusterProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusHaClusterProviderInstanceProperties.java @@ -38,6 +38,22 @@ public final class PrometheusHaClusterProviderInstanceProperties extends Provide @JsonProperty(value = "clusterName") private String clusterName; + /* + * Gets or sets certificate preference if secure communication is enabled. + */ + @JsonProperty(value = "sslPreference") + private SslPreference sslPreference; + + /* + * Gets or sets the blob URI to SSL certificate for the HA cluster exporter. + */ + @JsonProperty(value = "sslCertificateUri") + private String sslCertificateUri; + + /** Creates an instance of PrometheusHaClusterProviderInstanceProperties class. */ + public PrometheusHaClusterProviderInstanceProperties() { + } + /** * Get the prometheusUrl property: URL of the Node Exporter endpoint. * @@ -118,6 +134,46 @@ public PrometheusHaClusterProviderInstanceProperties withClusterName(String clus return this; } + /** + * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @return the sslPreference value. + */ + public SslPreference sslPreference() { + return this.sslPreference; + } + + /** + * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @param sslPreference the sslPreference value to set. + * @return the PrometheusHaClusterProviderInstanceProperties object itself. + */ + public PrometheusHaClusterProviderInstanceProperties withSslPreference(SslPreference sslPreference) { + this.sslPreference = sslPreference; + return this; + } + + /** + * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the HA cluster exporter. + * + * @return the sslCertificateUri value. + */ + public String sslCertificateUri() { + return this.sslCertificateUri; + } + + /** + * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the HA cluster exporter. + * + * @param sslCertificateUri the sslCertificateUri value to set. + * @return the PrometheusHaClusterProviderInstanceProperties object itself. + */ + public PrometheusHaClusterProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) { + this.sslCertificateUri = sslCertificateUri; + return this; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusOSProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusOSProviderInstanceProperties.java index 09457144be1aa..75b27119ca473 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusOSProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/PrometheusOSProviderInstanceProperties.java @@ -20,6 +20,22 @@ public final class PrometheusOSProviderInstanceProperties extends ProviderSpecif @JsonProperty(value = "prometheusUrl") private String prometheusUrl; + /* + * Gets or sets certificate preference if secure communication is enabled. + */ + @JsonProperty(value = "sslPreference") + private SslPreference sslPreference; + + /* + * Gets or sets the blob URI to SSL certificate for the prometheus node exporter. + */ + @JsonProperty(value = "sslCertificateUri") + private String sslCertificateUri; + + /** Creates an instance of PrometheusOSProviderInstanceProperties class. */ + public PrometheusOSProviderInstanceProperties() { + } + /** * Get the prometheusUrl property: URL of the Node Exporter endpoint. * @@ -40,6 +56,48 @@ public PrometheusOSProviderInstanceProperties withPrometheusUrl(String prometheu return this; } + /** + * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @return the sslPreference value. + */ + public SslPreference sslPreference() { + return this.sslPreference; + } + + /** + * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @param sslPreference the sslPreference value to set. + * @return the PrometheusOSProviderInstanceProperties object itself. + */ + public PrometheusOSProviderInstanceProperties withSslPreference(SslPreference sslPreference) { + this.sslPreference = sslPreference; + return this; + } + + /** + * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the prometheus node + * exporter. + * + * @return the sslCertificateUri value. + */ + public String sslCertificateUri() { + return this.sslCertificateUri; + } + + /** + * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the prometheus node + * exporter. + * + * @param sslCertificateUri the sslCertificateUri value to set. + * @return the PrometheusOSProviderInstanceProperties object itself. + */ + public PrometheusOSProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) { + this.sslCertificateUri = sslCertificateUri; + return this; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstanceListResult.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstanceListResult.java index 48c24b97f8165..078e131cfaf41 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstanceListResult.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstanceListResult.java @@ -24,6 +24,10 @@ public final class ProviderInstanceListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of ProviderInstanceListResult class. */ + public ProviderInstanceListResult() { + } + /** * Get the value property: The list of provider instances. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstancePropertiesErrors.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstancePropertiesErrors.java index 13ec2ebdbd927..0442e88a4c6b8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstancePropertiesErrors.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstancePropertiesErrors.java @@ -9,6 +9,10 @@ /** Defines the provider instance errors. */ @Immutable public final class ProviderInstancePropertiesErrors extends Error { + /** Creates an instance of ProviderInstancePropertiesErrors class. */ + public ProviderInstancePropertiesErrors() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstances.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstances.java index ca34935f32d64..a404b72278253 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstances.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderInstances.java @@ -11,8 +11,10 @@ /** Resource collection API of ProviderInstances. */ public interface ProviderInstances { /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -25,8 +27,10 @@ public interface ProviderInstances { PagedIterable list(String resourceGroupName, String monitorName); /** - * Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each - * provider instances. + * Gets a list of provider instances in the specified SAP monitor. + * + *

Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of + * each provider instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -40,39 +44,46 @@ public interface ProviderInstances { PagedIterable list(String resourceGroupName, String monitorName, Context context); /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param providerInstanceName Name of the provider instance. + * @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 properties of a provider instance for the specified subscription, resource group, SAP monitor name, and - * resource name. + * resource name along with {@link Response}. */ - ProviderInstance get(String resourceGroupName, String monitorName, String providerInstanceName); + Response getWithResponse( + String resourceGroupName, String monitorName, String providerInstanceName, Context context); /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. * @param providerInstanceName Name of the provider instance. - * @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 properties of a provider instance for the specified subscription, resource group, SAP monitor name, and - * resource name along with {@link Response}. + * resource name. */ - Response getWithResponse( - String resourceGroupName, String monitorName, String providerInstanceName, Context context); + ProviderInstance get(String resourceGroupName, String monitorName, String providerInstanceName); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -85,7 +96,10 @@ Response getWithResponse( OperationStatusResult delete(String resourceGroupName, String monitorName, String providerInstanceName); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Name of the SAP monitor resource. @@ -100,7 +114,9 @@ OperationStatusResult delete( String resourceGroupName, String monitorName, String providerInstanceName, Context context); /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param id the resource ID. @@ -113,7 +129,9 @@ OperationStatusResult delete( ProviderInstance getById(String id); /** - * Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and + * Gets properties of a provider instance. + * + *

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and * resource name. * * @param id the resource ID. @@ -127,7 +145,10 @@ OperationStatusResult delete( Response getByIdWithResponse(String id, Context context); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +159,10 @@ OperationStatusResult delete( OperationStatusResult deleteById(String id); /** - * Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. + * Deletes a provider instance. + * + *

Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource + * name. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderSpecificProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderSpecificProperties.java index 9e5492e50740a..cf556c5d49b91 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderSpecificProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ProviderSpecificProperties.java @@ -26,6 +26,10 @@ }) @Immutable public class ProviderSpecificProperties { + /** Creates an instance of ProviderSpecificProperties class. */ + public ProviderSpecificProperties() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RedisCacheFamily.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RedisCacheFamily.java index faad2e14f3937..1e92d0d6d8fcd 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RedisCacheFamily.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RedisCacheFamily.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for RedisCacheFamily. */ +/** Cache family. */ public final class RedisCacheFamily extends ExpandableStringEnum { /** Static value C for RedisCacheFamily. */ public static final RedisCacheFamily C = fromString("C"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ResourceProviders.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ResourceProviders.java index c3e6dcd1aca83..a4c64d01c3348 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ResourceProviders.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ResourceProviders.java @@ -10,18 +10,8 @@ /** Resource collection API of ResourceProviders. */ public interface ResourceProviders { /** - * Get SAP sizing recommendations. - * - * @param location The name of Azure region. - * @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 sAP sizing recommendations. - */ - SapSizingRecommendationResult sapSizingRecommendations(String location); - - /** - * Get SAP sizing recommendations. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @param sapSizingRecommendation SAP Sizing Recommendation Request body. @@ -29,24 +19,27 @@ public interface ResourceProviders { * @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 sAP sizing recommendations along with {@link Response}. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier along with {@link Response}. */ Response sapSizingRecommendationsWithResponse( String location, SapSizingRecommendationRequest sapSizingRecommendation, Context context); /** - * Get SAP supported SKUs. + * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. * * @param location The name of Azure region. * @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 sAP supported SKUs. + * @return sAP sizing recommendations by providing input SAPS for application tier and memory required for database + * tier. */ - SapSupportedResourceSkusResult sapSupportedSku(String location); + SapSizingRecommendationResult sapSizingRecommendations(String location); /** - * Get SAP supported SKUs. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @param sapSupportedSku SAP Supported SKU Request body. @@ -54,24 +47,24 @@ Response sapSizingRecommendationsWithResponse( * @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 sAP supported SKUs along with {@link Response}. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier along with {@link Response}. */ Response sapSupportedSkuWithResponse( String location, SapSupportedSkusRequest sapSupportedSku, Context context); /** - * Get SAP Disk Configurations. + * Get a list of SAP supported SKUs for ASCS, Application and Database tier. * * @param location The name of Azure region. * @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 sAP Disk Configurations. + * @return a list of SAP supported SKUs for ASCS, Application and Database tier. */ - SapDiskConfigurationsResult sapDiskConfigurations(String location); + SapSupportedResourceSkusResult sapSupportedSku(String location); /** - * Get SAP Disk Configurations. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @param sapDiskConfigurations SAP Disk Configurations Request body. @@ -79,24 +72,24 @@ Response sapSupportedSkuWithResponse( * @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 sAP Disk Configurations along with {@link Response}. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System along with {@link Response}. */ Response sapDiskConfigurationsWithResponse( String location, SapDiskConfigurationsRequest sapDiskConfigurations, Context context); /** - * Get SAP Availability Zone Details. + * Get the SAP Disk Configuration Layout prod/non-prod SAP System. * * @param location The name of Azure region. * @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 sAP Availability Zone Details. + * @return the SAP Disk Configuration Layout prod/non-prod SAP System. */ - SapAvailabilityZoneDetailsResult sapAvailabilityZoneDetails(String location); + SapDiskConfigurationsResult sapDiskConfigurations(String location); /** - * Get SAP Availability Zone Details. + * Get the recommended SAP Availability Zone Pair Details for your region. * * @param location The name of Azure region. * @param sapAvailabilityZoneDetails SAP Availability Zone Details Request body. @@ -104,8 +97,19 @@ Response sapDiskConfigurationsWithResponse( * @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 sAP Availability Zone Details along with {@link Response}. + * @return the recommended SAP Availability Zone Pair Details for your region along with {@link Response}. */ Response sapAvailabilityZoneDetailsWithResponse( String location, SapAvailabilityZoneDetailsRequest sapAvailabilityZoneDetails, Context context); + + /** + * Get the recommended SAP Availability Zone Pair Details for your region. + * + * @param location The name of Azure region. + * @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 recommended SAP Availability Zone Pair Details for your region. + */ + SapAvailabilityZoneDetailsResult sapAvailabilityZoneDetails(String location); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RoutingPreference.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RoutingPreference.java index 1f72fa803f753..98817af124901 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RoutingPreference.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/RoutingPreference.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for RoutingPreference. */ +/** Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET. */ public final class RoutingPreference extends ExpandableStringEnum { /** Static value Default for RoutingPreference. */ public static final RoutingPreference DEFAULT = fromString("Default"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstance.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstance.java index 48e7d155fd17a..c6c04ce4d7c2d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstance.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstance.java @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.workloads.fluent.models.SapApplicationServerInstanceInner; +import java.util.List; import java.util.Map; /** An immutable client-side representation of SapApplicationServerInstance. */ @@ -55,63 +56,63 @@ public interface SapApplicationServerInstance { SystemData systemData(); /** - * Gets the instanceNo property: The application server instance id. + * Gets the instanceNo property: Application server Instance Number. * * @return the instanceNo value. */ String instanceNo(); /** - * Gets the subnet property: The application server subnet. + * Gets the subnet property: Application server Subnet. * * @return the subnet value. */ String subnet(); /** - * Gets the hostname property: The application server SAP host name. + * Gets the hostname property: Application server instance SAP hostname. * * @return the hostname value. */ String hostname(); /** - * Gets the kernelVersion property: The application server SAP kernel version. + * Gets the kernelVersion property: Application server instance SAP Kernel Version. * * @return the kernelVersion value. */ String kernelVersion(); /** - * Gets the kernelPatch property: The application server SAP kernel patch. + * Gets the kernelPatch property: Application server instance SAP Kernel Patch level. * * @return the kernelPatch value. */ String kernelPatch(); /** - * Gets the ipAddress property: The application server SAP IP Address. + * Gets the ipAddress property: Application server instance SAP IP Address. * * @return the ipAddress value. */ String ipAddress(); /** - * Gets the gatewayPort property: The application server gateway Port. + * Gets the gatewayPort property: Application server instance gateway Port. * * @return the gatewayPort value. */ Long gatewayPort(); /** - * Gets the icmHttpPort property: The application server ICM HTTP Port. + * Gets the icmHttpPort property: Application server instance ICM HTTP Port. * * @return the icmHttpPort value. */ Long icmHttpPort(); /** - * Gets the icmHttpsPort property: The application server ICM HTTPS Port. + * Gets the icmHttpsPort property: Application server instance ICM HTTPS Port. * * @return the icmHttpsPort value. */ @@ -132,7 +133,15 @@ public interface SapApplicationServerInstance { SapVirtualInstanceStatus status(); /** - * Gets the health property: Defines the SAP Instance health. + * Gets the storageDetails property: Storage details of all the Storage Accounts attached to the App Virtual + * Machine. For e.g. NFS on AFS Shared Storage. + * + * @return the storageDetails value. + */ + List storageDetails(); + + /** + * Gets the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -216,7 +225,7 @@ interface WithParentResource { * Specifies resourceGroupName, sapVirtualInstanceName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. * @return the next definition stage. */ WithCreate withExistingSapVirtualInstance(String resourceGroupName, String sapVirtualInstanceName); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstanceList.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstanceList.java index b857f33af17a8..8f4cfdb09011d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstanceList.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstanceList.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Defines the collection of SAP Application Server Instances. */ +/** Defines the collection of SAP Application Server Instance resources. */ @Fluent public final class SapApplicationServerInstanceList { /* - * Gets the list of SAP Application Server instances. + * Gets the list of SAP Application Server instance resources. */ @JsonProperty(value = "value") private List value; @@ -24,8 +24,12 @@ public final class SapApplicationServerInstanceList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SapApplicationServerInstanceList class. */ + public SapApplicationServerInstanceList() { + } + /** - * Get the value property: Gets the list of SAP Application Server instances. + * Get the value property: Gets the list of SAP Application Server instance resources. * * @return the value value. */ @@ -34,7 +38,7 @@ public List value() { } /** - * Set the value property: Gets the list of SAP Application Server instances. + * Set the value property: Gets the list of SAP Application Server instance resources. * * @param value the value value to set. * @return the SapApplicationServerInstanceList object itself. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstances.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstances.java index 6e44ba72ed88d..36c9830ca5d9f 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstances.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapApplicationServerInstances.java @@ -11,41 +11,42 @@ /** Resource collection API of SapApplicationServerInstances. */ public interface SapApplicationServerInstances { /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response}. */ - SapApplicationServerInstance get( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); + Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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 SAP Application Server Instance along with {@link Response}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. */ - Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); + SapApplicationServerInstance get( + String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -55,12 +56,12 @@ OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param applicationInstanceName The name of SAP Application Server instance. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param applicationInstanceName The name of SAP Application Server instance 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. @@ -71,59 +72,61 @@ OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String applicationInstanceName, Context context); /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link * PagedIterable}. */ PagedIterable list(String resourceGroupName, String sapVirtualInstanceName); /** - * Lists the SAP Application server Instances in an SVI. + * Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Application Server Instances as paginated response with {@link + * @return defines the collection of SAP Application Server Instance resources as paginated response with {@link * PagedIterable}. */ PagedIterable list( String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param id the resource ID. * @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 SAP Application Server Instance along with {@link Response}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response}. */ SapApplicationServerInstance getById(String id); /** - * Gets the SAP Application Server Instance. + * Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. * * @param id the resource 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 SAP Application Server Instance along with {@link Response}. + * @return the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource + * along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,8 +137,8 @@ PagedIterable list( OperationStatusResult deleteById(String id); /** - * Deletes the SAP Application Server Instance. <br><br>This operation will be used by service only. - * Delete by end user will return a Bad Request error. + * Deletes the SAP Application Server Instance resource. <br><br>This operation will be used by service + * only. Delete by end user will return a Bad Request error. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZoneDetailsRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZoneDetailsRequest.java index c4a2d78fe5a8a..9ed769550418f 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZoneDetailsRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZoneDetailsRequest.java @@ -29,6 +29,10 @@ public final class SapAvailabilityZoneDetailsRequest { @JsonProperty(value = "databaseType", required = true) private SapDatabaseType databaseType; + /** Creates an instance of SapAvailabilityZoneDetailsRequest class. */ + public SapAvailabilityZoneDetailsRequest() { + } + /** * Get the appLocation property: The geo-location where the SAP resources will be created. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZonePair.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZonePair.java index 4d27eb2bc81bc..8a0d865ea1c23 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZonePair.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapAvailabilityZonePair.java @@ -22,6 +22,10 @@ public final class SapAvailabilityZonePair { @JsonProperty(value = "zoneB") private Long zoneB; + /** Creates an instance of SapAvailabilityZonePair class. */ + public SapAvailabilityZonePair() { + } + /** * Get the zoneA property: The zone A. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstanceList.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstanceList.java index 57743f6f653c6..c24bcecd9b30f 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstanceList.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstanceList.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Defines the collection of SAP Central Instances. */ +/** Defines the collection of SAP Central Services Instance resources. */ @Fluent public final class SapCentralInstanceList { /* - * Gets the list of SAP central instances. + * Gets the list of SAP central services instance resources. */ @JsonProperty(value = "value") private List value; @@ -24,8 +24,12 @@ public final class SapCentralInstanceList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SapCentralInstanceList class. */ + public SapCentralInstanceList() { + } + /** - * Get the value property: Gets the list of SAP central instances. + * Get the value property: Gets the list of SAP central services instance resources. * * @return the value value. */ @@ -34,7 +38,7 @@ public List value() { } /** - * Set the value property: Gets the list of SAP central instances. + * Set the value property: Gets the list of SAP central services instance resources. * * @param value the value value to set. * @return the SapCentralInstanceList object itself. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstances.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstances.java index f0d1dcbb2f143..1f0286c596924 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstances.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralInstances.java @@ -11,43 +11,44 @@ /** Resource collection API of SapCentralInstances. */ public interface SapCentralInstances { /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. + * @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 SAP Central Instance. + * @return the SAP Central Services Instance resource along with {@link Response}. */ - SapCentralServerInstance get(String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); + Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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 SAP Central Instance along with {@link Response}. + * @return the SAP Central Services Instance resource. */ - Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); + SapCentralServerInstance get(String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -56,13 +57,14 @@ Response getWithResponse( OperationStatusResult delete(String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param centralInstanceName Central Instance name string modeled as parameter for auto generation to work - * correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param centralInstanceName Central Services Instance resource name string modeled as parameter for auto + * generation to work correctly. * @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. @@ -73,57 +75,60 @@ OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String centralInstanceName, Context context); /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedIterable}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String sapVirtualInstanceName); /** - * Lists the SAP Central Instances in an SVI. + * Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 defines the collection of SAP Central Instances as paginated response with {@link PagedIterable}. + * @return defines the collection of SAP Central Services Instance resources as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param id the resource ID. * @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 SAP Central Instance along with {@link Response}. + * @return the SAP Central Services Instance resource along with {@link Response}. */ SapCentralServerInstance getById(String id); /** - * Gets the SAP Central Instance. + * Gets the SAP Central Services Instance resource. * * @param id the resource 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 SAP Central Instance along with {@link Response}. + * @return the SAP Central Services Instance resource along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,8 +139,9 @@ PagedIterable list( OperationStatusResult deleteById(String id); /** - * Deletes the SAP Central Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the SAP Central Services Instance resource. <br><br>This will be used by service only. Delete + * operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which + * is the Virtual Instance for SAP solutions resource, using the delete operation on it. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralServerInstance.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralServerInstance.java index dbc4d014ee622..0ede8e3470173 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralServerInstance.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapCentralServerInstance.java @@ -56,28 +56,28 @@ public interface SapCentralServerInstance { SystemData systemData(); /** - * Gets the instanceNo property: The central server instance id. + * Gets the instanceNo property: The central services instance number. * * @return the instanceNo value. */ String instanceNo(); /** - * Gets the subnet property: The central server subnet. + * Gets the subnet property: The central services instance subnet. * * @return the subnet value. */ String subnet(); /** - * Gets the messageServerProperties property: Defines the SAP message server properties. + * Gets the messageServerProperties property: Defines the SAP Message Server properties. * * @return the messageServerProperties value. */ MessageServerProperties messageServerProperties(); /** - * Gets the enqueueServerProperties property: Defines the SAP enqueue server properties. + * Gets the enqueueServerProperties property: Defines the SAP Enqueue Server properties. * * @return the enqueueServerProperties value. */ @@ -91,28 +91,37 @@ public interface SapCentralServerInstance { GatewayServerProperties gatewayServerProperties(); /** - * Gets the enqueueReplicationServerProperties property: Defines the SAP ERS Server properties. + * Gets the enqueueReplicationServerProperties property: Defines the SAP Enqueue Replication Server (ERS) + * properties. * * @return the enqueueReplicationServerProperties value. */ EnqueueReplicationServerProperties enqueueReplicationServerProperties(); /** - * Gets the kernelVersion property: The central server kernel version. + * Gets the kernelVersion property: The central services instance Kernel Version. * * @return the kernelVersion value. */ String kernelVersion(); /** - * Gets the kernelPatch property: The central server kernel patch. + * Gets the kernelPatch property: The central services instance Kernel Patch level. * * @return the kernelPatch value. */ String kernelPatch(); /** - * Gets the vmDetails property: The list of virtual machines. + * Gets the loadBalancerDetails property: The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual + * Machines. + * + * @return the loadBalancerDetails value. + */ + LoadBalancerDetails loadBalancerDetails(); + + /** + * Gets the vmDetails property: The list of virtual machines corresponding to the Central Services instance. * * @return the vmDetails value. */ @@ -126,7 +135,7 @@ public interface SapCentralServerInstance { SapVirtualInstanceStatus status(); /** - * Gets the health property: Defines the SAP Instance health. + * Gets the health property: Defines the health of SAP Instances. * * @return the health value. */ @@ -140,7 +149,7 @@ public interface SapCentralServerInstance { SapVirtualInstanceProvisioningState provisioningState(); /** - * Gets the errors property: Defines the Central Instance errors. + * Gets the errors property: Defines the errors related to SAP Central Services Instance resource. * * @return the errors value. */ @@ -210,7 +219,7 @@ interface WithParentResource { * Specifies resourceGroupName, sapVirtualInstanceName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. * @return the next definition stage. */ WithCreate withExistingSapVirtualInstance(String resourceGroupName, String sapVirtualInstanceName); @@ -253,9 +262,9 @@ interface WithTags { /** The stage of the SapCentralServerInstance definition allowing to specify messageServerProperties. */ interface WithMessageServerProperties { /** - * Specifies the messageServerProperties property: Defines the SAP message server properties.. + * Specifies the messageServerProperties property: Defines the SAP Message Server properties.. * - * @param messageServerProperties Defines the SAP message server properties. + * @param messageServerProperties Defines the SAP Message Server properties. * @return the next definition stage. */ WithCreate withMessageServerProperties(MessageServerProperties messageServerProperties); @@ -263,9 +272,9 @@ interface WithMessageServerProperties { /** The stage of the SapCentralServerInstance definition allowing to specify enqueueServerProperties. */ interface WithEnqueueServerProperties { /** - * Specifies the enqueueServerProperties property: Defines the SAP enqueue server properties.. + * Specifies the enqueueServerProperties property: Defines the SAP Enqueue Server properties.. * - * @param enqueueServerProperties Defines the SAP enqueue server properties. + * @param enqueueServerProperties Defines the SAP Enqueue Server properties. * @return the next definition stage. */ WithCreate withEnqueueServerProperties(EnqueueServerProperties enqueueServerProperties); @@ -285,9 +294,10 @@ interface WithGatewayServerProperties { */ interface WithEnqueueReplicationServerProperties { /** - * Specifies the enqueueReplicationServerProperties property: Defines the SAP ERS Server properties.. + * Specifies the enqueueReplicationServerProperties property: Defines the SAP Enqueue Replication Server + * (ERS) properties.. * - * @param enqueueReplicationServerProperties Defines the SAP ERS Server properties. + * @param enqueueReplicationServerProperties Defines the SAP Enqueue Replication Server (ERS) properties. * @return the next definition stage. */ WithCreate withEnqueueReplicationServerProperties( diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfiguration.java index 377f61b709dd1..ad5977b7ef1b5 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfiguration.java @@ -23,6 +23,10 @@ }) @Immutable public class SapConfiguration { + /** Creates an instance of SapConfiguration class. */ + public SapConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfigurationType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfigurationType.java index 967e9d40f0b52..4e08645634eb7 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfigurationType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapConfigurationType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapConfigurationType. */ +/** The configuration Type. */ public final class SapConfigurationType extends ExpandableStringEnum { /** Static value Deployment for SapConfigurationType. */ public static final SapConfigurationType DEPLOYMENT = fromString("Deployment"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstance.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstance.java index 5b31ddf5a56a5..247b244d7ee70 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstance.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstance.java @@ -56,35 +56,44 @@ public interface SapDatabaseInstance { SystemData systemData(); /** - * Gets the subnet property: The database subnet. + * Gets the subnet property: Database subnet. * * @return the subnet value. */ String subnet(); /** - * Gets the databaseSid property: The database SID. + * Gets the databaseSid property: Database SID name. * * @return the databaseSid value. */ String databaseSid(); /** - * Gets the databaseType property: The SAP database type. + * Gets the databaseType property: Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL + * Server. * * @return the databaseType value. */ String databaseType(); /** - * Gets the ipAddress property: The database IP Address. + * Gets the ipAddress property: Database IP Address. * * @return the ipAddress value. */ String ipAddress(); /** - * Gets the vmDetails property: The list of virtual machines. + * Gets the loadBalancerDetails property: The Load Balancer details such as LoadBalancer ID attached to Database + * Virtual Machines. + * + * @return the loadBalancerDetails value. + */ + LoadBalancerDetails loadBalancerDetails(); + + /** + * Gets the vmDetails property: The list of virtual machines corresponding to the Database resource. * * @return the vmDetails value. */ @@ -105,7 +114,7 @@ public interface SapDatabaseInstance { SapVirtualInstanceProvisioningState provisioningState(); /** - * Gets the errors property: Defines the Database Instance errors. + * Gets the errors property: Defines the errors related to Database resource. * * @return the errors value. */ @@ -175,7 +184,7 @@ interface WithParentResource { * Specifies resourceGroupName, sapVirtualInstanceName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. * @return the next definition stage. */ WithCreate withExistingSapVirtualInstance(String resourceGroupName, String sapVirtualInstanceName); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstanceList.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstanceList.java index 92909003994ad..e612bda04761e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstanceList.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstanceList.java @@ -24,6 +24,10 @@ public final class SapDatabaseInstanceList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SapDatabaseInstanceList class. */ + public SapDatabaseInstanceList() { + } + /** * Get the value property: Gets the list of SAP Database instances. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstances.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstances.java index e6bddcf52c2a5..1b68195566349 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstances.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseInstances.java @@ -11,40 +11,43 @@ /** Resource collection API of SapDatabaseInstances. */ public interface SapDatabaseInstances { /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. + * @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 SAP Database Instance. + * @return the SAP Database Instance resource along with {@link Response}. */ - SapDatabaseInstance get(String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); + Response getWithResponse( + String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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 SAP Database Instance along with {@link Response}. + * @return the SAP Database Instance resource. */ - Response getWithResponse( - String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); + SapDatabaseInstance get(String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -53,12 +56,13 @@ Response getWithResponse( OperationStatusResult delete(String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param databaseInstanceName Database Instance string modeled as parameter for auto generation to work correctly. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param databaseInstanceName Database resource name string modeled as parameter for auto generation to work + * correctly. * @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. @@ -69,10 +73,10 @@ OperationStatusResult delete( String resourceGroupName, String sapVirtualInstanceName, String databaseInstanceName, Context context); /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -81,10 +85,10 @@ OperationStatusResult delete( PagedIterable list(String resourceGroupName, String sapVirtualInstanceName); /** - * Lists the SAP Database Instances in an SVI. + * Lists the Database resources associated with a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -94,31 +98,31 @@ OperationStatusResult delete( PagedIterable list(String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param id the resource ID. * @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 SAP Database Instance along with {@link Response}. + * @return the SAP Database Instance resource along with {@link Response}. */ SapDatabaseInstance getById(String id); /** - * Gets the SAP Database Instance. + * Gets the SAP Database Instance resource. * * @param id the resource 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 SAP Database Instance along with {@link Response}. + * @return the SAP Database Instance resource along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,8 +133,8 @@ OperationStatusResult delete( OperationStatusResult deleteById(String id); /** - * Deletes the SAP Database Instance. <br><br>This will be used by service only. Delete by end user will - * return a Bad Request error. + * Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. + * <br><br>This will be used by service only. Delete by end user will return a Bad Request error. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseScaleMethod.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseScaleMethod.java index e35917e2b9f0c..cfa297e97d909 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseScaleMethod.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseScaleMethod.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapDatabaseScaleMethod. */ +/** The database scale method. */ public final class SapDatabaseScaleMethod extends ExpandableStringEnum { /** Static value ScaleUp for SapDatabaseScaleMethod. */ public static final SapDatabaseScaleMethod SCALE_UP = fromString("ScaleUp"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseType.java index ef178426ffde3..550937b0bcf69 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDatabaseType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapDatabaseType. */ +/** Defines the supported SAP Database types. */ public final class SapDatabaseType extends ExpandableStringEnum { /** Static value HANA for SapDatabaseType. */ public static final SapDatabaseType HANA = fromString("HANA"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDeploymentType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDeploymentType.java index d9810c7f263a1..ab4808669d428 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDeploymentType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDeploymentType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapDeploymentType. */ +/** The type of SAP deployment, single server or Three tier. */ public final class SapDeploymentType extends ExpandableStringEnum { /** Static value SingleServer for SapDeploymentType. */ public static final SapDeploymentType SINGLE_SERVER = fromString("SingleServer"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfiguration.java index 12a58fcd21268..5afbef30c0fa7 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfiguration.java @@ -52,6 +52,10 @@ public final class SapDiskConfiguration { @JsonProperty(value = "diskStorageType") private String diskStorageType; + /** Creates an instance of SapDiskConfiguration class. */ + public SapDiskConfiguration() { + } + /** * Get the volume property: The volume name. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfigurationsRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfigurationsRequest.java index 9a52cc38e0c1b..537b7236b39da 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfigurationsRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapDiskConfigurationsRequest.java @@ -47,6 +47,10 @@ public final class SapDiskConfigurationsRequest { @JsonProperty(value = "dbVmSku", required = true) private String dbVmSku; + /** Creates an instance of SapDiskConfigurationsRequest class. */ + public SapDiskConfigurationsRequest() { + } + /** * Get the appLocation property: The geo-location where the SAP resources will be created. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapEnvironmentType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapEnvironmentType.java index 713ad14d6756b..fcdcbea2840fb 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapEnvironmentType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapEnvironmentType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapEnvironmentType. */ +/** Defines the environment type - Production/Non Production. */ public final class SapEnvironmentType extends ExpandableStringEnum { /** Static value NonProd for SapEnvironmentType. */ public static final SapEnvironmentType NON_PROD = fromString("NonProd"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHealthState.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHealthState.java index dc12eae270c60..ae53ce6bcebeb 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHealthState.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHealthState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapHealthState. */ +/** Defines the health of SAP Instances. */ public final class SapHealthState extends ExpandableStringEnum { /** Static value Unknown for SapHealthState. */ public static final SapHealthState UNKNOWN = fromString("Unknown"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHighAvailabilityType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHighAvailabilityType.java index da4c7760d7c80..f53489e778d54 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHighAvailabilityType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapHighAvailabilityType.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapHighAvailabilityType. */ +/** + * The high availability Type. AvailabilitySet guarantees 99.95% availability. Availability Zone guarantees 99.99% + * availability. + */ public final class SapHighAvailabilityType extends ExpandableStringEnum { /** Static value AvailabilitySet for SapHighAvailabilityType. */ public static final SapHighAvailabilityType AVAILABILITY_SET = fromString("AvailabilitySet"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapInstallWithoutOSConfigSoftwareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapInstallWithoutOSConfigSoftwareConfiguration.java index a17b9d99cb7cc..24c1e73974427 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapInstallWithoutOSConfigSoftwareConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapInstallWithoutOSConfigSoftwareConfiguration.java @@ -39,6 +39,10 @@ public final class SapInstallWithoutOSConfigSoftwareConfiguration extends Softwa @JsonProperty(value = "highAvailabilitySoftwareConfiguration") private HighAvailabilitySoftwareConfiguration highAvailabilitySoftwareConfiguration; + /** Creates an instance of SapInstallWithoutOSConfigSoftwareConfiguration class. */ + public SapInstallWithoutOSConfigSoftwareConfiguration() { + } + /** * Get the bomUrl property: The URL to the SAP Build of Materials(BOM) file. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapNetWeaverProviderInstanceProperties.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapNetWeaverProviderInstanceProperties.java index 232af284167e1..8019f3881ee99 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapNetWeaverProviderInstanceProperties.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapNetWeaverProviderInstanceProperties.java @@ -75,6 +75,22 @@ public final class SapNetWeaverProviderInstanceProperties extends ProviderSpecif @JsonProperty(value = "sapSslCertificateUri") private String sapSslCertificateUri; + /* + * Gets or sets the blob URI to SSL certificate for the SAP system. + */ + @JsonProperty(value = "sslCertificateUri") + private String sslCertificateUri; + + /* + * Gets or sets certificate preference if secure communication is enabled. + */ + @JsonProperty(value = "sslPreference") + private SslPreference sslPreference; + + /** Creates an instance of SapNetWeaverProviderInstanceProperties class. */ + public SapNetWeaverProviderInstanceProperties() { + } + /** * Get the sapSid property: Gets or sets the SAP System Identifier. * @@ -275,6 +291,46 @@ public SapNetWeaverProviderInstanceProperties withSapSslCertificateUri(String sa return this; } + /** + * Get the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the SAP system. + * + * @return the sslCertificateUri value. + */ + public String sslCertificateUri() { + return this.sslCertificateUri; + } + + /** + * Set the sslCertificateUri property: Gets or sets the blob URI to SSL certificate for the SAP system. + * + * @param sslCertificateUri the sslCertificateUri value to set. + * @return the SapNetWeaverProviderInstanceProperties object itself. + */ + public SapNetWeaverProviderInstanceProperties withSslCertificateUri(String sslCertificateUri) { + this.sslCertificateUri = sslCertificateUri; + return this; + } + + /** + * Get the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @return the sslPreference value. + */ + public SslPreference sslPreference() { + return this.sslPreference; + } + + /** + * Set the sslPreference property: Gets or sets certificate preference if secure communication is enabled. + * + * @param sslPreference the sslPreference value to set. + * @return the SapNetWeaverProviderInstanceProperties object itself. + */ + public SapNetWeaverProviderInstanceProperties withSslPreference(SslPreference sslPreference) { + this.sslPreference = sslPreference; + return this; + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapProductType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapProductType.java index bffb68a16de29..ade193c0ecb72 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapProductType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapProductType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapProductType. */ +/** Defines the SAP Product type. */ public final class SapProductType extends ExpandableStringEnum { /** Static value ECC for SapProductType. */ public static final SapProductType ECC = fromString("ECC"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSizingRecommendationRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSizingRecommendationRequest.java index 0398398a97c42..ee5d846de3d8a 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSizingRecommendationRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSizingRecommendationRequest.java @@ -65,6 +65,10 @@ public final class SapSizingRecommendationRequest { @JsonProperty(value = "highAvailabilityType") private SapHighAvailabilityType highAvailabilityType; + /** Creates an instance of SapSizingRecommendationRequest class. */ + public SapSizingRecommendationRequest() { + } + /** * Get the appLocation property: The geo-location where the resource is to be created. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSoftwareInstallationType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSoftwareInstallationType.java index c33b4dbe521dd..0942cf3548c58 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSoftwareInstallationType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapSoftwareInstallationType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapSoftwareInstallationType. */ +/** The SAP software installation Type. */ public final class SapSoftwareInstallationType extends ExpandableStringEnum { /** Static value ServiceInitiated for SapSoftwareInstallationType. */ public static final SapSoftwareInstallationType SERVICE_INITIATED = fromString("ServiceInitiated"); @@ -17,6 +17,9 @@ public final class SapSoftwareInstallationType extends ExpandableStringEnum value; @@ -24,8 +24,12 @@ public final class SapVirtualInstanceList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SapVirtualInstanceList class. */ + public SapVirtualInstanceList() { + } + /** - * Get the value property: Gets the list of Virtual Instances for SAP. + * Get the value property: Gets the list of Virtual Instances for SAP solutions resources. * * @return the value value. */ @@ -34,7 +38,7 @@ public List value() { } /** - * Set the value property: Gets the list of Virtual Instances for SAP. + * Set the value property: Gets the list of Virtual Instances for SAP solutions resources. * * @param value the value value to set. * @return the SapVirtualInstanceList object itself. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceProvisioningState.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceProvisioningState.java index 9840b5f5774f1..8ade6b2d0963a 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceProvisioningState.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapVirtualInstanceProvisioningState. */ +/** Defines the provisioning states. */ public final class SapVirtualInstanceProvisioningState extends ExpandableStringEnum { /** Static value Succeeded for SapVirtualInstanceProvisioningState. */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceState.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceState.java index b569749293326..f44ef770213b8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceState.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstanceState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SapVirtualInstanceState. */ +/** Defines the Virtual Instance for SAP state. */ public final class SapVirtualInstanceState extends ExpandableStringEnum { /** Static value InfrastructureDeploymentPending for SapVirtualInstanceState. */ public static final SapVirtualInstanceState INFRASTRUCTURE_DEPLOYMENT_PENDING = @@ -33,6 +33,13 @@ public final class SapVirtualInstanceState extends ExpandableStringEnum { /** Static value Starting for SapVirtualInstanceStatus. */ public static final SapVirtualInstanceStatus STARTING = fromString("Starting"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstances.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstances.java index 0891bc5d0155e..9e807f2777d4c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstances.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SapVirtualInstances.java @@ -11,36 +11,37 @@ /** Resource collection API of SapVirtualInstances. */ public interface SapVirtualInstances { /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP. + * @return a Virtual Instance for SAP solutions resource along with {@link Response}. */ - SapVirtualInstance getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param context The context to associate with this operation. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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 an Virtual Instance for SAP along with {@link Response}. + * @return a Virtual Instance for SAP solutions resource. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String sapVirtualInstanceName, Context context); + SapVirtualInstance getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -49,10 +50,11 @@ Response getByResourceGroupWithResponse( OperationStatusResult deleteByResourceGroup(String resourceGroupName, String sapVirtualInstanceName); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -62,53 +64,57 @@ Response getByResourceGroupWithResponse( OperationStatusResult delete(String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** - * Gets all Virtual Instances for SAP in a resource group. + * Gets all Virtual Instances for SAP solutions resources in a 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 all Virtual Instances for SAP in a resource group as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Resource Group as paginated response with {@link + * PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 Virtual Instances for SAP in the subscription as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedIterable}. */ PagedIterable list(); /** - * Gets all Virtual Instances for SAP in the subscription. + * Gets all Virtual Instances for SAP solutions resources in a Subscription. * * @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 Virtual Instances for SAP in the subscription as paginated response with {@link PagedIterable}. + * @return all Virtual Instances for SAP solutions resources in a Subscription as paginated response with {@link + * PagedIterable}. */ PagedIterable list(Context context); /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -117,10 +123,10 @@ Response getByResourceGroupWithResponse( OperationStatusResult start(String resourceGroupName, String sapVirtualInstanceName); /** - * Starts the SAP System. + * Starts the SAP application, that is the Central Services instance and Application server instances. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -130,23 +136,10 @@ Response getByResourceGroupWithResponse( OperationStatusResult start(String resourceGroupName, String sapVirtualInstanceName, Context context); /** - * Stops the SAP System. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. - * @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 current status of an async operation. - */ - OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName, StopRequest body); - - /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions 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. @@ -155,11 +148,11 @@ Response getByResourceGroupWithResponse( OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName); /** - * Stops the SAP System. + * Stops the SAP Application, that is the Application server instances and Central Services instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param sapVirtualInstanceName The name of the Virtual Instances for SAP. - * @param body The Virtual Instances for SAP stop request body. + * @param sapVirtualInstanceName The name of the Virtual Instances for SAP solutions resource. + * @param body The Virtual Instance for SAP solutions resource stop request body. * @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. @@ -170,30 +163,31 @@ OperationStatusResult stop( String resourceGroupName, String sapVirtualInstanceName, StopRequest body, Context context); /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param id the resource ID. * @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 an Virtual Instance for SAP along with {@link Response}. + * @return a Virtual Instance for SAP solutions resource along with {@link Response}. */ SapVirtualInstance getById(String id); /** - * Gets an Virtual Instance for SAP. + * Gets a Virtual Instance for SAP solutions resource. * * @param id the resource 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 an Virtual Instance for SAP along with {@link Response}. + * @return a Virtual Instance for SAP solutions resource along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -204,7 +198,8 @@ OperationStatusResult stop( OperationStatusResult deleteById(String id); /** - * Deletes an Virtual Instance for SAP. + * Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central + * Services Instance, Application Server Instances and Database Instance. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchProfile.java index 6708270354b99..827c4e43e4e52 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchProfile.java @@ -18,6 +18,10 @@ public final class SearchProfile extends NodeProfile { @JsonProperty(value = "searchType", required = true) private SearchType searchType; + /** Creates an instance of SearchProfile class. */ + public SearchProfile() { + } + /** * Get the searchType property: Search type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchType.java index 05ec576807b65..a48d6b794f781 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SearchType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SearchType. */ +/** Search type. */ public final class SearchType extends ExpandableStringEnum { /** Static value Elastic for SearchType. */ public static final SearchType ELASTIC = fromString("Elastic"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ServiceInitiatedSoftwareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ServiceInitiatedSoftwareConfiguration.java index 81294dee4f459..9b27aa6844828 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ServiceInitiatedSoftwareConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ServiceInitiatedSoftwareConfiguration.java @@ -51,6 +51,10 @@ public final class ServiceInitiatedSoftwareConfiguration extends SoftwareConfigu @JsonProperty(value = "highAvailabilitySoftwareConfiguration") private HighAvailabilitySoftwareConfiguration highAvailabilitySoftwareConfiguration; + /** Creates an instance of ServiceInitiatedSoftwareConfiguration class. */ + public ServiceInitiatedSoftwareConfiguration() { + } + /** * Get the bomUrl property: The URL to the SAP Build of Materials(BOM) file. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerConfiguration.java index 976acd4a9c543..e9fc865417fe3 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerConfiguration.java @@ -39,6 +39,16 @@ public final class SingleServerConfiguration extends InfrastructureConfiguration @JsonProperty(value = "virtualMachineConfiguration", required = true) private VirtualMachineConfiguration virtualMachineConfiguration; + /* + * Gets or sets the disk configuration. + */ + @JsonProperty(value = "dbDiskConfiguration") + private DiskConfiguration dbDiskConfiguration; + + /** Creates an instance of SingleServerConfiguration class. */ + public SingleServerConfiguration() { + } + /** * Get the networkConfiguration property: Network configuration for the server. * @@ -120,6 +130,26 @@ public SingleServerConfiguration withVirtualMachineConfiguration( return this; } + /** + * Get the dbDiskConfiguration property: Gets or sets the disk configuration. + * + * @return the dbDiskConfiguration value. + */ + public DiskConfiguration dbDiskConfiguration() { + return this.dbDiskConfiguration; + } + + /** + * Set the dbDiskConfiguration property: Gets or sets the disk configuration. + * + * @param dbDiskConfiguration the dbDiskConfiguration value to set. + * @return the SingleServerConfiguration object itself. + */ + public SingleServerConfiguration withDbDiskConfiguration(DiskConfiguration dbDiskConfiguration) { + this.dbDiskConfiguration = dbDiskConfiguration; + return this; + } + /** {@inheritDoc} */ @Override public SingleServerConfiguration withAppResourceGroup(String appResourceGroup) { @@ -152,6 +182,9 @@ public void validate() { } else { virtualMachineConfiguration().validate(); } + if (dbDiskConfiguration() != null) { + dbDiskConfiguration().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(SingleServerConfiguration.class); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerRecommendationResult.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerRecommendationResult.java index 029c73b08b8f2..15bd3a71f19c1 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerRecommendationResult.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SingleServerRecommendationResult.java @@ -21,6 +21,10 @@ public final class SingleServerRecommendationResult extends SapSizingRecommendat @JsonProperty(value = "vmSku") private String vmSku; + /** Creates an instance of SingleServerRecommendationResult class. */ + public SingleServerRecommendationResult() { + } + /** * Get the vmSku property: The recommended VM SKU for single server. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SiteProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SiteProfile.java index 4a52c9a7fb391..7b8257e534c59 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SiteProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SiteProfile.java @@ -16,6 +16,10 @@ public final class SiteProfile { @JsonProperty(value = "domainName") private String domainName; + /** Creates an instance of SiteProfile class. */ + public SiteProfile() { + } + /** * Get the domainName property: Domain name for the application site URL. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkipFileShareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkipFileShareConfiguration.java new file mode 100644 index 0000000000000..3786e1469ce2e --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkipFileShareConfiguration.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** Gets or sets the file share configuration where we don't create a transport directory fileshare. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "configurationType") +@JsonTypeName("Skip") +@Immutable +public final class SkipFileShareConfiguration extends FileShareConfiguration { + /** Creates an instance of SkipFileShareConfiguration class. */ + public SkipFileShareConfiguration() { + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Sku.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Sku.java index 57a483f67cd20..2eb0352ff9fe2 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Sku.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/Sku.java @@ -18,34 +18,36 @@ public final class Sku { private String name; /* - * This field is required to be implemented by the Resource Provider if the - * service has more than one tier, but is not required on a PUT. + * This field is required to be implemented by the Resource Provider if the service has more than one tier, but is + * not required on a PUT. */ @JsonProperty(value = "tier") private SkuTier tier; /* - * The SKU size. When the name field is the combination of tier and some - * other value, this would be the standalone code. + * The SKU size. When the name field is the combination of tier and some other value, this would be the standalone + * code. */ @JsonProperty(value = "size") private String size; /* - * If the service has different generations of hardware, for the same SKU, - * then that can be captured here. + * If the service has different generations of hardware, for the same SKU, then that can be captured here. */ @JsonProperty(value = "family") private String family; /* - * If the SKU supports scale out/in then the capacity integer should be - * included. If scale out/in is not possible for the resource this may be - * omitted. + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. */ @JsonProperty(value = "capacity") private Integer capacity; + /** Creates an instance of Sku class. */ + public Sku() { + } + /** * Get the name property: The name of the SKU. Ex - P3. It is typically a letter+number code. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCapability.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCapability.java index 9321befb7daee..ebb78eaeab26f 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCapability.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCapability.java @@ -22,6 +22,10 @@ public final class SkuCapability { @JsonProperty(value = "value") private String value; + /** Creates an instance of SkuCapability class. */ + public SkuCapability() { + } + /** * Get the name property: The capability name. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCost.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCost.java index 96d691b4e2711..70a3c264078e7 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCost.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuCost.java @@ -28,6 +28,10 @@ public final class SkuCost { @JsonProperty(value = "extendedUnit") private String extendedUnit; + /** Creates an instance of SkuCost class. */ + public SkuCost() { + } + /** * Get the meterId property: Billing meter id. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuLocationAndZones.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuLocationAndZones.java index 9b2ac8bdc1274..0a989b7323c18 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuLocationAndZones.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuLocationAndZones.java @@ -41,6 +41,10 @@ public final class SkuLocationAndZones { @JsonProperty(value = "type") private LocationType type; + /** Creates an instance of SkuLocationAndZones class. */ + public SkuLocationAndZones() { + } + /** * Get the location property: The location of the SKU. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestriction.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestriction.java index aedbbf763c2c2..3f646399f726d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestriction.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestriction.java @@ -35,6 +35,10 @@ public final class SkuRestriction { @JsonProperty(value = "reasonCode") private SkuRestrictionReasonCode reasonCode; + /** Creates an instance of SkuRestriction class. */ + public SkuRestriction() { + } + /** * Get the type property: The SKU restriction type. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionReasonCode.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionReasonCode.java index 9c975d9309054..52a9acab8bc6d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionReasonCode.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionReasonCode.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SkuRestrictionReasonCode. */ +/** The SKU restriction reason code. */ public final class SkuRestrictionReasonCode extends ExpandableStringEnum { /** Static value NotSpecified for SkuRestrictionReasonCode. */ public static final SkuRestrictionReasonCode NOT_SPECIFIED = fromString("NotSpecified"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionType.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionType.java index 8090c72b4914c..a88377ecc22d2 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionType.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuRestrictionType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SkuRestrictionType. */ +/** The SKU restriction type. */ public final class SkuRestrictionType extends ExpandableStringEnum { /** Static value NotSpecified for SkuRestrictionType. */ public static final SkuRestrictionType NOT_SPECIFIED = fromString("NotSpecified"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuTier.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuTier.java index 8adcd71889f7f..b0e9863770a3b 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuTier.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuTier.java @@ -7,7 +7,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for SkuTier. */ +/** + * This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + */ public enum SkuTier { /** Enum value Free. */ FREE("Free"), @@ -36,6 +39,9 @@ public enum SkuTier { */ @JsonCreator public static SkuTier fromString(String value) { + if (value == null) { + return null; + } SkuTier[] items = SkuTier.values(); for (SkuTier item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -45,6 +51,7 @@ public static SkuTier fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuZoneDetail.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuZoneDetail.java index 075fde9b308ce..da8d3a589eabb 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuZoneDetail.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkuZoneDetail.java @@ -23,6 +23,10 @@ public final class SkuZoneDetail { @JsonProperty(value = "capabilities") private List capabilities; + /** Creates an instance of SkuZoneDetail class. */ + public SkuZoneDetail() { + } + /** * Get the zones property: The physical zones. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkusListResult.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkusListResult.java index 0a2025b01bb4f..0c6f5f059d6c3 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkusListResult.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SkusListResult.java @@ -24,6 +24,10 @@ public final class SkusListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SkusListResult class. */ + public SkusListResult() { + } + /** * Get the value property: List of SKUs supported by the resource provider. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SoftwareConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SoftwareConfiguration.java index 2f7052375a494..d3083a90f5be0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SoftwareConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SoftwareConfiguration.java @@ -18,10 +18,17 @@ @JsonTypeName("SoftwareConfiguration") @JsonSubTypes({ @JsonSubTypes.Type(name = "ServiceInitiated", value = ServiceInitiatedSoftwareConfiguration.class), - @JsonSubTypes.Type(name = "SAPInstallWithoutOSConfig", value = SapInstallWithoutOSConfigSoftwareConfiguration.class) + @JsonSubTypes.Type( + name = "SAPInstallWithoutOSConfig", + value = SapInstallWithoutOSConfigSoftwareConfiguration.class), + @JsonSubTypes.Type(name = "External", value = ExternalInstallationSoftwareConfiguration.class) }) @Immutable public class SoftwareConfiguration { + /** Creates an instance of SoftwareConfiguration class. */ + public SoftwareConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshConfiguration.java index 40de2ea33784a..f8b18d45402d1 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshConfiguration.java @@ -17,6 +17,10 @@ public final class SshConfiguration { @JsonProperty(value = "publicKeys") private List publicKeys; + /** Creates an instance of SshConfiguration class. */ + public SshConfiguration() { + } + /** * Get the publicKeys property: The list of SSH public keys used to authenticate with linux based VMs. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshKeyPair.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshKeyPair.java index 1bc4ac84cb355..47c261261b1ed 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshKeyPair.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshKeyPair.java @@ -26,6 +26,10 @@ public final class SshKeyPair { @JsonProperty(value = "privateKey") private String privateKey; + /** Creates an instance of SshKeyPair class. */ + public SshKeyPair() { + } + /** * Get the publicKey property: SSH public key. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshPublicKey.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshPublicKey.java index b21e9afbe1dab..01c019b8216bb 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshPublicKey.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SshPublicKey.java @@ -13,15 +13,17 @@ @Fluent public final class SshPublicKey { /* - * SSH public key certificate used to authenticate with the VM through ssh. - * The key needs to be at least 2048-bit and in ssh-rsa format.

- * For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux - * VMs in + * SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit + * and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in * Azure](https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ @JsonProperty(value = "keyData") private String keyData; + /** Creates an instance of SshPublicKey class. */ + public SshPublicKey() { + } + /** * Get the keyData property: SSH public key certificate used to authenticate with the VM through ssh. The key needs * to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SslPreference.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SslPreference.java new file mode 100644 index 0000000000000..ad8a94212e2d3 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/SslPreference.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Gets or sets certificate preference if secure communication is enabled. */ +public final class SslPreference extends ExpandableStringEnum { + /** Static value Disabled for SslPreference. */ + public static final SslPreference DISABLED = fromString("Disabled"); + + /** Static value RootCertificate for SslPreference. */ + public static final SslPreference ROOT_CERTIFICATE = fromString("RootCertificate"); + + /** Static value ServerCertificate for SslPreference. */ + public static final SslPreference SERVER_CERTIFICATE = fromString("ServerCertificate"); + + /** + * Creates or finds a SslPreference from its string representation. + * + * @param name a name to look for. + * @return the corresponding SslPreference. + */ + @JsonCreator + public static SslPreference fromString(String name) { + return fromString(name, SslPreference.class); + } + + /** + * Gets known SslPreference values. + * + * @return known SslPreference values. + */ + public static Collection values() { + return values(SslPreference.class); + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StopRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StopRequest.java index c6235ff0185fd..cbb97e1dcc405 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StopRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StopRequest.java @@ -16,6 +16,10 @@ public final class StopRequest { @JsonProperty(value = "hardStop") private Boolean hardStop; + /** Creates an instance of StopRequest class. */ + public StopRequest() { + } + /** * Get the hardStop property: A boolean to specify if the SAP system should be hard-stopped. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StorageConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StorageConfiguration.java new file mode 100644 index 0000000000000..5a18aff2b593a --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StorageConfiguration.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Gets or sets the storage configuration. */ +@Fluent +public final class StorageConfiguration { + /* + * The properties of the transport directory attached to the VIS. The default for transportFileShareConfiguration + * is the createAndMount flow if storage configuration is missing. + */ + @JsonProperty(value = "transportFileShareConfiguration") + private FileShareConfiguration transportFileShareConfiguration; + + /** Creates an instance of StorageConfiguration class. */ + public StorageConfiguration() { + } + + /** + * Get the transportFileShareConfiguration property: The properties of the transport directory attached to the VIS. + * The default for transportFileShareConfiguration is the createAndMount flow if storage configuration is missing. + * + * @return the transportFileShareConfiguration value. + */ + public FileShareConfiguration transportFileShareConfiguration() { + return this.transportFileShareConfiguration; + } + + /** + * Set the transportFileShareConfiguration property: The properties of the transport directory attached to the VIS. + * The default for transportFileShareConfiguration is the createAndMount flow if storage configuration is missing. + * + * @param transportFileShareConfiguration the transportFileShareConfiguration value to set. + * @return the StorageConfiguration object itself. + */ + public StorageConfiguration withTransportFileShareConfiguration( + FileShareConfiguration transportFileShareConfiguration) { + this.transportFileShareConfiguration = transportFileShareConfiguration; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (transportFileShareConfiguration() != null) { + transportFileShareConfiguration().validate(); + } + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StorageInformation.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StorageInformation.java new file mode 100644 index 0000000000000..b3a8c168102b0 --- /dev/null +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/StorageInformation.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.workloads.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Storage details of all the Storage accounts attached to the VM. For e.g. NFS on AFS Shared Storage. */ +@Immutable +public final class StorageInformation { + /* + * The id property. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** Creates an instance of StorageInformation class. */ + public StorageInformation() { + } + + /** + * Get the id property: The id property. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierConfiguration.java index 4bceec4683962..d5dc4874509ec 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierConfiguration.java @@ -45,6 +45,16 @@ public final class ThreeTierConfiguration extends InfrastructureConfiguration { @JsonProperty(value = "highAvailabilityConfig") private HighAvailabilityConfiguration highAvailabilityConfig; + /* + * The storage configuration. + */ + @JsonProperty(value = "storageConfiguration") + private StorageConfiguration storageConfiguration; + + /** Creates an instance of ThreeTierConfiguration class. */ + public ThreeTierConfiguration() { + } + /** * Get the networkConfiguration property: Network configuration common to all servers. * @@ -145,6 +155,26 @@ public ThreeTierConfiguration withHighAvailabilityConfig(HighAvailabilityConfigu return this; } + /** + * Get the storageConfiguration property: The storage configuration. + * + * @return the storageConfiguration value. + */ + public StorageConfiguration storageConfiguration() { + return this.storageConfiguration; + } + + /** + * Set the storageConfiguration property: The storage configuration. + * + * @param storageConfiguration the storageConfiguration value to set. + * @return the ThreeTierConfiguration object itself. + */ + public ThreeTierConfiguration withStorageConfiguration(StorageConfiguration storageConfiguration) { + this.storageConfiguration = storageConfiguration; + return this; + } + /** {@inheritDoc} */ @Override public ThreeTierConfiguration withAppResourceGroup(String appResourceGroup) { @@ -190,6 +220,9 @@ public void validate() { if (highAvailabilityConfig() != null) { highAvailabilityConfig().validate(); } + if (storageConfiguration() != null) { + storageConfiguration().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(ThreeTierConfiguration.class); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierRecommendationResult.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierRecommendationResult.java index 3d9139473fa26..d72b329df605f 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierRecommendationResult.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/ThreeTierRecommendationResult.java @@ -51,6 +51,10 @@ public final class ThreeTierRecommendationResult extends SapSizingRecommendation @JsonProperty(value = "applicationServerInstanceCount") private Long applicationServerInstanceCount; + /** Creates an instance of ThreeTierRecommendationResult class. */ + public ThreeTierRecommendationResult() { + } + /** * Get the dbVmSku property: The database VM SKU. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateMonitorRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateMonitorRequest.java index 0516c77a4c6d0..20cbd92cf4ef8 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateMonitorRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateMonitorRequest.java @@ -25,6 +25,10 @@ public final class UpdateMonitorRequest { @JsonProperty(value = "identity") private UserAssignedServiceIdentity identity; + /** Creates an instance of UpdateMonitorRequest class. */ + public UpdateMonitorRequest() { + } + /** * Get the tags property: Gets or sets the Resource tags. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapApplicationInstanceRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapApplicationInstanceRequest.java index 3708cae3ef859..2078f28cf8798 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapApplicationInstanceRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapApplicationInstanceRequest.java @@ -19,6 +19,10 @@ public final class UpdateSapApplicationInstanceRequest { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of UpdateSapApplicationInstanceRequest class. */ + public UpdateSapApplicationInstanceRequest() { + } + /** * Get the tags property: Gets or sets the Resource tags. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapCentralInstanceRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapCentralInstanceRequest.java index f075844eee0c4..9430f8a2b61a1 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapCentralInstanceRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapCentralInstanceRequest.java @@ -19,6 +19,10 @@ public final class UpdateSapCentralInstanceRequest { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of UpdateSapCentralInstanceRequest class. */ + public UpdateSapCentralInstanceRequest() { + } + /** * Get the tags property: Gets or sets the Resource tags. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapDatabaseInstanceRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapDatabaseInstanceRequest.java index 4a4537a32ee03..833459dea2847 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapDatabaseInstanceRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapDatabaseInstanceRequest.java @@ -19,6 +19,10 @@ public final class UpdateSapDatabaseInstanceRequest { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of UpdateSapDatabaseInstanceRequest class. */ + public UpdateSapDatabaseInstanceRequest() { + } + /** * Get the tags property: Gets or sets the Resource tags. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapVirtualInstanceRequest.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapVirtualInstanceRequest.java index 5dac60464e28f..bb483f8908f15 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapVirtualInstanceRequest.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UpdateSapVirtualInstanceRequest.java @@ -25,6 +25,10 @@ public final class UpdateSapVirtualInstanceRequest { @JsonProperty(value = "identity") private UserAssignedServiceIdentity identity; + /** Creates an instance of UpdateSapVirtualInstanceRequest class. */ + public UpdateSapVirtualInstanceRequest() { + } + /** * Get the tags property: Gets or sets the Resource tags. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedIdentity.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedIdentity.java index 2f8db3c40a673..415212a85ca69 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedIdentity.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedIdentity.java @@ -23,6 +23,10 @@ public class UserAssignedIdentity { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private UUID clientId; + /** Creates an instance of UserAssignedIdentity class. */ + public UserAssignedIdentity() { + } + /** * Get the principalId property: The principal ID of the assigned identity. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedServiceIdentity.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedServiceIdentity.java index 04dc22c5a253e..b1be524dd490c 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedServiceIdentity.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserAssignedServiceIdentity.java @@ -26,6 +26,10 @@ public class UserAssignedServiceIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of UserAssignedServiceIdentity class. */ + public UserAssignedServiceIdentity() { + } + /** * Get the type property: Type of manage identity. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserProfile.java index 5182edb1003fc..a004b29afb475 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/UserProfile.java @@ -23,6 +23,10 @@ public final class UserProfile { @JsonProperty(value = "sshPublicKey", required = true) private String sshPublicKey; + /** Creates an instance of UserProfile class. */ + public UserProfile() { + } + /** * Get the username property: User name. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VirtualMachineConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VirtualMachineConfiguration.java index 53a53100665bf..a5e80833640d0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VirtualMachineConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VirtualMachineConfiguration.java @@ -29,6 +29,10 @@ public final class VirtualMachineConfiguration { @JsonProperty(value = "osProfile", required = true) private OSProfile osProfile; + /** Creates an instance of VirtualMachineConfiguration class. */ + public VirtualMachineConfiguration() { + } + /** * Get the vmSize property: The virtual machine size. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VmssNodesProfile.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VmssNodesProfile.java index af7ef3de302c4..90e331529ba73 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VmssNodesProfile.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/VmssNodesProfile.java @@ -23,6 +23,10 @@ public final class VmssNodesProfile extends NodeProfile { @JsonProperty(value = "autoScaleMaxCount") private Integer autoScaleMaxCount; + /** Creates an instance of VmssNodesProfile class. */ + public VmssNodesProfile() { + } + /** * Get the autoScaleMinCount property: Minimum number of nodes for autoscale. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WindowsConfiguration.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WindowsConfiguration.java index 8a1d046c41b5e..f3b326bb9ec17 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WindowsConfiguration.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WindowsConfiguration.java @@ -13,6 +13,10 @@ @JsonTypeName("Windows") @Immutable public final class WindowsConfiguration extends OSConfiguration { + /** Creates an instance of WindowsConfiguration class. */ + public WindowsConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResource.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResource.java index 0cc54dca865c7..0525dc96f7ace 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResource.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResource.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.workloads.models; +import com.azure.core.management.SystemData; import com.azure.resourcemanager.workloads.fluent.models.WordpressInstanceResourceInner; /** An immutable client-side representation of WordpressInstanceResource. */ @@ -29,6 +30,13 @@ public interface WordpressInstanceResource { */ String type(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the version property: Application version. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResourceList.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResourceList.java index d059f95f5e013..d3ae74d84af57 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResourceList.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstanceResourceList.java @@ -24,6 +24,10 @@ public final class WordpressInstanceResourceList { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of WordpressInstanceResourceList class. */ + public WordpressInstanceResourceList() { + } + /** * Get the value property: List of resources in current page. * diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstances.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstances.java index d2d907f64d732..c09e728bdb463 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstances.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressInstances.java @@ -41,26 +41,26 @@ public interface WordpressInstances { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @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 WordPress instance resource. + * @return the WordPress instance resource along with {@link Response}. */ - WordpressInstanceResource get(String resourceGroupName, String phpWorkloadName); + Response getWithResponse( + String resourceGroupName, String phpWorkloadName, Context context); /** * Gets the WordPress instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @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 WordPress instance resource along with {@link Response}. + * @return the WordPress instance resource. */ - Response getWithResponse( - String resourceGroupName, String phpWorkloadName, Context context); + WordpressInstanceResource get(String resourceGroupName, String phpWorkloadName); /** * Create or updated WordPress instance resource. @@ -99,22 +99,22 @@ WordpressInstanceResource createOrUpdate( * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void deleteByResourceGroup(String resourceGroupName, String phpWorkloadName); + Response deleteByResourceGroupWithResponse(String resourceGroupName, String phpWorkloadName, Context context); /** * Delete WordPress instance resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param phpWorkloadName Php workload name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String phpWorkloadName, Context context); + void deleteByResourceGroup(String resourceGroupName, String phpWorkloadName); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressVersions.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressVersions.java index 661830b4d4f5c..3ffc801c5a390 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressVersions.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WordpressVersions.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for WordpressVersions. */ +/** Application version. */ public final class WordpressVersions extends ExpandableStringEnum { /** Static value 5.4.3 for WordpressVersions. */ public static final WordpressVersions FIVE_FOUR_THREE = fromString("5.4.3"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadKind.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadKind.java index 0107df87f7e5f..50df078efd6ed 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadKind.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadKind.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for WorkloadKind. */ +/** Indicates which kind of php workload this resource represent e.g WordPress. */ public final class WorkloadKind extends ExpandableStringEnum { /** Static value WordPress for WorkloadKind. */ public static final WorkloadKind WORD_PRESS = fromString("WordPress"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadMonitorProvisioningState.java b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadMonitorProvisioningState.java index 8399e22227899..b52c8a6ef0d98 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadMonitorProvisioningState.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/main/java/com/azure/resourcemanager/workloads/models/WorkloadMonitorProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for WorkloadMonitorProvisioningState. */ +/** State of provisioning of the SAP monitor. */ public final class WorkloadMonitorProvisioningState extends ExpandableStringEnum { /** Static value Accepted for WorkloadMonitorProvisioningState. */ public static final WorkloadMonitorProvisioningState ACCEPTED = fromString("Accepted"); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/PhpWorkloadsCreateOrUpdateSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/PhpWorkloadsCreateOrUpdateSamples.java index b4372c7b57414..eee7065afb3b6 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/PhpWorkloadsCreateOrUpdateSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/PhpWorkloadsCreateOrUpdateSamples.java @@ -62,7 +62,7 @@ public static void workloads(com.azure.resourcemanager.workloads.WorkloadsManage .withSku(new Sku().withName("Large")) .withAppLocation("eastus") .withManagedResourceGroupConfiguration(new ManagedRGConfiguration().withName("php-mrg-wp39")) - .withAdminUserProfile(new UserProfile().withUsername("wpadmin").withSshPublicKey("===SSH=PUBLIC=KEY===")) + .withAdminUserProfile(new UserProfile().withUsername("wpadmin").withSshPublicKey("fakeTokenPlaceholder")) .withWebNodesProfile( new VmssNodesProfile() .withName("web-server") diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/ProviderInstancesCreateSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/ProviderInstancesCreateSamples.java index a9a45151a00d7..3fefc6e0bb436 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/ProviderInstancesCreateSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/ProviderInstancesCreateSamples.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.workloads.models.PrometheusHaClusterProviderInstanceProperties; import com.azure.resourcemanager.workloads.models.PrometheusOSProviderInstanceProperties; import com.azure.resourcemanager.workloads.models.SapNetWeaverProviderInstanceProperties; +import com.azure.resourcemanager.workloads.models.SslPreference; import java.util.Arrays; /** Samples for ProviderInstances Create. */ @@ -32,9 +33,38 @@ public static void createAMsSqlServerProvider(com.azure.resourcemanager.workload .withHostname("hostname") .withDbPort("5912") .withDbUsername("user") - .withDbPassword("****") - .withDbPasswordUri("") - .withSapSid("sid")) + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("sid") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/Db2ProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a Db2 provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createADb2ProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new DB2ProviderInstanceProperties() + .withHostname("hostname") + .withDbName("dbName") + .withDbPort("dbPort") + .withDbUsername("username") + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("SID") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -58,10 +88,66 @@ public static void createASAPMonitorHanaProvider(com.azure.resourcemanager.workl .withSqlPort("0000") .withInstanceNumber("00") .withDbUsername("user") - .withDbPassword("****") - .withDbPasswordUri("") - .withDbSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename") - .withSslHostnameInCertificate("xyz.domain.com")) + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename") + .withSslHostnameInCertificate("xyz.domain.com") + .withSslPreference(SslPreference.SERVER_CERTIFICATE)) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/NetWeaverProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a SAP monitor NetWeaver provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createASAPMonitorNetWeaverProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new SapNetWeaverProviderInstanceProperties() + .withSapSid("SID") + .withSapHostname("name") + .withSapInstanceNr("00") + .withSapHostFileEntries(Arrays.asList("127.0.0.1 name fqdn")) + .withSapUsername("username") + .withSapPassword("fakeTokenPlaceholder") + .withSapPasswordUri("fakeTokenPlaceholder") + .withSapClientId("111") + .withSapPortNumber("1234") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/MsSqlServerProviderInstance_Create_Root_Certificate.json + */ + /** + * Sample code: Create a MsSqlServer provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createAMsSqlServerProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new MsSqlServerProviderInstanceProperties() + .withHostname("hostname") + .withDbPort("5912") + .withDbUsername("user") + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("sid") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -84,7 +170,33 @@ public static void createAPrometheusHaClusterProvider( .withPrometheusUrl("http://192.168.0.0:9090/metrics") .withHostname("hostname") .withSid("sid") - .withClusterName("clusterName")) + .withClusterName("clusterName") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a PrometheusHaCluster provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createAPrometheusHaClusterProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new PrometheusHaClusterProviderInstanceProperties() + .withPrometheusUrl("http://192.168.0.0:9090/metrics") + .withHostname("hostname") + .withSid("sid") + .withClusterName("clusterName") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -107,9 +219,32 @@ public static void createADb2Provider(com.azure.resourcemanager.workloads.Worklo .withDbName("dbName") .withDbPort("dbPort") .withDbUsername("username") - .withDbPassword("password") - .withDbPasswordUri("") - .withSapSid("SID")) + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSapSid("SID") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/PrometheusOSProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a OS provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createAOSProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new PrometheusOSProviderInstanceProperties() + .withPrometheusUrl("http://192.168.0.0:9090/metrics") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } @@ -127,7 +262,10 @@ public static void createAOSProvider(com.azure.resourcemanager.workloads.Workloa .define("myProviderInstance") .withExistingMonitor("myResourceGroup", "mySapMonitor") .withProviderSettings( - new PrometheusOSProviderInstanceProperties().withPrometheusUrl("http://192.168.0.0:9090/metrics")) + new PrometheusOSProviderInstanceProperties() + .withPrometheusUrl("http://192.168.0.0:9090/metrics") + .withSslPreference(SslPreference.SERVER_CERTIFICATE) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) .create(); } @@ -152,11 +290,40 @@ public static void createASAPMonitorNetWeaverProvider( .withSapInstanceNr("00") .withSapHostFileEntries(Arrays.asList("127.0.0.1 name fqdn")) .withSapUsername("username") - .withSapPassword("****") - .withSapPasswordUri("") + .withSapPassword("fakeTokenPlaceholder") + .withSapPasswordUri("fakeTokenPlaceholder") .withSapClientId("111") .withSapPortNumber("1234") - .withSapSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename")) + .withSslCertificateUri("https://storageaccount.blob.core.windows.net/containername/filename") + .withSslPreference(SslPreference.SERVER_CERTIFICATE)) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/ProviderInstances_Create_Root_Certificate.json + */ + /** + * Sample code: Create a SAP monitor Hana provider with Root Certificate. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createASAPMonitorHanaProviderWithRootCertificate( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .providerInstances() + .define("myProviderInstance") + .withExistingMonitor("myResourceGroup", "mySapMonitor") + .withProviderSettings( + new HanaDbProviderInstanceProperties() + .withHostname("name") + .withDbName("db") + .withSqlPort("0000") + .withInstanceNumber("00") + .withDbUsername("user") + .withDbPassword("fakeTokenPlaceholder") + .withDbPasswordUri("fakeTokenPlaceholder") + .withSslHostnameInCertificate("xyz.domain.com") + .withSslPreference(SslPreference.ROOT_CERTIFICATE)) .create(); } } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapApplicationServerInstancesCreateSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapApplicationServerInstancesCreateSamples.java index b4cddf09f19e1..f63765d3f66c0 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapApplicationServerInstancesCreateSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapApplicationServerInstancesCreateSamples.java @@ -28,6 +28,25 @@ public static void sAPApplicationServerInstancesCreate( .create(); } + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create SAP Application Server Instances for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createSAPApplicationServerInstancesForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapApplicationServerInstances() + .define("app01") + .withRegion("westcentralus") + .withExistingSapVirtualInstance("test-rg", "X00") + .withTags(mapOf()) + .create(); + } + @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapCentralInstancesCreateSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapCentralInstancesCreateSamples.java index 18833f802ef40..6b0ecff4e4a5e 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapCentralInstancesCreateSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapCentralInstancesCreateSamples.java @@ -9,6 +9,25 @@ /** Samples for SapCentralInstances Create. */ public final class SapCentralInstancesCreateSamples { + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create SAP Central Instances for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createSAPCentralInstancesForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapCentralInstances() + .define("centralServer") + .withRegion("westcentralus") + .withExistingSapVirtualInstance("test-rg", "X00") + .withTags(mapOf()) + .create(); + } + /* * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create.json */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapDatabaseInstancesCreateSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapDatabaseInstancesCreateSamples.java index dda92fd0e2567..865f97dfa62b9 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapDatabaseInstancesCreateSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapDatabaseInstancesCreateSamples.java @@ -9,6 +9,25 @@ /** Samples for SapDatabaseInstances Create. */ public final class SapDatabaseInstancesCreateSamples { + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create SAP Database Instances for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createSAPDatabaseInstancesForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapDatabaseInstances() + .define("databaseServer") + .withRegion("westcentralus") + .withExistingSapVirtualInstance("test-rg", "X00") + .withTags(mapOf()) + .create(); + } + /* * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create.json */ diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapVirtualInstancesCreateSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapVirtualInstancesCreateSamples.java index 27b204fb35906..a0ea97dfa546d 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapVirtualInstancesCreateSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/SapVirtualInstancesCreateSamples.java @@ -6,24 +6,34 @@ import com.azure.resourcemanager.workloads.models.ApplicationServerConfiguration; import com.azure.resourcemanager.workloads.models.CentralServerConfiguration; +import com.azure.resourcemanager.workloads.models.CreateAndMountFileShareConfiguration; import com.azure.resourcemanager.workloads.models.DatabaseConfiguration; -import com.azure.resourcemanager.workloads.models.DeployerVmPackages; import com.azure.resourcemanager.workloads.models.DeploymentConfiguration; import com.azure.resourcemanager.workloads.models.DeploymentWithOSConfiguration; +import com.azure.resourcemanager.workloads.models.DiscoveryConfiguration; +import com.azure.resourcemanager.workloads.models.DiskConfiguration; +import com.azure.resourcemanager.workloads.models.DiskSku; +import com.azure.resourcemanager.workloads.models.DiskSkuName; +import com.azure.resourcemanager.workloads.models.DiskVolumeConfiguration; +import com.azure.resourcemanager.workloads.models.ExternalInstallationSoftwareConfiguration; import com.azure.resourcemanager.workloads.models.HighAvailabilityConfiguration; import com.azure.resourcemanager.workloads.models.ImageReference; import com.azure.resourcemanager.workloads.models.LinuxConfiguration; +import com.azure.resourcemanager.workloads.models.MountFileShareConfiguration; import com.azure.resourcemanager.workloads.models.NetworkConfiguration; import com.azure.resourcemanager.workloads.models.OSProfile; import com.azure.resourcemanager.workloads.models.OsSapConfiguration; import com.azure.resourcemanager.workloads.models.SapDatabaseType; import com.azure.resourcemanager.workloads.models.SapEnvironmentType; import com.azure.resourcemanager.workloads.models.SapHighAvailabilityType; +import com.azure.resourcemanager.workloads.models.SapInstallWithoutOSConfigSoftwareConfiguration; import com.azure.resourcemanager.workloads.models.SapProductType; import com.azure.resourcemanager.workloads.models.SingleServerConfiguration; +import com.azure.resourcemanager.workloads.models.SkipFileShareConfiguration; import com.azure.resourcemanager.workloads.models.SshConfiguration; import com.azure.resourcemanager.workloads.models.SshKeyPair; import com.azure.resourcemanager.workloads.models.SshPublicKey; +import com.azure.resourcemanager.workloads.models.StorageConfiguration; import com.azure.resourcemanager.workloads.models.ThreeTierConfiguration; import com.azure.resourcemanager.workloads.models.VirtualMachineConfiguration; import java.util.Arrays; @@ -33,14 +43,14 @@ /** Samples for SapVirtualInstances Create. */ public final class SapVirtualInstancesCreateSamples { /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvSet.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_MountTransport.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_HA_AvSet. + * Sample code: Create Infrastructure with an existing SAP Transport Directory Fileshare. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigHAAvSet( + public static void createInfrastructureWithAnExistingSAPTransportDirectoryFileshare( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -58,7 +68,7 @@ public static void sAPVirtualInstancesCreateWithOSConfigHAAvSet( .withCentralServer( new CentralServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_E16ds_v4") @@ -76,13 +86,13 @@ public static void sAPVirtualInstancesCreateWithOSConfigHAAvSet( .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_E32ds_v4") @@ -100,14 +110,14 @@ public static void sAPVirtualInstancesCreateWithOSConfigHAAvSet( .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() .withDatabaseType(SapDatabaseType.HANA) .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_M32ts") @@ -125,39 +135,36 @@ public static void sAPVirtualInstancesCreateWithOSConfigHAAvSet( .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) - .withHighAvailabilityConfig( - new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withStorageConfiguration( + new StorageConfiguration() + .withTransportFileShareConfiguration( + new MountFileShareConfiguration() + .withId( + "/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/storageaccountname/fileServices/default/shares/transfileshare") + .withPrivateEndpointId( + "/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Network/privateEndpoints/endpoint")))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvZone.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Install_Distributed.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_HA_AvZone. + * Sample code: Install SAP Software on Distributed System. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigHAAvZone( + public static void installSAPSoftwareOnDistributedSystem( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") - .withRegion("westcentralus") + .withRegion("eastus2") .withExistingResourceGroup("test-rg") .withEnvironment(SapEnvironmentType.PROD) .withSapProduct(SapProductType.S4HANA) @@ -166,105 +173,101 @@ public static void sAPVirtualInstancesCreateWithOSConfigHAAvZone( .withAppLocation("eastus") .withInfrastructureConfiguration( new ThreeTierConfiguration() - .withAppResourceGroup("X00-RG") + .withAppResourceGroup("{{resourcegrp}}") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) .withCentralServer( new CentralServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() - .withVmSize("Standard_E16ds_v4") + .withVmSize("Standard_E4ds_v4") .withImageReference( new ImageReference() .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) + .withOffer("RHEL-SAP-HA") + .withSku("8.2") + .withVersion("8.2.2021091201")) .withOsProfile( new OSProfile() - .withAdminUsername("{your-username}") + .withAdminUsername("azureuser") .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() - .withVmSize("Standard_E32ds_v4") + .withVmSize("Standard_E4ds_v4") .withImageReference( new ImageReference() .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) + .withOffer("RHEL-SAP-HA") + .withSku("8.2") + .withVersion("8.2.2021091201")) .withOsProfile( new OSProfile() - .withAdminUsername("{your-username}") + .withAdminUsername("azureuser") .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(6L)) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) .withDatabaseServer( new DatabaseConfiguration() - .withDatabaseType(SapDatabaseType.HANA) .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") .withVirtualMachineConfiguration( new VirtualMachineConfiguration() .withVmSize("Standard_M32ts") .withImageReference( new ImageReference() .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) + .withOffer("RHEL-SAP-HA") + .withSku("8.2") + .withVersion("8.2.2021091201")) .withOsProfile( new OSProfile() - .withAdminUsername("{your-username}") + .withAdminUsername("azureuser") .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(2L)) - .withHighAvailabilityConfig( - new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) - .withTags(mapOf()) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L))) + .withSoftwareConfiguration( + new SapInstallWithoutOSConfigSoftwareConfiguration() + .withBomUrl( + "https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml") + .withSapBitsStorageAccountId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withSoftwareVersion("SAP S/4HANA 1909 SPS 03")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("sap.bpaas.com"))) + .withTags(mapOf("created by", "azureuser")) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvZone.json */ /** - * Sample code: SAPVirtualInstances_Create_Distributed. + * Sample code: Create Infrastructure only for HA System with Availability Zone. * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateDistributed( + public static void createInfrastructureOnlyForHASystemWithAvailabilityZone( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -305,8 +308,8 @@ public static void sAPVirtualInstancesCreateDistributed( .asList( new SshPublicKey() .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(1L)) + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( @@ -333,7 +336,7 @@ public static void sAPVirtualInstancesCreateDistributed( .asList( new SshPublicKey() .withKeyData( - "ssh-rsa public key"))))))) + "fakeTokenPlaceholder"))))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() @@ -362,21 +365,25 @@ public static void sAPVirtualInstancesCreateDistributed( .asList( new SshPublicKey() .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(1L)))) + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE)))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvZone.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvSet.json */ /** - * Sample code: SAPVirtualInstances_Create_HA_AvZone. + * Sample code: Create Infrastructure with OS configuration for HA System with Availability Set (Recommended). * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateHAAvZone(com.azure.resourcemanager.workloads.WorkloadsManager manager) { + public static void createInfrastructureWithOSConfigurationForHASystemWithAvailabilitySetRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") @@ -385,7 +392,7 @@ public static void sAPVirtualInstancesCreateHAAvZone(com.azure.resourcemanager.w .withEnvironment(SapEnvironmentType.PROD) .withSapProduct(SapProductType.S4HANA) .withConfiguration( - new DeploymentConfiguration() + new DeploymentWithOSConfiguration() .withAppLocation("eastus") .withInfrastructureConfiguration( new ThreeTierConfiguration() @@ -409,14 +416,10 @@ public static void sAPVirtualInstancesCreateHAAvZone(com.azure.resourcemanager.w .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(2L)) .withApplicationServer( new ApplicationServerConfiguration() @@ -437,14 +440,10 @@ public static void sAPVirtualInstancesCreateHAAvZone(com.azure.resourcemanager.w .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() @@ -466,141 +465,29 @@ public static void sAPVirtualInstancesCreateHAAvZone(com.azure.resourcemanager.w .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(2L)) .withHighAvailabilityConfig( new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE)))) - .withTags(mapOf()) - .create(); - } - - /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_SingleServer.json - */ - /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_SingleServer. - * - * @param manager Entry point to WorkloadsManager. - */ - public static void sAPVirtualInstancesCreateWithOSConfigSingleServer( - com.azure.resourcemanager.workloads.WorkloadsManager manager) { - manager - .sapVirtualInstances() - .define("X00") - .withRegion("westcentralus") - .withExistingResourceGroup("test-rg") - .withEnvironment(SapEnvironmentType.NON_PROD) - .withSapProduct(SapProductType.S4HANA) - .withConfiguration( - new DeploymentWithOSConfiguration() - .withAppLocation("eastus") - .withInfrastructureConfiguration( - new SingleServerConfiguration() - .withAppResourceGroup("X00-RG") - .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) - .withDatabaseType(SapDatabaseType.HANA) - .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") - .withVirtualMachineConfiguration( - new VirtualMachineConfiguration() - .withVmSize("Standard_E32ds_v4") - .withImageReference( - new ImageReference() - .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) - .withOsProfile( - new OSProfile() - .withAdminUsername("{your-username}") - .withOsConfiguration( - new LinuxConfiguration() - .withDisablePasswordAuthentication(true) - .withSshKeyPair( - new SshKeyPair().withPublicKey("abc").withPrivateKey("xyz")))))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_SingleServer.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_Distributed.json */ /** - * Sample code: SAPVirtualInstances_Create_SingleServer. + * Sample code: Create Infrastructure with OS configuration for Distributed System (Recommended). * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateSingleServer( + public static void createInfrastructureWithOSConfigurationForDistributedSystemRecommended( com.azure.resourcemanager.workloads.WorkloadsManager manager) { - manager - .sapVirtualInstances() - .define("X00") - .withRegion("westcentralus") - .withExistingResourceGroup("test-rg") - .withEnvironment(SapEnvironmentType.NON_PROD) - .withSapProduct(SapProductType.S4HANA) - .withConfiguration( - new DeploymentConfiguration() - .withAppLocation("eastus") - .withInfrastructureConfiguration( - new SingleServerConfiguration() - .withAppResourceGroup("X00-RG") - .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) - .withDatabaseType(SapDatabaseType.HANA) - .withSubnetId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") - .withVirtualMachineConfiguration( - new VirtualMachineConfiguration() - .withVmSize("Standard_E32ds_v4") - .withImageReference( - new ImageReference() - .withPublisher("RedHat") - .withOffer("RHEL-SAP") - .withSku("7.4") - .withVersion("7.4.2019062505")) - .withOsProfile( - new OSProfile() - .withAdminUsername("{your-username}") - .withOsConfiguration( - new LinuxConfiguration() - .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData("ssh-rsa public key"))))))))) - .withTags(mapOf()) - .create(); - } - - /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvSet.json - */ - /** - * Sample code: SAPVirtualInstances_Create_HA_AvSet. - * - * @param manager Entry point to WorkloadsManager. - */ - public static void sAPVirtualInstancesCreateHAAvSet(com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() .define("X00") @@ -609,7 +496,7 @@ public static void sAPVirtualInstancesCreateHAAvSet(com.azure.resourcemanager.wo .withEnvironment(SapEnvironmentType.PROD) .withSapProduct(SapProductType.S4HANA) .withConfiguration( - new DeploymentConfiguration() + new DeploymentWithOSConfiguration() .withAppLocation("eastus") .withInfrastructureConfiguration( new ThreeTierConfiguration() @@ -633,15 +520,11 @@ public static void sAPVirtualInstancesCreateHAAvSet(com.azure.resourcemanager.wo .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(2L)) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) .withApplicationServer( new ApplicationServerConfiguration() .withSubnetId( @@ -661,15 +544,11 @@ public static void sAPVirtualInstancesCreateHAAvSet(com.azure.resourcemanager.wo .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(5L)) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() .withDatabaseType(SapDatabaseType.HANA) @@ -690,31 +569,25 @@ public static void sAPVirtualInstancesCreateHAAvSet(com.azure.resourcemanager.wo .withOsConfiguration( new LinuxConfiguration() .withDisablePasswordAuthentication(true) - .withSsh( - new SshConfiguration() - .withPublicKeys( - Arrays - .asList( - new SshPublicKey() - .withKeyData( - "ssh-rsa public key"))))))) - .withInstanceCount(2L)) - .withHighAvailabilityConfig( - new HighAvailabilityConfiguration() - .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET)))) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } /* - * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_Distributed.json + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_Distributed.json */ /** - * Sample code: SAPVirtualInstances_Create_WithOSConfig_Distributed. + * Sample code: Create Infrastructure with Disk and OS configuration for Distributed System (Recommended). * * @param manager Entry point to WorkloadsManager. */ - public static void sAPVirtualInstancesCreateWithOSConfigDistributed( + public static void createInfrastructureWithDiskAndOSConfigurationForDistributedSystemRecommended( com.azure.resourcemanager.workloads.WorkloadsManager manager) { manager .sapVirtualInstances() @@ -750,8 +623,8 @@ public static void sAPVirtualInstancesCreateWithOSConfigDistributed( .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(1L)) .withApplicationServer( new ApplicationServerConfiguration() @@ -774,8 +647,8 @@ public static void sAPVirtualInstancesCreateWithOSConfigDistributed( .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) .withInstanceCount(6L)) .withDatabaseServer( new DatabaseConfiguration() @@ -799,18 +672,1510 @@ public static void sAPVirtualInstancesCreateWithOSConfigDistributed( .withDisablePasswordAuthentication(true) .withSshKeyPair( new SshKeyPair() - .withPublicKey("abc") - .withPrivateKey("xyz"))))) - .withInstanceCount(1L))) - .withOsSapConfiguration( - new OsSapConfiguration() - .withDeployerVmPackages( - new DeployerVmPackages() - .withUrl( - "https://ybteststorageaccount.blob.core.windows.net/sapbits/deployervmpackages/DeployerVMPackages.zip") - .withStorageAccountId( - "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/yb-SapInstall/providers/Microsoft.Storage/storageAccounts/ybteststorageaccount")) - .withSapFqdn("xyz.test.com"))) + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L) + .withDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS))))))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_Distributed.json + */ + /** + * Sample code: Detect SAP Software Installation on a Distributed System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnADistributedSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("eastus2") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("{{resourcegrp}}") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E4ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureuser") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E4ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureuser") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureuser") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("sap.bpaas.com"))) + .withTags(mapOf("created by", "azureuser")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_SkipTransport.json + */ + /** + * Sample code: Create Infrastructure without SAP Transport Directory Fileshare. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithoutSAPTransportDirectoryFileshare( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withStorageConfiguration( + new StorageConfiguration() + .withTransportFileShareConfiguration(new SkipFileShareConfiguration()))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_SingleServer.json + */ + /** + * Sample code: Detect SAP Software Installation on a Single Server System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnASingleServerSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("X00-RG") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder")))))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_HA_AvSet.json + */ + /** + * Sample code: Detect SAP Software Installation on an HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnAnHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Install_SingleServer.json + */ + /** + * Sample code: Install SAP Software on Single Server System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void installSAPSoftwareOnSingleServerSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("eastus2") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("test-rg") + .withSubnetId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/testsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("SUSE") + .withOffer("SLES-SAP") + .withSku("12-sp4-gen2") + .withVersion("2022.02.01")) + .withOsProfile( + new OSProfile() + .withAdminUsername("azureappadmin") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder")))))) + .withSoftwareConfiguration( + new SapInstallWithoutOSConfigSoftwareConfiguration() + .withBomUrl( + "https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml") + .withSapBitsStorageAccountId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withSoftwareVersion("SAP S/4HANA 1909 SPS 03")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("sap.bpaas.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_HA_AvSet.json + */ + /** + * Sample code: Create Infrastructure with Disk and OS configuration for HA System with Availability Set + * (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilitySetRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L) + .withDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)))))) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.json + */ + /** + * Sample code: Create Infrastructure only for Distributed System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureOnlyForDistributedSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(1L)))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvSet.json + */ + /** + * Sample code: Create Infrastructure only for HA System with Availability Set. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureOnlyForHASystemWithAvailabilitySet( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(5L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData( + "fakeTokenPlaceholder"))))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET)))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_HA_AvZone.json + */ + /** + * Sample code: Detect SAP Software Installation on an HA System with Availability Zone. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void detectSAPSoftwareInstallationOnAnHASystemWithAvailabilityZone( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP-HA") + .withSku("84sapha-gen2") + .withVersion("8.4.2021091202")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) + .withSoftwareConfiguration( + new ExternalInstallationSoftwareConfiguration() + .withCentralServerVmId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_SingleServer.json + */ + /** + * Sample code: Create Infrastructure only for Single Server System. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureOnlyForSingleServerSystem( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("X00-RG") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSsh( + new SshConfiguration() + .withPublicKeys( + Arrays + .asList( + new SshPublicKey() + .withKeyData("fakeTokenPlaceholder"))))))))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_SingleServer.json + */ + /** + * Sample code: Create Infrastructure with OS configuration for Single Server System (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithOSConfigurationForSingleServerSystemRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("X00-RG") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder")))))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_HA_AvZone.json + */ + /** + * Sample code: Create Infrastructure with Disk and OS configuration for HA System with Availability Zone + * (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilityZoneRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L) + .withDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)))))) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_CreateTransport.json + */ + /** + * Sample code: Create Infrastructure with a new SAP Transport Directory Fileshare. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithANewSAPTransportDirectoryFileshare( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(1L)) + .withStorageConfiguration( + new StorageConfiguration() + .withTransportFileShareConfiguration( + new CreateAndMountFileShareConfiguration() + .withResourceGroup("rgName") + .withStorageAccountName("storageName")))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Discover.json + */ + /** + * Sample code: Register existing SAP system as Virtual Instance for SAP solutions. + * + * @param manager Entry point to WorkloadsManager. + */ + public static void registerExistingSAPSystemAsVirtualInstanceForSAPSolutions( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("northeurope") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DiscoveryConfiguration() + .withCentralServerVmId( + "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0")) + .withTags(mapOf("createdby", "abc@microsoft.com", "test", "abc")) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvZone.json + */ + /** + * Sample code: Create Infrastructure with OS configuration for HA System with Availability Zone (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithOSConfigurationForHASystemWithAvailabilityZoneRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new ThreeTierConfiguration() + .withAppResourceGroup("X00-RG") + .withCentralServer( + new CentralServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E16ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withApplicationServer( + new ApplicationServerConfiguration() + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(6L)) + .withDatabaseServer( + new DatabaseConfiguration() + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_M32ts") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withInstanceCount(2L)) + .withHighAvailabilityConfig( + new HighAvailabilityConfiguration() + .withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) + .withTags(mapOf()) + .create(); + } + + /* + * x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_SingleServer.json + */ + /** + * Sample code: Create Infrastructure with Disk and OS configurations for Single Server System (Recommended). + * + * @param manager Entry point to WorkloadsManager. + */ + public static void createInfrastructureWithDiskAndOSConfigurationsForSingleServerSystemRecommended( + com.azure.resourcemanager.workloads.WorkloadsManager manager) { + manager + .sapVirtualInstances() + .define("X00") + .withRegion("westcentralus") + .withExistingResourceGroup("test-rg") + .withEnvironment(SapEnvironmentType.NON_PROD) + .withSapProduct(SapProductType.S4HANA) + .withConfiguration( + new DeploymentWithOSConfiguration() + .withAppLocation("eastus") + .withInfrastructureConfiguration( + new SingleServerConfiguration() + .withAppResourceGroup("X00-RG") + .withNetworkConfiguration(new NetworkConfiguration().withIsSecondaryIpEnabled(true)) + .withDatabaseType(SapDatabaseType.HANA) + .withSubnetId( + "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet") + .withVirtualMachineConfiguration( + new VirtualMachineConfiguration() + .withVmSize("Standard_E32ds_v4") + .withImageReference( + new ImageReference() + .withPublisher("RedHat") + .withOffer("RHEL-SAP") + .withSku("7.4") + .withVersion("7.4.2019062505")) + .withOsProfile( + new OSProfile() + .withAdminUsername("{your-username}") + .withOsConfiguration( + new LinuxConfiguration() + .withDisablePasswordAuthentication(true) + .withSshKeyPair( + new SshKeyPair() + .withPublicKey("fakeTokenPlaceholder") + .withPrivateKey("fakeTokenPlaceholder"))))) + .withDbDiskConfiguration( + new DiskConfiguration() + .withDiskVolumeConfigurations( + mapOf( + "backup", + new DiskVolumeConfiguration() + .withCount(2L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "hana/data", + new DiskVolumeConfiguration() + .withCount(4L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/log", + new DiskVolumeConfiguration() + .withCount(3L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)), + "hana/shared", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(256L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "os", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(64L) + .withSku(new DiskSku().withName(DiskSkuName.STANDARD_SSD_LRS)), + "usr/sap", + new DiskVolumeConfiguration() + .withCount(1L) + .withSizeGB(128L) + .withSku(new DiskSku().withName(DiskSkuName.PREMIUM_LRS)))))) + .withOsSapConfiguration(new OsSapConfiguration().withSapFqdn("xyz.test.com"))) .withTags(mapOf()) .create(); } diff --git a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/WordpressInstancesDeleteSamples.java b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/WordpressInstancesDeleteSamples.java index 919b8391f2bda..379ba839f4d79 100644 --- a/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/WordpressInstancesDeleteSamples.java +++ b/sdk/workloads/azure-resourcemanager-workloads/src/samples/java/com/azure/resourcemanager/workloads/generated/WordpressInstancesDeleteSamples.java @@ -17,6 +17,6 @@ public final class WordpressInstancesDeleteSamples { * @param manager Entry point to WorkloadsManager. */ public static void workloads(com.azure.resourcemanager.workloads.WorkloadsManager manager) { - manager.wordpressInstances().deleteWithResponse("test-rg", "wp39", Context.NONE); + manager.wordpressInstances().deleteByResourceGroupWithResponse("test-rg", "wp39", Context.NONE); } }