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
+ *