diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 506d0f66af47..d73b7d15f863 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -505,7 +505,7 @@ com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-fluxconf
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-extensions;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-extensiontypes;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-cloudhealth;1.0.0-beta.1;1.0.0-beta.2
-com.azure.resourcemanager:azure-resourcemanager-resources-deploymentstacks;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-resources-deploymentstacks;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-privatelinkscopes;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-resources-bicep;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-playwright;1.0.0;1.1.0-beta.1
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/CHANGELOG.md b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/CHANGELOG.md
index 05dea1e149b7..6209fba72368 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/CHANGELOG.md
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/CHANGELOG.md
@@ -1,14 +1,218 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0 (2026-01-28)
-### Features Added
+- Azure Resource Manager Deployment Stacks client library for Java. This package contains Microsoft Azure SDK for Deployment Stacks Management SDK. The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource Manager. Package api-version 2025-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.UnmanageActionResourceGroupMode` was removed
+
+#### `models.UnmanageActionManagementGroupMode` was removed
+
+#### `models.AzureResourceBase` was removed
+
+#### `models.DeploymentStackListResult` was removed
+
+#### `models.UnmanageActionResourceMode` was removed
+
+#### `models.DeploymentStackProperties` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentStacks` was modified
+
+* `deleteAtSubscription(java.lang.String,models.UnmanageActionResourceMode,models.UnmanageActionResourceGroupMode,models.UnmanageActionManagementGroupMode,java.lang.Boolean,com.azure.core.util.Context)` was removed
+* `deleteByIdWithResponse(java.lang.String,models.UnmanageActionResourceMode,models.UnmanageActionResourceGroupMode,models.UnmanageActionManagementGroupMode,java.lang.Boolean,com.azure.core.util.Context)` was removed
+* `delete(java.lang.String,java.lang.String,models.UnmanageActionResourceMode,models.UnmanageActionResourceGroupMode,models.UnmanageActionManagementGroupMode,java.lang.Boolean,com.azure.core.util.Context)` was removed
+* `deleteAtManagementGroup(java.lang.String,java.lang.String,models.UnmanageActionResourceMode,models.UnmanageActionResourceGroupMode,models.UnmanageActionManagementGroupMode,java.lang.Boolean,com.azure.core.util.Context)` was removed
+
+#### `models.ActionOnUnmanage` was modified
+
+* `validate()` was removed
+
+#### `models.DenySettings` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceReferenceExtended` was modified
+
+* `ResourceReferenceExtended()` was changed to private access
+* `validate()` was removed
+* `withError(com.azure.core.management.exception.ManagementError)` was removed
+
+#### `models.DeploymentStacksTemplateLink` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentStackValidateProperties` was modified
+
+* `DeploymentStackValidateProperties()` was changed to private access
+* `withCorrelationId(java.lang.String)` was removed
+* `validate()` was removed
+* `withTemplateLink(models.DeploymentStacksTemplateLink)` was removed
+* `withValidatedResources(java.util.List)` was removed
+* `withParameters(java.util.Map)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withActionOnUnmanage(models.ActionOnUnmanage)` was removed
+* `withDeploymentScope(java.lang.String)` was removed
+* `withDenySettings(models.DenySettings)` was removed
+
+#### `models.DeploymentParameter` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentStacksDebugSetting` was modified
+
+* `validate()` was removed
+
+#### `models.KeyVaultParameterReference` was modified
+
+* `validate()` was removed
+
+#### `models.ManagedResourceReference` was modified
+
+* `ManagedResourceReference()` was changed to private access
+* `withDenyStatus(models.DenyStatusMode)` was removed
+* `validate()` was removed
+* `withStatus(models.ResourceStatusMode)` was removed
+
+#### `models.ResourceReference` was modified
+
+* `validate()` was removed
+
+#### `models.KeyVaultReference` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentStacksParametersLink` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.DeploymentExternalInputDefinition` was added
+
+* `models.DeploymentStacksWhatIfResultsAtSubscriptions` was added
+
+* `models.DeploymentStacksDiagnosticLevel` was added
+
+* `models.DeploymentStacksChangeBase` was added
+
+* `models.DeploymentStacksChangeDeltaDenySettings` was added
+
+* `models.DeploymentStacksWhatIfResourceChange` was added
+
+* `models.DeploymentStacksWhatIfResult$DefinitionStages` was added
+
+* `models.DeploymentStacksWhatIfResultsAtResourceGroups` was added
+
+* `models.DeploymentStacksWhatIfResult` was added
+
+* `models.DeploymentStacksManagementStatus` was added
+
+* `models.DeploymentExternalInput` was added
+
+* `models.DeploymentStacksWhatIfResultProperties` was added
+
+* `models.DeploymentExtensionConfigItem` was added
+
+* `models.ErrorAdditionalInfo` was added
+
+* `models.DeploymentStacksWhatIfResult$UpdateStages` was added
+
+* `models.DeploymentStacksWhatIfResult$Update` was added
+
+* `models.DeploymentStacksChangeBaseDenyStatusMode` was added
+
+* `models.DeploymentStacksDiagnostic` was added
+
+* `models.DeploymentStacksChangeBaseDeploymentStacksManagementStatus` was added
+
+* `models.DeploymentStacksResourcesWithoutDeleteSupportEnum` was added
+
+* `models.ValidationLevel` was added
+
+* `models.DeploymentStacksChangeDeltaRecord` was added
+
+* `models.DeploymentStacksWhatIfPropertyChange` was added
+
+* `models.DeploymentStacksWhatIfPropertyChangeType` was added
+
+* `models.DeploymentStacksWhatIfResultsAtManagementGroups` was added
+
+* `models.DeploymentStacksWhatIfChangeCertainty` was added
+
+* `models.DeploymentStacksWhatIfResult$Definition` was added
+
+* `models.DeploymentExtensionConfig` was added
+
+* `models.DeploymentExtension` was added
+
+* `models.DeploymentStacksWhatIfChange` was added
+
+* `models.DeploymentStacksWhatIfChangeType` was added
+
+#### `models.DeploymentStackProperties` was modified
+
+* `withExternalInputs(java.util.Map)` was added
+* `extensionConfigs()` was added
+* `withExternalInputDefinitions(java.util.Map)` was added
+* `validationLevel()` was added
+* `deploymentExtensions()` was added
+* `withValidationLevel(models.ValidationLevel)` was added
+* `externalInputs()` was added
+* `withExtensionConfigs(java.util.Map)` was added
+* `externalInputDefinitions()` was added
+
+#### `models.DeploymentStacks` was modified
+
+* `deleteByIdWithResponse(java.lang.String,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksResourcesWithoutDeleteSupportEnum,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `deleteAtSubscription(java.lang.String,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksResourcesWithoutDeleteSupportEnum,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `delete(java.lang.String,java.lang.String,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksResourcesWithoutDeleteSupportEnum,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `deleteAtManagementGroup(java.lang.String,java.lang.String,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksDeleteDetachEnum,models.DeploymentStacksResourcesWithoutDeleteSupportEnum,java.lang.Boolean,com.azure.core.util.Context)` was added
+
+#### `models.ActionOnUnmanage` was modified
+
+* `resourcesWithoutDeleteSupport()` was added
+* `withResourcesWithoutDeleteSupport(models.DeploymentStacksResourcesWithoutDeleteSupportEnum)` was added
+
+#### `models.ResourceReferenceExtended` was modified
+
+* `extension()` was added
+* `identifiers()` was added
+* `apiVersion()` was added
+* `type()` was added
+
+#### `DeploymentStacksManager` was modified
+
+* `deploymentStacksWhatIfResultsAtSubscriptions()` was added
+* `deploymentStacksWhatIfResultsAtResourceGroups()` was added
+* `deploymentStacksWhatIfResultsAtManagementGroups()` was added
+
+#### `models.DeploymentStackValidateProperties` was modified
+
+* `deploymentExtensions()` was added
+* `validationLevel()` was added
+
+#### `models.DeploymentParameter` was modified
+
+* `withExpression(java.lang.String)` was added
+* `expression()` was added
+
+#### `models.ManagedResourceReference` was modified
+
+* `apiVersion()` was added
+* `type()` was added
+* `identifiers()` was added
+* `extension()` was added
+
+#### `models.ResourceReference` was modified
-### Other Changes
+* `apiVersion()` was added
+* `identifiers()` was added
+* `type()` was added
+* `extension()` was added
## 1.0.0 (2025-07-10)
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/README.md b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/README.md
index 8faf3bdc7c54..bc5d3990e5e1 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/README.md
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Deployment Stacks client library for Java.
-This package contains Microsoft Azure SDK for Deployment Stacks Management SDK. DeploymentStacks Client. Package tag package-2024-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Deployment Stacks Management SDK. The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource Manager. Package api-version 2025-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-resources-deploymentstacks
- 1.0.0
+ 1.1.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/SAMPLE.md b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/SAMPLE.md
index f648884e6d86..95972b93e7cb 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/SAMPLE.md
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/SAMPLE.md
@@ -21,6 +21,30 @@
- [ValidateStackAtManagementGroup](#deploymentstacks_validatestackatmanagementgroup)
- [ValidateStackAtResourceGroup](#deploymentstacks_validatestackatresourcegroup)
- [ValidateStackAtSubscription](#deploymentstacks_validatestackatsubscription)
+
+## DeploymentStacksWhatIfResultsAtManagementGroup
+
+- [CreateOrUpdate](#deploymentstackswhatifresultsatmanagementgroup_createorupdate)
+- [Delete](#deploymentstackswhatifresultsatmanagementgroup_delete)
+- [Get](#deploymentstackswhatifresultsatmanagementgroup_get)
+- [List](#deploymentstackswhatifresultsatmanagementgroup_list)
+- [WhatIf](#deploymentstackswhatifresultsatmanagementgroup_whatif)
+
+## DeploymentStacksWhatIfResultsAtResourceGroup
+
+- [CreateOrUpdate](#deploymentstackswhatifresultsatresourcegroup_createorupdate)
+- [Delete](#deploymentstackswhatifresultsatresourcegroup_delete)
+- [GetByResourceGroup](#deploymentstackswhatifresultsatresourcegroup_getbyresourcegroup)
+- [ListByResourceGroup](#deploymentstackswhatifresultsatresourcegroup_listbyresourcegroup)
+- [WhatIf](#deploymentstackswhatifresultsatresourcegroup_whatif)
+
+## DeploymentStacksWhatIfResultsAtSubscription
+
+- [CreateOrUpdate](#deploymentstackswhatifresultsatsubscription_createorupdate)
+- [Delete](#deploymentstackswhatifresultsatsubscription_delete)
+- [Get](#deploymentstackswhatifresultsatsubscription_get)
+- [List](#deploymentstackswhatifresultsatsubscription_list)
+- [WhatIf](#deploymentstackswhatifresultsatsubscription_whatif)
### DeploymentStacks_CreateOrUpdateAtManagementGroup
```java
@@ -28,6 +52,8 @@ import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.Deploy
import com.azure.resourcemanager.resources.deploymentstacks.models.ActionOnUnmanage;
import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettings;
import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettingsMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfig;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfigItem;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentParameter;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStackProperties;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
@@ -40,30 +66,34 @@ import java.util.Map;
*/
public final class DeploymentStacksCreateOrUpdateAtManagementGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackManagementGroupCreate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackManagementGroupCreate.json
*/
/**
- * Sample code: DeploymentStacksManagementGroupCreateOrUpdate.
+ * Sample code: Create or update a management group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksManagementGroupCreateOrUpdate(
+ public static void createOrUpdateAManagementGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .createOrUpdateAtManagementGroup("myMg", "simpleDeploymentStack", new DeploymentStackInner()
- .withLocation("eastus")
- .withTags(mapOf("tagkey", "fakeTokenPlaceholder"))
- .withProperties(new DeploymentStackProperties()
- .withParameters(mapOf("parameter1", new DeploymentParameter().withValue("a string")))
- .withActionOnUnmanage(new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
- .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
- .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
- .withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
- .withExcludedPrincipals(Arrays.asList("principal"))
- .withExcludedActions(Arrays.asList("action"))
- .withApplyToChildScopes(false))),
+ .createOrUpdateAtManagementGroup("myMg", "simpleDeploymentStack",
+ new DeploymentStackInner()
+ .withProperties(new DeploymentStackProperties()
+ .withParameters(mapOf("parameter1", new DeploymentParameter().withValue("a string")))
+ .withExtensionConfigs(mapOf("contoso",
+ new DeploymentExtensionConfig().withAdditionalProperties(
+ mapOf("configTwo", new DeploymentExtensionConfigItem().withValue(true), "configOne",
+ new DeploymentExtensionConfigItem().withValue("config1Value")))))
+ .withActionOnUnmanage(
+ new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
+ .withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
+ .withExcludedPrincipals(Arrays.asList("principal"))
+ .withExcludedActions(Arrays.asList("action"))
+ .withApplyToChildScopes(false)))
+ .withLocation("eastus")
+ .withTags(mapOf("tagkey", "fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
@@ -87,6 +117,8 @@ public final class DeploymentStacksCreateOrUpdateAtManagementGroupSamples {
import com.azure.resourcemanager.resources.deploymentstacks.models.ActionOnUnmanage;
import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettings;
import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettingsMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfig;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfigItem;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentParameter;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStackProperties;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
@@ -99,16 +131,14 @@ import java.util.Map;
*/
public final class DeploymentStacksCreateOrUpdateAtResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackResourceGroupCreate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackResourceGroupCreate.json
*/
/**
- * Sample code: DeploymentStacksResourceGroupCreateOrUpdate.
+ * Sample code: Create or update a resource group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksResourceGroupCreateOrUpdate(
+ public static void createOrUpdateAResourceGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.define("simpleDeploymentStack")
@@ -117,6 +147,10 @@ public final class DeploymentStacksCreateOrUpdateAtResourceGroupSamples {
.withTags(mapOf("tagkey", "fakeTokenPlaceholder"))
.withProperties(new DeploymentStackProperties()
.withParameters(mapOf("parameter1", new DeploymentParameter().withValue("a string")))
+ .withExtensionConfigs(mapOf("contoso",
+ new DeploymentExtensionConfig().withAdditionalProperties(
+ mapOf("configTwo", new DeploymentExtensionConfigItem().withValue(true), "configOne",
+ new DeploymentExtensionConfigItem().withValue("config1Value")))))
.withActionOnUnmanage(new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
.withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
.withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
@@ -148,6 +182,8 @@ import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.Deploy
import com.azure.resourcemanager.resources.deploymentstacks.models.ActionOnUnmanage;
import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettings;
import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettingsMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfig;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfigItem;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentParameter;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStackProperties;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
@@ -160,29 +196,34 @@ import java.util.Map;
*/
public final class DeploymentStacksCreateOrUpdateAtSubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackSubscriptionCreate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackSubscriptionCreate.json
*/
/**
- * Sample code: DeploymentStacksSubscriptionCreateOrUpdate.
+ * Sample code: Create or update a subscription Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksSubscriptionCreateOrUpdate(
+ public static void createOrUpdateASubscriptionDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .createOrUpdateAtSubscription("simpleDeploymentStack", new DeploymentStackInner().withLocation("eastus")
- .withTags(mapOf("tagkey", "fakeTokenPlaceholder"))
- .withProperties(new DeploymentStackProperties()
- .withParameters(mapOf("parameter1", new DeploymentParameter().withValue("a string")))
- .withActionOnUnmanage(new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
- .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
- .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
- .withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
- .withExcludedPrincipals(Arrays.asList("principal"))
- .withExcludedActions(Arrays.asList("action"))
- .withApplyToChildScopes(false))),
+ .createOrUpdateAtSubscription("simpleDeploymentStack",
+ new DeploymentStackInner()
+ .withProperties(new DeploymentStackProperties()
+ .withParameters(mapOf("parameter1", new DeploymentParameter().withValue("a string")))
+ .withExtensionConfigs(mapOf("contoso",
+ new DeploymentExtensionConfig().withAdditionalProperties(
+ mapOf("configTwo", new DeploymentExtensionConfigItem().withValue(true), "configOne",
+ new DeploymentExtensionConfigItem().withValue("config1Value")))))
+ .withActionOnUnmanage(
+ new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
+ .withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
+ .withExcludedPrincipals(Arrays.asList("principal"))
+ .withExcludedActions(Arrays.asList("action"))
+ .withApplyToChildScopes(false)))
+ .withLocation("eastus")
+ .withTags(mapOf("tagkey", "fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
@@ -209,19 +250,17 @@ public final class DeploymentStacksCreateOrUpdateAtSubscriptionSamples {
*/
public final class DeploymentStacksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackResourceGroupDelete.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackResourceGroupDelete.json
*/
/**
- * Sample code: DeploymentStacksResourceGroupDelete.
+ * Sample code: Delete a resource group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksResourceGroupDelete(
+ public static void deleteAResourceGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .delete("deploymentStacksRG", "simpleDeploymentStack", null, null, null, null,
+ .delete("deploymentStacksRG", "simpleDeploymentStack", null, null, null, null, null,
com.azure.core.util.Context.NONE);
}
}
@@ -236,19 +275,17 @@ public final class DeploymentStacksDeleteSamples {
*/
public final class DeploymentStacksDeleteAtManagementGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackManagementGroupDelete.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackManagementGroupDelete.json
*/
/**
- * Sample code: DeploymentStacksManagementGroupDelete.
+ * Sample code: Delete a management group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksManagementGroupDelete(
+ public static void deleteAManagementGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .deleteAtManagementGroup("myMg", "simpleDeploymentStack", null, null, null, null,
+ .deleteAtManagementGroup("myMg", "simpleDeploymentStack", null, null, null, null, null,
com.azure.core.util.Context.NONE);
}
}
@@ -263,19 +300,18 @@ public final class DeploymentStacksDeleteAtManagementGroupSamples {
*/
public final class DeploymentStacksDeleteAtSubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackSubscriptionDelete.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackSubscriptionDelete.json
*/
/**
- * Sample code: DeploymentStacksSubscriptionDelete.
+ * Sample code: Delete a subscription Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksSubscriptionDelete(
+ public static void deleteASubscriptionDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .deleteAtSubscription("simpleDeploymentStack", null, null, null, null, com.azure.core.util.Context.NONE);
+ .deleteAtSubscription("simpleDeploymentStack", null, null, null, null, null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -288,16 +324,14 @@ public final class DeploymentStacksDeleteAtSubscriptionSamples {
*/
public final class DeploymentStacksExportTemplateAtManagementGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackManagementGroupExportTemplate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackManagementGroupExportTemplate.json
*/
/**
- * Sample code: DeploymentStacksManagementGroupExportTemplate.
+ * Sample code: Export the Deployment template for a management group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksManagementGroupExportTemplate(
+ public static void exportTheDeploymentTemplateForAManagementGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.exportTemplateAtManagementGroupWithResponse("myMg", "simpleDeploymentStack",
@@ -314,16 +348,14 @@ public final class DeploymentStacksExportTemplateAtManagementGroupSamples {
*/
public final class DeploymentStacksExportTemplateAtResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackExportTemplate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackExportTemplate.json
*/
/**
- * Sample code: DeploymentStacksResourceGroupExportTemplate.
+ * Sample code: Export the Deployment template for a resource group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksResourceGroupExportTemplate(
+ public static void exportTheDeploymentTemplateForAResourceGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.exportTemplateAtResourceGroupWithResponse("deploymentStacksRG", "simpleDeploymentStack",
@@ -340,16 +372,14 @@ public final class DeploymentStacksExportTemplateAtResourceGroupSamples {
*/
public final class DeploymentStacksExportTemplateAtSubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackSubscriptionExportTemplate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackSubscriptionExportTemplate.json
*/
/**
- * Sample code: DeploymentStacksSubscriptionExportTemplate.
+ * Sample code: Export the Deployment template for a subscription Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksSubscriptionExportTemplate(
+ public static void exportTheDeploymentTemplateForASubscriptionDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.exportTemplateAtSubscriptionWithResponse("simpleDeploymentStack", com.azure.core.util.Context.NONE);
@@ -365,16 +395,14 @@ public final class DeploymentStacksExportTemplateAtSubscriptionSamples {
*/
public final class DeploymentStacksGetAtManagementGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackManagementGroupGet.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackManagementGroupGet.json
*/
/**
- * Sample code: DeploymentStacksManagementGroupGet.
+ * Sample code: Get a management group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksManagementGroupGet(
+ public static void getAManagementGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.getAtManagementGroupWithResponse("myMg", "simpleDeploymentStack", com.azure.core.util.Context.NONE);
@@ -390,16 +418,14 @@ public final class DeploymentStacksGetAtManagementGroupSamples {
*/
public final class DeploymentStacksGetAtSubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackSubscriptionGet.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackSubscriptionGet.json
*/
/**
- * Sample code: DeploymentStacksSubscriptionGet.
+ * Sample code: Get a subscription Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksSubscriptionGet(
+ public static void getASubscriptionDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.getAtSubscriptionWithResponse("simpleDeploymentStack", com.azure.core.util.Context.NONE);
@@ -415,16 +441,14 @@ public final class DeploymentStacksGetAtSubscriptionSamples {
*/
public final class DeploymentStacksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackResourceGroupGet.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackResourceGroupGet.json
*/
/**
- * Sample code: DeploymentStacksResourceGroupGet.
+ * Sample code: Get a resource group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksResourceGroupGet(
+ public static void getAResourceGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.getByResourceGroupWithResponse("deploymentStacksRG", "simpleDeploymentStack",
@@ -441,16 +465,14 @@ public final class DeploymentStacksGetByResourceGroupSamples {
*/
public final class DeploymentStacksListSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackSubscriptionList.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackSubscriptionList.json
*/
/**
- * Sample code: DeploymentStacksSubscriptionList.
+ * Sample code: List subscription Deployment stacks.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksSubscriptionList(
+ public static void listSubscriptionDeploymentStacks(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks().list(com.azure.core.util.Context.NONE);
}
@@ -465,16 +487,14 @@ public final class DeploymentStacksListSamples {
*/
public final class DeploymentStacksListAtManagementGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackManagementGroupList.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackManagementGroupList.json
*/
/**
- * Sample code: DeploymentStacksManagementGroupList.
+ * Sample code: List management group Deployment stacks.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksManagementGroupList(
+ public static void listManagementGroupDeploymentStacks(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks().listAtManagementGroup("myMg", com.azure.core.util.Context.NONE);
}
@@ -489,16 +509,14 @@ public final class DeploymentStacksListAtManagementGroupSamples {
*/
public final class DeploymentStacksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackResourceGroupList.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackResourceGroupList.json
*/
/**
- * Sample code: DeploymentStacksResourceGroupList.
+ * Sample code: List resource group Deployment stacks.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksResourceGroupList(
+ public static void listResourceGroupDeploymentStacks(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks().listByResourceGroup("deploymentStacksRG", com.azure.core.util.Context.NONE);
}
@@ -525,21 +543,17 @@ import java.util.Map;
*/
public final class DeploymentStacksValidateStackAtManagementGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackManagementGroupValidate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackManagementGroupValidate.json
*/
/**
- * Sample code: DeploymentStacksManagementGroupValidate.
+ * Sample code: Validate a management group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksManagementGroupValidate(
+ public static void validateAManagementGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
.validateStackAtManagementGroup("myMg", "simpleDeploymentStack", new DeploymentStackInner()
- .withLocation("eastus")
- .withTags(mapOf("tagkey", "fakeTokenPlaceholder"))
.withProperties(new DeploymentStackProperties()
.withTemplateLink(
new DeploymentStacksTemplateLink().withUri("https://example.com/exampleTemplate.json"))
@@ -550,8 +564,9 @@ public final class DeploymentStacksValidateStackAtManagementGroupSamples {
.withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
.withExcludedPrincipals(Arrays.asList("principal"))
.withExcludedActions(Arrays.asList("action"))
- .withApplyToChildScopes(false))),
- com.azure.core.util.Context.NONE);
+ .withApplyToChildScopes(false)))
+ .withLocation("eastus")
+ .withTags(mapOf("tagkey", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -588,21 +603,18 @@ import java.util.Map;
*/
public final class DeploymentStacksValidateStackAtResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackResourceGroupValidate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackResourceGroupValidate.json
*/
/**
- * Sample code: DeploymentStacksResourceGroupValidate.
+ * Sample code: Validate a resource group Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksResourceGroupValidate(
+ public static void validateAResourceGroupDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .validateStackAtResourceGroup("deploymentStacksRG", "simpleDeploymentStack", new DeploymentStackInner()
- .withTags(mapOf("tagkey", "fakeTokenPlaceholder"))
- .withProperties(new DeploymentStackProperties()
+ .validateStackAtResourceGroup("deploymentStacksRG", "simpleDeploymentStack",
+ new DeploymentStackInner().withProperties(new DeploymentStackProperties()
.withTemplateLink(
new DeploymentStacksTemplateLink().withUri("https://example.com/exampleTemplate.json"))
.withParameters(mapOf("parameter1", new DeploymentParameter().withValue("a string")))
@@ -612,7 +624,8 @@ public final class DeploymentStacksValidateStackAtResourceGroupSamples {
.withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
.withExcludedPrincipals(Arrays.asList("principal"))
.withExcludedActions(Arrays.asList("action"))
- .withApplyToChildScopes(false))),
+ .withApplyToChildScopes(false)))
+ .withTags(mapOf("tagkey", "fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
@@ -650,20 +663,17 @@ import java.util.Map;
*/
public final class DeploymentStacksValidateStackAtSubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/resources/resource-manager/Microsoft.Resources/deploymentStacks/stable/2024-03-01/examples/
- * DeploymentStackSubscriptionValidate.json
+ * x-ms-original-file: 2025-07-01/DeploymentStackSubscriptionValidate.json
*/
/**
- * Sample code: DeploymentStacksSubscriptionValidate.
+ * Sample code: Validate a subscription Deployment stack.
*
* @param manager Entry point to DeploymentStacksManager.
*/
- public static void deploymentStacksSubscriptionValidate(
+ public static void validateASubscriptionDeploymentStack(
com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
manager.deploymentStacks()
- .validateStackAtSubscription("simpleDeploymentStack", new DeploymentStackInner().withLocation("eastus")
- .withTags(mapOf("tagkey", "fakeTokenPlaceholder"))
+ .validateStackAtSubscription("simpleDeploymentStack", new DeploymentStackInner()
.withProperties(new DeploymentStackProperties()
.withTemplateLink(
new DeploymentStacksTemplateLink().withUri("https://example.com/exampleTemplate.json"))
@@ -674,7 +684,72 @@ public final class DeploymentStacksValidateStackAtSubscriptionSamples {
.withDenySettings(new DenySettings().withMode(DenySettingsMode.DENY_DELETE)
.withExcludedPrincipals(Arrays.asList("principal"))
.withExcludedActions(Arrays.asList("action"))
- .withApplyToChildScopes(false))),
+ .withApplyToChildScopes(false)))
+ .withLocation("eastus")
+ .withTags(mapOf("tagkey", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtManagementGroup_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStacksWhatIfResultInner;
+import com.azure.resourcemanager.resources.deploymentstacks.models.ActionOnUnmanage;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettings;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettingsMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfig;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfigItem;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksTemplateLink;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultProperties;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtManagementGroup CreateOrUpdate.
+ */
+public final class DeploymentStacksWhatIfResultsAtManagementGroupCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsManagementGroupCreate.json
+ */
+ /**
+ * Sample code: Create or update a management group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void createOrUpdateAManagementGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtManagementGroups()
+ .createOrUpdate("myMg", "simpleDeploymentStackWhatIfResult",
+ new DeploymentStacksWhatIfResultInner().withProperties(new DeploymentStacksWhatIfResultProperties()
+ .withTemplateLink(
+ new DeploymentStacksTemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(mapOf())
+ .withExtensionConfigs(mapOf("contoso",
+ new DeploymentExtensionConfig().withAdditionalProperties(
+ mapOf("configTwo", new DeploymentExtensionConfigItem().withValue(true), "configOne",
+ new DeploymentExtensionConfigItem().withValue("config1Value")))))
+ .withActionOnUnmanage(new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
+ .withDenySettings(new DenySettings().withMode(DenySettingsMode.NONE).withApplyToChildScopes(false))
+ .withDeploymentStackResourceId(
+ "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack")
+ .withRetentionInterval(Duration.parse("P7D"))).withLocation("eastus"),
com.azure.core.util.Context.NONE);
}
@@ -692,3 +767,413 @@ public final class DeploymentStacksValidateStackAtSubscriptionSamples {
}
```
+### DeploymentStacksWhatIfResultsAtManagementGroup_Delete
+
+```java
+
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtManagementGroup Delete.
+ */
+public final class DeploymentStacksWhatIfResultsAtManagementGroupDeleteSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsManagementGroupDelete.json
+ */
+ /**
+ * Sample code: Delete a management group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void deleteAManagementGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtManagementGroups()
+ .deleteWithResponse("myMg", "simpleDeploymentStack", null, null, null, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtManagementGroup_Get
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtManagementGroup Get.
+ */
+public final class DeploymentStacksWhatIfResultsAtManagementGroupGetSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsManagementGroupGet.json
+ */
+ /**
+ * Sample code: Get a management group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void getAManagementGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtManagementGroups()
+ .getWithResponse("myMg", "simpleDeploymentStackWhatIfResult", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtManagementGroup_List
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtManagementGroup List.
+ */
+public final class DeploymentStacksWhatIfResultsAtManagementGroupListSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsManagementGroupList.json
+ */
+ /**
+ * Sample code: List the available Deployment stack what-if results at management group scope.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void listTheAvailableDeploymentStackWhatIfResultsAtManagementGroupScope(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtManagementGroups().list("myMg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtManagementGroup_WhatIf
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtManagementGroup WhatIf.
+ */
+public final class DeploymentStacksWhatIfResultsAtManagementGroupWhatIfSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsManagementGroupWhatIf.json
+ */
+ /**
+ * Sample code: Get a detailed management group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void getADetailedManagementGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtManagementGroups()
+ .whatIf("myMg", "changedDeploymentStackWhatIfResult", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtResourceGroup_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.resources.deploymentstacks.models.ActionOnUnmanage;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettings;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettingsMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfig;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfigItem;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksTemplateLink;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultProperties;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtResourceGroup CreateOrUpdate.
+ */
+public final class DeploymentStacksWhatIfResultsAtResourceGroupCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsResourceGroupCreate.json
+ */
+ /**
+ * Sample code: Create or update a resource group scoped Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void createOrUpdateAResourceGroupScopedDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtResourceGroups()
+ .define("simpleDeploymentStackWhatIfResult")
+ .withExistingResourceGroup("myResourceGroup")
+ .withRegion("eastus")
+ .withProperties(new DeploymentStacksWhatIfResultProperties()
+ .withTemplateLink(
+ new DeploymentStacksTemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(mapOf())
+ .withExtensionConfigs(mapOf("contoso",
+ new DeploymentExtensionConfig().withAdditionalProperties(
+ mapOf("configTwo", new DeploymentExtensionConfigItem().withValue(true), "configOne",
+ new DeploymentExtensionConfigItem().withValue("config1Value")))))
+ .withActionOnUnmanage(new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
+ .withDenySettings(new DenySettings().withMode(DenySettingsMode.NONE).withApplyToChildScopes(false))
+ .withDeploymentStackResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack")
+ .withRetentionInterval(Duration.parse("P7D")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtResourceGroup_Delete
+
+```java
+
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtResourceGroup Delete.
+ */
+public final class DeploymentStacksWhatIfResultsAtResourceGroupDeleteSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsResourceGroupDelete.json
+ */
+ /**
+ * Sample code: Delete a resource group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void deleteAResourceGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtResourceGroups()
+ .deleteWithResponse("myResourceGroup", "simpleDeploymentStack", null, null, null, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtResourceGroup_GetByResourceGroup
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtResourceGroup GetByResourceGroup.
+ */
+public final class DeploymentStacksWhatIfResultsAtResourceGroupGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsResourceGroupGet.json
+ */
+ /**
+ * Sample code: Get a resource group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void getAResourceGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtResourceGroups()
+ .getByResourceGroupWithResponse("myResourceGroup", "simpleDeploymentStackWhatIfResult",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtResourceGroup_ListByResourceGroup
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtResourceGroup ListByResourceGroup.
+ */
+public final class DeploymentStacksWhatIfResultsAtResourceGroupListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsResourceGroupList.json
+ */
+ /**
+ * Sample code: List the available Deployment stack what-if results at resource group scope.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void listTheAvailableDeploymentStackWhatIfResultsAtResourceGroupScope(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtResourceGroups()
+ .listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtResourceGroup_WhatIf
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtResourceGroup WhatIf.
+ */
+public final class DeploymentStacksWhatIfResultsAtResourceGroupWhatIfSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsResourceGroupWhatIf.json
+ */
+ /**
+ * Sample code: Get a detailed resource group Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void getADetailedResourceGroupDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtResourceGroups()
+ .whatIf("myResourceGroup", "changedDeploymentStackWhatIfResult", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtSubscription_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStacksWhatIfResultInner;
+import com.azure.resourcemanager.resources.deploymentstacks.models.ActionOnUnmanage;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettings;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DenySettingsMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfig;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentExtensionConfigItem;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksTemplateLink;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultProperties;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtSubscription CreateOrUpdate.
+ */
+public final class DeploymentStacksWhatIfResultsAtSubscriptionCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsSubscriptionCreate.json
+ */
+ /**
+ * Sample code: Create or update a subscription-scoped Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void createOrUpdateASubscriptionScopedDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtSubscriptions()
+ .createOrUpdate("simpleDeploymentStackWhatIfResult",
+ new DeploymentStacksWhatIfResultInner().withProperties(new DeploymentStacksWhatIfResultProperties()
+ .withTemplateLink(
+ new DeploymentStacksTemplateLink().withUri("https://example.com/exampleTemplate.json"))
+ .withParameters(mapOf())
+ .withExtensionConfigs(mapOf("contoso",
+ new DeploymentExtensionConfig().withAdditionalProperties(
+ mapOf("configTwo", new DeploymentExtensionConfigItem().withValue(true), "configOne",
+ new DeploymentExtensionConfigItem().withValue("config1Value")))))
+ .withActionOnUnmanage(new ActionOnUnmanage().withResources(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withResourceGroups(DeploymentStacksDeleteDetachEnum.DELETE)
+ .withManagementGroups(DeploymentStacksDeleteDetachEnum.DETACH))
+ .withDenySettings(new DenySettings().withMode(DenySettingsMode.NONE).withApplyToChildScopes(false))
+ .withDeploymentStackResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack")
+ .withRetentionInterval(Duration.parse("P7D"))).withLocation("eastus"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtSubscription_Delete
+
+```java
+
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtSubscription Delete.
+ */
+public final class DeploymentStacksWhatIfResultsAtSubscriptionDeleteSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsSubscriptionDelete.json
+ */
+ /**
+ * Sample code: Delete a subscription Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void deleteASubscriptionDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtSubscriptions()
+ .deleteWithResponse("simpleDeploymentStack", null, null, null, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtSubscription_Get
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtSubscription Get.
+ */
+public final class DeploymentStacksWhatIfResultsAtSubscriptionGetSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsSubscriptionGet.json
+ */
+ /**
+ * Sample code: Get a subscription Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void getASubscriptionDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtSubscriptions()
+ .getWithResponse("simpleDeploymentStackWhatIfResult", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtSubscription_List
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtSubscription List.
+ */
+public final class DeploymentStacksWhatIfResultsAtSubscriptionListSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsSubscriptionList.json
+ */
+ /**
+ * Sample code: List the available Deployment stack what-if results at subscription scope.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void listTheAvailableDeploymentStackWhatIfResultsAtSubscriptionScope(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtSubscriptions().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeploymentStacksWhatIfResultsAtSubscription_WhatIf
+
+```java
+/**
+ * Samples for DeploymentStacksWhatIfResultsAtSubscription WhatIf.
+ */
+public final class DeploymentStacksWhatIfResultsAtSubscriptionWhatIfSamples {
+ /*
+ * x-ms-original-file: 2025-07-01/DeploymentStackWhatIfResultsSubscriptionWhatIf.json
+ */
+ /**
+ * Sample code: Get a detailed subscription Deployment stack what-if result.
+ *
+ * @param manager Entry point to DeploymentStacksManager.
+ */
+ public static void getADetailedSubscriptionDeploymentStackWhatIfResult(
+ com.azure.resourcemanager.resources.deploymentstacks.DeploymentStacksManager manager) {
+ manager.deploymentStacksWhatIfResultsAtSubscriptions()
+ .whatIf("changedDeploymentStackWhatIfResult", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/pom.xml b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/pom.xml
index 6c84852a89b3..18801170ff17 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/pom.xml
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-resources-deploymentstacks
- 1.1.0-beta.1
+ 1.1.0
jar
Microsoft Azure SDK for Deployment Stacks Management
- This package contains Microsoft Azure SDK for Deployment Stacks Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. DeploymentStacks Client. Package tag package-2024-03.
+ This package contains Microsoft Azure SDK for Deployment Stacks Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource Manager. Package api-version 2025-07-01.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/DeploymentStacksManager.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/DeploymentStacksManager.java
index 9e865390421a..3a619c41f15a 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/DeploymentStacksManager.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/DeploymentStacksManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks;
@@ -27,7 +27,13 @@
import com.azure.resourcemanager.resources.deploymentstacks.fluent.DeploymentStacksManagementClient;
import com.azure.resourcemanager.resources.deploymentstacks.implementation.DeploymentStacksImpl;
import com.azure.resourcemanager.resources.deploymentstacks.implementation.DeploymentStacksManagementClientBuilder;
+import com.azure.resourcemanager.resources.deploymentstacks.implementation.DeploymentStacksWhatIfResultsAtManagementGroupsImpl;
+import com.azure.resourcemanager.resources.deploymentstacks.implementation.DeploymentStacksWhatIfResultsAtResourceGroupsImpl;
+import com.azure.resourcemanager.resources.deploymentstacks.implementation.DeploymentStacksWhatIfResultsAtSubscriptionsImpl;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacks;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultsAtManagementGroups;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultsAtResourceGroups;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultsAtSubscriptions;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -38,9 +44,16 @@
/**
* Entry point to DeploymentStacksManager.
- * DeploymentStacks Client.
+ * The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource
+ * Manager.
*/
public final class DeploymentStacksManager {
+ private DeploymentStacksWhatIfResultsAtResourceGroups deploymentStacksWhatIfResultsAtResourceGroups;
+
+ private DeploymentStacksWhatIfResultsAtSubscriptions deploymentStacksWhatIfResultsAtSubscriptions;
+
+ private DeploymentStacksWhatIfResultsAtManagementGroups deploymentStacksWhatIfResultsAtManagementGroups;
+
private DeploymentStacks deploymentStacks;
private final DeploymentStacksManagementClient clientObject;
@@ -258,6 +271,47 @@ public DeploymentStacksManager authenticate(TokenCredential credential, AzurePro
}
}
+ /**
+ * Gets the resource collection API of DeploymentStacksWhatIfResultsAtResourceGroups. It manages
+ * DeploymentStacksWhatIfResult.
+ *
+ * @return Resource collection API of DeploymentStacksWhatIfResultsAtResourceGroups.
+ */
+ public DeploymentStacksWhatIfResultsAtResourceGroups deploymentStacksWhatIfResultsAtResourceGroups() {
+ if (this.deploymentStacksWhatIfResultsAtResourceGroups == null) {
+ this.deploymentStacksWhatIfResultsAtResourceGroups = new DeploymentStacksWhatIfResultsAtResourceGroupsImpl(
+ clientObject.getDeploymentStacksWhatIfResultsAtResourceGroups(), this);
+ }
+ return deploymentStacksWhatIfResultsAtResourceGroups;
+ }
+
+ /**
+ * Gets the resource collection API of DeploymentStacksWhatIfResultsAtSubscriptions.
+ *
+ * @return Resource collection API of DeploymentStacksWhatIfResultsAtSubscriptions.
+ */
+ public DeploymentStacksWhatIfResultsAtSubscriptions deploymentStacksWhatIfResultsAtSubscriptions() {
+ if (this.deploymentStacksWhatIfResultsAtSubscriptions == null) {
+ this.deploymentStacksWhatIfResultsAtSubscriptions = new DeploymentStacksWhatIfResultsAtSubscriptionsImpl(
+ clientObject.getDeploymentStacksWhatIfResultsAtSubscriptions(), this);
+ }
+ return deploymentStacksWhatIfResultsAtSubscriptions;
+ }
+
+ /**
+ * Gets the resource collection API of DeploymentStacksWhatIfResultsAtManagementGroups.
+ *
+ * @return Resource collection API of DeploymentStacksWhatIfResultsAtManagementGroups.
+ */
+ public DeploymentStacksWhatIfResultsAtManagementGroups deploymentStacksWhatIfResultsAtManagementGroups() {
+ if (this.deploymentStacksWhatIfResultsAtManagementGroups == null) {
+ this.deploymentStacksWhatIfResultsAtManagementGroups
+ = new DeploymentStacksWhatIfResultsAtManagementGroupsImpl(
+ clientObject.getDeploymentStacksWhatIfResultsAtManagementGroups(), this);
+ }
+ return deploymentStacksWhatIfResultsAtManagementGroups;
+ }
+
/**
* Gets the resource collection API of DeploymentStacks. It manages DeploymentStack.
*
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksClient.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksClient.java
index 32f8e2376523..a43bca6daffe 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksClient.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.fluent;
@@ -14,178 +14,198 @@
import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStackInner;
import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStackTemplateDefinitionInner;
import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStackValidateResultInner;
-import com.azure.resourcemanager.resources.deploymentstacks.models.UnmanageActionManagementGroupMode;
-import com.azure.resourcemanager.resources.deploymentstacks.models.UnmanageActionResourceGroupMode;
-import com.azure.resourcemanager.resources.deploymentstacks.models.UnmanageActionResourceMode;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksResourcesWithoutDeleteSupportEnum;
/**
* An instance of this class provides access to all the operations defined in DeploymentStacksClient.
*/
public interface DeploymentStacksClient {
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Gets the Deployment stack with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @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 list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the Deployment stack with the given name along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String deploymentStackName,
+ Context context);
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Gets the Deployment stack with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
+ * @param deploymentStackName Name of the deployment stack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the Deployment stack with the given name.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStackInner getByResourceGroup(String resourceGroupName, String deploymentStackName);
/**
- * Lists all the Deployment stacks within the specified Subscription.
+ * Lists Deployment stacks at the specified scope.
*
+ * @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 list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Lists all the Deployment stacks within the specified Subscription.
+ * Lists Deployment stacks at the specified scope.
*
+ * @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 list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAtManagementGroup(String managementGroupId);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStackValidateResultInner>
+ beginValidateStackAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack);
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @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 list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAtManagementGroup(String managementGroupId, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStackValidateResultInner>
+ beginValidateStackAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack, Context context);
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 deployment stack object.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtResourceGroup(
- String resourceGroupName, String deploymentStackName, DeploymentStackInner deploymentStack);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStackValidateResultInner validateStackAtResourceGroup(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack The content of the action request.
* @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 deployment stack object.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtResourceGroup(
- String resourceGroupName, String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStackValidateResultInner validateStackAtResourceGroup(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return deployment stack object.
+ * @return the {@link SyncPoller} for polling of deployment stack object.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner createOrUpdateAtResourceGroup(String resourceGroupName, String deploymentStackName,
- DeploymentStackInner deploymentStack);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtResourceGroup(
+ String resourceGroupName, String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @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 deployment stack object.
+ * @return the {@link SyncPoller} for polling of deployment stack object.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner createOrUpdateAtResourceGroup(String resourceGroupName, String deploymentStackName,
- DeploymentStackInner deploymentStack, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtResourceGroup(
+ String resourceGroupName, String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
/**
- * Gets a Deployment stack with a given name at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param context The context to associate with this operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Deployment stack with a given name at Resource Group scope along with {@link Response}.
+ * @return deployment stack object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String deploymentStackName,
- Context context);
+ DeploymentStackInner createOrUpdateAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack);
/**
- * Gets a Deployment stack with a given name at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack Resource create parameters.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Deployment stack with a given name at Resource Group scope.
+ * @return deployment stack object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner getByResourceGroup(String resourceGroupName, String deploymentStackName);
+ DeploymentStackInner createOrUpdateAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack, Context context);
/**
- * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -199,7 +219,7 @@ Response getByResourceGroupWithResponse(String resourceGro
SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentStackName);
/**
- * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -207,6 +227,8 @@ Response getByResourceGroupWithResponse(String resourceGro
* @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
* @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
* @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
* @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
* correctly synchronized.
* @param context The context to associate with this operation.
@@ -217,13 +239,14 @@ Response getByResourceGroupWithResponse(String resourceGro
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deploymentStackName,
- UnmanageActionResourceMode unmanageActionResources,
- UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- UnmanageActionManagementGroupMode unmanageActionManagementGroups, Boolean bypassStackOutOfSyncError,
- Context context);
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
/**
- * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -236,7 +259,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String deploymentStackName);
/**
- * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -244,6 +267,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
* @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
* @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
* @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
* correctly synchronized.
* @param context The context to associate with this operation.
@@ -253,116 +278,109 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String deploymentStackName,
- UnmanageActionResourceMode unmanageActionResources,
- UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- UnmanageActionManagementGroupMode unmanageActionManagementGroups, Boolean bypassStackOutOfSyncError,
- Context context);
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
/**
- * Creates or updates a Deployment stack at Subscription scope.
+ * Exports the template used to create the Deployment stack at the specified scope.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @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 deployment stack object.
+ * @return export Template specific properties of the Deployment stack along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackInner>
- beginCreateOrUpdateAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtResourceGroupWithResponse(String resourceGroupName,
+ String deploymentStackName, Context context);
/**
- * Creates or updates a Deployment stack at Subscription scope.
+ * Exports the template used to create the Deployment stack at the specified scope.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
- * @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 deployment stack object.
+ * @return export Template specific properties of the Deployment stack.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtSubscription(
- String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStackTemplateDefinitionInner exportTemplateAtResourceGroup(String resourceGroupName,
+ String deploymentStackName);
/**
- * Creates or updates a Deployment stack at Subscription scope.
+ * Gets the Deployment stack with the given name.
*
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @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 deployment stack object.
+ * @return the Deployment stack with the given name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner createOrUpdateAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack);
+ Response getAtSubscriptionWithResponse(String deploymentStackName, Context context);
/**
- * Creates or updates a Deployment stack at Subscription scope.
+ * Gets the Deployment stack with the given name.
*
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
- * @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 deployment stack object.
+ * @return the Deployment stack with the given name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner createOrUpdateAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack,
- Context context);
+ DeploymentStackInner getAtSubscription(String deploymentStackName);
/**
- * Gets a Deployment stack with a given name at Subscription scope.
+ * Lists Deployment stacks at the specified scope.
*
- * @param deploymentStackName Name of the deployment stack.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Deployment stack with a given name at Subscription scope along with {@link Response}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getAtSubscriptionWithResponse(String deploymentStackName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Gets a Deployment stack with a given name at Subscription scope.
+ * Lists Deployment stacks at the specified scope.
*
- * @param deploymentStackName Name of the deployment stack.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Deployment stack with a given name at Subscription scope.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner getAtSubscription(String deploymentStackName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
/**
- * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 returned
- * without content.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
* @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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> beginDeleteAtSubscription(String deploymentStackName);
+ SyncPoller, DeploymentStackValidateResultInner>
+ beginValidateStackAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 returned
- * without content.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
* @param deploymentStackName Name of the deployment stack.
- * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
- * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
- * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
- * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
- * correctly synchronized.
+ * @param deploymentStack The content of the action request.
* @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.
@@ -370,66 +388,60 @@ DeploymentStackInner createOrUpdateAtSubscription(String deploymentStackName, De
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteAtSubscription(String deploymentStackName,
- UnmanageActionResourceMode unmanageActionResources,
- UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- UnmanageActionManagementGroupMode unmanageActionManagementGroups, Boolean bypassStackOutOfSyncError,
- Context context);
+ SyncPoller, DeploymentStackValidateResultInner>
+ beginValidateStackAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack,
+ Context context);
/**
- * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 returned
- * without content.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
* @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteAtSubscription(String deploymentStackName);
+ DeploymentStackValidateResultInner validateStackAtSubscription(String deploymentStackName,
+ DeploymentStackInner deploymentStack);
/**
- * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 returned
- * without content.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
* @param deploymentStackName Name of the deployment stack.
- * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
- * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
- * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
- * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
- * correctly synchronized.
+ * @param deploymentStack The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteAtSubscription(String deploymentStackName, UnmanageActionResourceMode unmanageActionResources,
- UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- UnmanageActionManagementGroupMode unmanageActionManagementGroups, Boolean bypassStackOutOfSyncError,
- Context context);
+ DeploymentStackValidateResultInner validateStackAtSubscription(String deploymentStackName,
+ DeploymentStackInner deploymentStack, Context context);
/**
- * Creates or updates a Deployment stack at Management Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 deployment stack object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtManagementGroup(
- String managementGroupId, String deploymentStackName, DeploymentStackInner deploymentStack);
+ SyncPoller, DeploymentStackInner>
+ beginCreateOrUpdateAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Creates or updates a Deployment stack at Management Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @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.
@@ -437,30 +449,27 @@ SyncPoller, DeploymentStackInner> beginCreateOr
* @return the {@link SyncPoller} for polling of deployment stack object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtManagementGroup(
- String managementGroupId, String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
+ SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtSubscription(
+ String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
/**
- * Creates or updates a Deployment stack at Management Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return deployment stack object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner createOrUpdateAtManagementGroup(String managementGroupId, String deploymentStackName,
- DeploymentStackInner deploymentStack);
+ DeploymentStackInner createOrUpdateAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Creates or updates a Deployment stack at Management Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @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.
@@ -468,42 +477,13 @@ DeploymentStackInner createOrUpdateAtManagementGroup(String managementGroupId, S
* @return deployment stack object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner createOrUpdateAtManagementGroup(String managementGroupId, String deploymentStackName,
- DeploymentStackInner deploymentStack, Context context);
-
- /**
- * Gets a Deployment stack with a given name at Management Group scope.
- *
- * @param managementGroupId Management Group id.
- * @param deploymentStackName Name of the deployment stack.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Deployment stack with a given name at Management Group scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getAtManagementGroupWithResponse(String managementGroupId,
- String deploymentStackName, Context context);
-
- /**
- * Gets a Deployment stack with a given name at Management Group scope.
- *
- * @param managementGroupId Management Group id.
- * @param deploymentStackName Name of the deployment stack.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Deployment stack with a given name at Management Group scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackInner getAtManagementGroup(String managementGroupId, String deploymentStackName);
+ DeploymentStackInner createOrUpdateAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack,
+ Context context);
/**
- * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -511,18 +491,18 @@ Response getAtManagementGroupWithResponse(String managemen
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteAtManagementGroup(String managementGroupId,
- String deploymentStackName);
+ SyncPoller, Void> beginDeleteAtSubscription(String deploymentStackName);
/**
- * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
* @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
* @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
* @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
* @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
* correctly synchronized.
* @param context The context to associate with this operation.
@@ -532,34 +512,35 @@ SyncPoller, Void> beginDeleteAtManagementGroup(String managemen
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteAtManagementGroup(String managementGroupId,
- String deploymentStackName, UnmanageActionResourceMode unmanageActionResources,
- UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- UnmanageActionManagementGroupMode unmanageActionManagementGroups, Boolean bypassStackOutOfSyncError,
- Context context);
+ SyncPoller, Void> beginDeleteAtSubscription(String deploymentStackName,
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
/**
- * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 deleteAtManagementGroup(String managementGroupId, String deploymentStackName);
+ void deleteAtSubscription(String deploymentStackName);
/**
- * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
* without content.
*
- * @param managementGroupId Management Group id.
* @param deploymentStackName Name of the deployment stack.
* @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
* @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
* @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
* @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
* correctly synchronized.
* @param context The context to associate with this operation.
@@ -568,16 +549,15 @@ SyncPoller, Void> beginDeleteAtManagementGroup(String managemen
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteAtManagementGroup(String managementGroupId, String deploymentStackName,
- UnmanageActionResourceMode unmanageActionResources,
- UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- UnmanageActionManagementGroupMode unmanageActionManagementGroups, Boolean bypassStackOutOfSyncError,
- Context context);
+ void deleteAtSubscription(String deploymentStackName, DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
/**
- * Exports the template used to create the Deployment stack at Resource Group scope.
+ * Exports the template used to create the Deployment stack at the specified scope.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -586,13 +566,12 @@ void deleteAtManagementGroup(String managementGroupId, String deploymentStackNam
* @return export Template specific properties of the Deployment stack along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response exportTemplateAtResourceGroupWithResponse(String resourceGroupName,
- String deploymentStackName, Context context);
+ Response
+ exportTemplateAtSubscriptionWithResponse(String deploymentStackName, Context context);
/**
- * Exports the template used to create the Deployment stack at Resource Group scope.
+ * Exports the template used to create the Deployment stack at the specified scope.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -600,260 +579,298 @@ Response exportTemplateAtResourceGroupWi
* @return export Template specific properties of the Deployment stack.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackTemplateDefinitionInner exportTemplateAtResourceGroup(String resourceGroupName,
- String deploymentStackName);
+ DeploymentStackTemplateDefinitionInner exportTemplateAtSubscription(String deploymentStackName);
/**
- * Exports the template used to create the Deployment stack at Subscription scope.
+ * Gets the Deployment stack with the given name.
*
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
* @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 export Template specific properties of the Deployment stack along with {@link Response}.
+ * @return the Deployment stack with the given name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response
- exportTemplateAtSubscriptionWithResponse(String deploymentStackName, Context context);
+ Response getAtManagementGroupWithResponse(String managementGroupId,
+ String deploymentStackName, Context context);
/**
- * Exports the template used to create the Deployment stack at Subscription scope.
+ * Gets the Deployment stack with the given name.
*
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return export Template specific properties of the Deployment stack.
+ * @return the Deployment stack with the given name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackTemplateDefinitionInner exportTemplateAtSubscription(String deploymentStackName);
+ DeploymentStackInner getAtManagementGroup(String managementGroupId, String deploymentStackName);
/**
- * Exports the template used to create the Deployment stack at Management Group scope.
+ * Lists Deployment stacks at the specified scope.
*
- * @param managementGroupId Management Group id.
- * @param deploymentStackName Name of the deployment stack.
- * @param context The context to associate with this operation.
+ * @param managementGroupId The name of the management 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 export Template specific properties of the Deployment stack along with {@link Response}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response exportTemplateAtManagementGroupWithResponse(
- String managementGroupId, String deploymentStackName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroup(String managementGroupId);
/**
- * Exports the template used to create the Deployment stack at Management Group scope.
+ * Lists Deployment stacks at the specified scope.
*
- * @param managementGroupId Management Group id.
- * @param deploymentStackName Name of the deployment stack.
+ * @param managementGroupId The name of the management 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 export Template specific properties of the Deployment stack.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackTemplateDefinitionInner exportTemplateAtManagementGroup(String managementGroupId,
- String deploymentStackName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAtManagementGroup(String managementGroupId, Context context);
/**
- * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its acceptance to
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
* Azure Resource Manager.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 the Deployment stack validation result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DeploymentStackValidateResultInner>
- beginValidateStackAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ beginValidateStackAtManagementGroup(String managementGroupId, String deploymentStackName,
DeploymentStackInner deploymentStack);
/**
- * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its acceptance to
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
* Azure Resource Manager.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack The content of the action request.
* @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 the Deployment stack validation result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DeploymentStackValidateResultInner>
- beginValidateStackAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ beginValidateStackAtManagementGroup(String managementGroupId, String deploymentStackName,
DeploymentStackInner deploymentStack, Context context);
/**
- * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its acceptance to
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
* Azure Resource Manager.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Deployment stack validation result.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackValidateResultInner validateStackAtResourceGroup(String resourceGroupName,
+ DeploymentStackValidateResultInner validateStackAtManagementGroup(String managementGroupId,
String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its acceptance to
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
* Azure Resource Manager.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack The content of the action request.
* @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 Deployment stack validation result.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackValidateResultInner validateStackAtResourceGroup(String resourceGroupName,
+ DeploymentStackValidateResultInner validateStackAtManagementGroup(String managementGroupId,
String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
/**
- * Runs preflight validation on the Subscription scoped Deployment stack template to verify its acceptance to Azure
- * Resource Manager.
+ * Creates or updates a Deployment stack at the specified scope.
*
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 the Deployment stack validation result.
+ * @return the {@link SyncPoller} for polling of deployment stack object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackValidateResultInner>
- beginValidateStackAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack);
+ SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtManagementGroup(
+ String managementGroupId, String deploymentStackName, DeploymentStackInner deploymentStack);
/**
- * Runs preflight validation on the Subscription scoped Deployment stack template to verify its acceptance to Azure
- * Resource Manager.
+ * Creates or updates a Deployment stack at the specified scope.
*
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack Resource create parameters.
* @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 the Deployment stack validation result.
+ * @return the {@link SyncPoller} for polling of deployment stack object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackValidateResultInner>
- beginValidateStackAtSubscription(String deploymentStackName, DeploymentStackInner deploymentStack,
- Context context);
+ SyncPoller, DeploymentStackInner> beginCreateOrUpdateAtManagementGroup(
+ String managementGroupId, String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
/**
- * Runs preflight validation on the Subscription scoped Deployment stack template to verify its acceptance to Azure
- * Resource Manager.
+ * Creates or updates a Deployment stack at the specified scope.
*
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Deployment stack validation result.
+ * @return deployment stack object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackValidateResultInner validateStackAtSubscription(String deploymentStackName,
+ DeploymentStackInner createOrUpdateAtManagementGroup(String managementGroupId, String deploymentStackName,
DeploymentStackInner deploymentStack);
/**
- * Runs preflight validation on the Subscription scoped Deployment stack template to verify its acceptance to Azure
- * Resource Manager.
+ * Creates or updates a Deployment stack at the specified scope.
*
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param deploymentStack Resource create parameters.
* @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 Deployment stack validation result.
+ * @return deployment stack object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackValidateResultInner validateStackAtSubscription(String deploymentStackName,
+ DeploymentStackInner createOrUpdateAtManagementGroup(String managementGroupId, String deploymentStackName,
DeploymentStackInner deploymentStack, Context context);
/**
- * Runs preflight validation on the Management Group scoped Deployment stack template to verify its acceptance to
- * Azure Resource Manager.
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
*
- * @param managementGroupId Management Group id.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 the Deployment stack validation result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackValidateResultInner>
- beginValidateStackAtManagementGroup(String managementGroupId, String deploymentStackName,
- DeploymentStackInner deploymentStack);
+ SyncPoller, Void> beginDeleteAtManagementGroup(String managementGroupId,
+ String deploymentStackName);
/**
- * Runs preflight validation on the Management Group scoped Deployment stack template to verify its acceptance to
- * Azure Resource Manager.
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
*
- * @param managementGroupId Management Group id.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
+ * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
+ * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
+ * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
+ * correctly synchronized.
* @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 the Deployment stack validation result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentStackValidateResultInner>
- beginValidateStackAtManagementGroup(String managementGroupId, String deploymentStackName,
- DeploymentStackInner deploymentStack, Context context);
+ SyncPoller, Void> beginDeleteAtManagementGroup(String managementGroupId,
+ String deploymentStackName, DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
/**
- * Runs preflight validation on the Management Group scoped Deployment stack template to verify its acceptance to
- * Azure Resource Manager.
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
*
- * @param managementGroupId Management Group id.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Deployment stack validation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackValidateResultInner validateStackAtManagementGroup(String managementGroupId,
- String deploymentStackName, DeploymentStackInner deploymentStack);
+ void deleteAtManagementGroup(String managementGroupId, String deploymentStackName);
/**
- * Runs preflight validation on the Management Group scoped Deployment stack template to verify its acceptance to
- * Azure Resource Manager.
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
*
- * @param managementGroupId Management Group id.
+ * @param managementGroupId The name of the management group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack to validate.
+ * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
+ * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
+ * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
+ * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
+ * correctly synchronized.
* @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 Deployment stack validation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentStackValidateResultInner validateStackAtManagementGroup(String managementGroupId,
- String deploymentStackName, DeploymentStackInner deploymentStack, Context context);
+ void deleteAtManagementGroup(String managementGroupId, String deploymentStackName,
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
+
+ /**
+ * Exports the template used to create the Deployment stack at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @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 export Template specific properties of the Deployment stack along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response exportTemplateAtManagementGroupWithResponse(
+ String managementGroupId, String deploymentStackName, Context context);
+
+ /**
+ * Exports the template used to create the Deployment stack at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return export Template specific properties of the Deployment stack.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStackTemplateDefinitionInner exportTemplateAtManagementGroup(String managementGroupId,
+ String deploymentStackName);
}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksManagementClient.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksManagementClient.java
index 35f36649ca74..bb03a2a458be 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksManagementClient.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.fluent;
@@ -12,26 +12,26 @@
*/
public interface DeploymentStacksManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -46,6 +46,27 @@ public interface DeploymentStacksManagementClient {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the DeploymentStacksWhatIfResultsAtResourceGroupsClient object to access its operations.
+ *
+ * @return the DeploymentStacksWhatIfResultsAtResourceGroupsClient object.
+ */
+ DeploymentStacksWhatIfResultsAtResourceGroupsClient getDeploymentStacksWhatIfResultsAtResourceGroups();
+
+ /**
+ * Gets the DeploymentStacksWhatIfResultsAtSubscriptionsClient object to access its operations.
+ *
+ * @return the DeploymentStacksWhatIfResultsAtSubscriptionsClient object.
+ */
+ DeploymentStacksWhatIfResultsAtSubscriptionsClient getDeploymentStacksWhatIfResultsAtSubscriptions();
+
+ /**
+ * Gets the DeploymentStacksWhatIfResultsAtManagementGroupsClient object to access its operations.
+ *
+ * @return the DeploymentStacksWhatIfResultsAtManagementGroupsClient object.
+ */
+ DeploymentStacksWhatIfResultsAtManagementGroupsClient getDeploymentStacksWhatIfResultsAtManagementGroups();
+
/**
* Gets the DeploymentStacksClient object to access its operations.
*
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtManagementGroupsClient.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtManagementGroupsClient.java
new file mode 100644
index 000000000000..c32090438f74
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtManagementGroupsClient.java
@@ -0,0 +1,237 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resources.deploymentstacks.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStacksWhatIfResultInner;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksResourcesWithoutDeleteSupportEnum;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * DeploymentStacksWhatIfResultsAtManagementGroupsClient.
+ */
+public interface DeploymentStacksWhatIfResultsAtManagementGroupsClient {
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @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 Deployment stack with the given name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String managementGroupId,
+ String deploymentStacksWhatIfResultName, Context context);
+
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Deployment stack with the given name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner get(String managementGroupId, String deploymentStacksWhatIfResultName);
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStacksWhatIfResult list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String managementGroupId);
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStacksWhatIfResult list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String managementGroupId, Context context);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner> beginCreateOrUpdate(
+ String managementGroupId, String deploymentStacksWhatIfResultName, DeploymentStacksWhatIfResultInner resource);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner> beginCreateOrUpdate(
+ String managementGroupId, String deploymentStacksWhatIfResultName, DeploymentStacksWhatIfResultInner resource,
+ Context context);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner createOrUpdate(String managementGroupId, String deploymentStacksWhatIfResultName,
+ DeploymentStacksWhatIfResultInner resource);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner createOrUpdate(String managementGroupId, String deploymentStacksWhatIfResultName,
+ DeploymentStacksWhatIfResultInner resource, Context context);
+
+ /**
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
+ * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
+ * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
+ * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
+ * correctly synchronized.
+ * @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 managementGroupId, String deploymentStacksWhatIfResultName,
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
+
+ /**
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 managementGroupId, String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, DeploymentStacksWhatIfResultInner>
+ beginWhatIf(String managementGroupId, String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner>
+ beginWhatIf(String managementGroupId, String deploymentStacksWhatIfResultName, Context context);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner whatIf(String managementGroupId, String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param managementGroupId The name of the management group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner whatIf(String managementGroupId, String deploymentStacksWhatIfResultName,
+ Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtResourceGroupsClient.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtResourceGroupsClient.java
new file mode 100644
index 000000000000..dc24f0c7a404
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtResourceGroupsClient.java
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resources.deploymentstacks.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStacksWhatIfResultInner;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksResourcesWithoutDeleteSupportEnum;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * DeploymentStacksWhatIfResultsAtResourceGroupsClient.
+ */
+public interface DeploymentStacksWhatIfResultsAtResourceGroupsClient {
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @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 Deployment stack with the given name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String deploymentStacksWhatIfResultName, Context context);
+
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Deployment stack with the given name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner getByResourceGroup(String resourceGroupName,
+ String deploymentStacksWhatIfResultName);
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStacksWhatIfResult list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStacksWhatIfResult list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentStacksWhatIfResultName, DeploymentStacksWhatIfResultInner resource);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner> beginCreateOrUpdate(
+ String resourceGroupName, String deploymentStacksWhatIfResultName, DeploymentStacksWhatIfResultInner resource,
+ Context context);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner createOrUpdate(String resourceGroupName, String deploymentStacksWhatIfResultName,
+ DeploymentStacksWhatIfResultInner resource);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner createOrUpdate(String resourceGroupName, String deploymentStacksWhatIfResultName,
+ DeploymentStacksWhatIfResultInner resource, Context context);
+
+ /**
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
+ * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
+ * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
+ * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
+ * correctly synchronized.
+ * @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 deploymentStacksWhatIfResultName,
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
+
+ /**
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, DeploymentStacksWhatIfResultInner>
+ beginWhatIf(String resourceGroupName, String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner>
+ beginWhatIf(String resourceGroupName, String deploymentStacksWhatIfResultName, Context context);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner whatIf(String resourceGroupName, String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner whatIf(String resourceGroupName, String deploymentStacksWhatIfResultName,
+ Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtSubscriptionsClient.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtSubscriptionsClient.java
new file mode 100644
index 000000000000..2df83d046f78
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/DeploymentStacksWhatIfResultsAtSubscriptionsClient.java
@@ -0,0 +1,220 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resources.deploymentstacks.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStacksWhatIfResultInner;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksResourcesWithoutDeleteSupportEnum;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * DeploymentStacksWhatIfResultsAtSubscriptionsClient.
+ */
+public interface DeploymentStacksWhatIfResultsAtSubscriptionsClient {
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @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 Deployment stack with the given name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String deploymentStacksWhatIfResultName,
+ Context context);
+
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Deployment stack with the given name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner get(String deploymentStacksWhatIfResultName);
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStacksWhatIfResult list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStacksWhatIfResult list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner>
+ beginCreateOrUpdate(String deploymentStacksWhatIfResultName, DeploymentStacksWhatIfResultInner resource);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner> beginCreateOrUpdate(
+ String deploymentStacksWhatIfResultName, DeploymentStacksWhatIfResultInner resource, Context context);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner createOrUpdate(String deploymentStacksWhatIfResultName,
+ DeploymentStacksWhatIfResultInner resource);
+
+ /**
+ * Creates or updates a Deployment stack at the specified scope.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param resource Resource create parameters.
+ * @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 deployment stack object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner createOrUpdate(String deploymentStacksWhatIfResultName,
+ DeploymentStacksWhatIfResultInner resource, Context context);
+
+ /**
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param unmanageActionResources Flag to indicate delete rather than detach for unmanaged resources.
+ * @param unmanageActionResourceGroups Flag to indicate delete rather than detach for unmanaged resource groups.
+ * @param unmanageActionManagementGroups Flag to indicate delete rather than detach for unmanaged management groups.
+ * @param unmanageActionResourcesWithoutDeleteSupport Some resources do not support deletion. This flag will denote
+ * how the stack should handle those resources.
+ * @param bypassStackOutOfSyncError Flag to bypass service errors that indicate the stack resource list is not
+ * correctly synchronized.
+ * @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 deploymentStacksWhatIfResultName,
+ DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ Boolean bypassStackOutOfSyncError, Context context);
+
+ /**
+ * Deletes a Deployment stack by name at the specified scope. When operation completes, status code 200 returned
+ * without content.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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, DeploymentStacksWhatIfResultInner>
+ beginWhatIf(String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DeploymentStacksWhatIfResultInner>
+ beginWhatIf(String deploymentStacksWhatIfResultName, Context context);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner whatIf(String deploymentStacksWhatIfResultName);
+
+ /**
+ * Returns property-level changes that will be made by the deployment if executed.
+ *
+ * @param deploymentStacksWhatIfResultName Name of the deployment stack what-if result.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentStacksWhatIfResultInner whatIf(String deploymentStacksWhatIfResultName, Context context);
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackInner.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackInner.java
index 6963cd9b4a8d..ea83e23d0f44 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackInner.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackInner.java
@@ -1,15 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.resources.deploymentstacks.models.AzureResourceBase;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStackProperties;
import java.io.IOException;
import java.util.Map;
@@ -18,22 +18,22 @@
* Deployment stack object.
*/
@Fluent
-public final class DeploymentStackInner extends AzureResourceBase {
+public final class DeploymentStackInner extends ProxyResource {
/*
- * The location of the Deployment stack. It cannot be changed after creation. It must be one of the supported Azure
- * locations.
+ * Deployment stack properties.
*/
- private String location;
+ private DeploymentStackProperties properties;
/*
- * Deployment stack resource tags.
+ * The geo-location where the resource lives. Required for subscription and management group scoped stacks. The
+ * location is inherited from the resource group for resource group scoped stacks.
*/
- private Map tags;
+ private String location;
/*
- * Deployment stack properties.
+ * Resource tags.
*/
- private DeploymentStackProperties properties;
+ private Map tags;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -62,64 +62,64 @@ public DeploymentStackInner() {
}
/**
- * Get the location property: The location of the Deployment stack. It cannot be changed after creation. It must be
- * one of the supported Azure locations.
+ * Get the properties property: Deployment stack properties.
*
- * @return the location value.
+ * @return the properties value.
*/
- public String location() {
- return this.location;
+ public DeploymentStackProperties properties() {
+ return this.properties;
}
/**
- * Set the location property: The location of the Deployment stack. It cannot be changed after creation. It must be
- * one of the supported Azure locations.
+ * Set the properties property: Deployment stack properties.
*
- * @param location the location value to set.
+ * @param properties the properties value to set.
* @return the DeploymentStackInner object itself.
*/
- public DeploymentStackInner withLocation(String location) {
- this.location = location;
+ public DeploymentStackInner withProperties(DeploymentStackProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the tags property: Deployment stack resource tags.
+ * Get the location property: The geo-location where the resource lives. Required for subscription and management
+ * group scoped stacks. The location is inherited from the resource group for resource group scoped stacks.
*
- * @return the tags value.
+ * @return the location value.
*/
- public Map tags() {
- return this.tags;
+ public String location() {
+ return this.location;
}
/**
- * Set the tags property: Deployment stack resource tags.
+ * Set the location property: The geo-location where the resource lives. Required for subscription and management
+ * group scoped stacks. The location is inherited from the resource group for resource group scoped stacks.
*
- * @param tags the tags value to set.
+ * @param location the location value to set.
* @return the DeploymentStackInner object itself.
*/
- public DeploymentStackInner withTags(Map tags) {
- this.tags = tags;
+ public DeploymentStackInner withLocation(String location) {
+ this.location = location;
return this;
}
/**
- * Get the properties property: Deployment stack properties.
+ * Get the tags property: Resource tags.
*
- * @return the properties value.
+ * @return the tags value.
*/
- public DeploymentStackProperties properties() {
- return this.properties;
+ public Map tags() {
+ return this.tags;
}
/**
- * Set the properties property: Deployment stack properties.
+ * Set the tags property: Resource tags.
*
- * @param properties the properties value to set.
+ * @param tags the tags value to set.
* @return the DeploymentStackInner object itself.
*/
- public DeploymentStackInner withProperties(DeploymentStackProperties properties) {
- this.properties = properties;
+ public DeploymentStackInner withTags(Map tags) {
+ this.tags = tags;
return this;
}
@@ -128,7 +128,6 @@ public DeploymentStackInner withProperties(DeploymentStackProperties properties)
*
* @return the systemData value.
*/
- @Override
public SystemData systemData() {
return this.systemData;
}
@@ -163,27 +162,15 @@ public String id() {
return this.id;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
jsonWriter.writeStringField("location", this.location);
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
return jsonWriter.writeEndObject();
}
@@ -209,15 +196,15 @@ public static DeploymentStackInner fromJson(JsonReader jsonReader) throws IOExce
deserializedDeploymentStackInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedDeploymentStackInner.type = reader.getString();
- } else if ("systemData".equals(fieldName)) {
- deserializedDeploymentStackInner.systemData = SystemData.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedDeploymentStackInner.properties = DeploymentStackProperties.fromJson(reader);
} else if ("location".equals(fieldName)) {
deserializedDeploymentStackInner.location = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedDeploymentStackInner.tags = tags;
- } else if ("properties".equals(fieldName)) {
- deserializedDeploymentStackInner.properties = DeploymentStackProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDeploymentStackInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackTemplateDefinitionInner.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackTemplateDefinitionInner.java
index 88ffb4c6fc2a..14ef5fff9984 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackTemplateDefinitionInner.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackTemplateDefinitionInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.fluent.models;
@@ -57,17 +57,6 @@ public DeploymentStacksTemplateLink templateLink() {
return this.templateLink;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (templateLink() != null) {
- templateLink().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackValidateResultInner.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackValidateResultInner.java
index c61c7729af99..6ce3cc1886ce 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackValidateResultInner.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStackValidateResultInner.java
@@ -1,98 +1,85 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.SystemData;
import com.azure.core.management.exception.ManagementError;
import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.resources.deploymentstacks.models.AzureResourceBase;
import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStackValidateProperties;
import java.io.IOException;
/**
* The Deployment stack validation result.
*/
-@Fluent
-public final class DeploymentStackValidateResultInner extends AzureResourceBase {
+@Immutable
+public final class DeploymentStackValidateResultInner implements JsonSerializable {
/*
- * The validation result details.
+ * String Id used to locate any resource on Azure.
*/
- private DeploymentStackValidateProperties properties;
+ private String id;
/*
- * The error detail.
+ * Name of this resource.
*/
- private ManagementError error;
+ private String name;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Type of this resource.
*/
- private SystemData systemData;
+ private String type;
/*
- * The type of the resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- private String type;
+ private SystemData systemData;
/*
- * The name of the resource.
+ * The error detail.
*/
- private String name;
+ private ManagementError error;
/*
- * Fully qualified resource Id for the resource.
+ * The validation result details.
*/
- private String id;
+ private DeploymentStackValidateProperties properties;
/**
* Creates an instance of DeploymentStackValidateResultInner class.
*/
- public DeploymentStackValidateResultInner() {
+ private DeploymentStackValidateResultInner() {
}
/**
- * Get the properties property: The validation result details.
+ * Get the id property: String Id used to locate any resource on Azure.
*
- * @return the properties value.
+ * @return the id value.
*/
- public DeploymentStackValidateProperties properties() {
- return this.properties;
+ public String id() {
+ return this.id;
}
/**
- * Set the properties property: The validation result details.
+ * Get the name property: Name of this resource.
*
- * @param properties the properties value to set.
- * @return the DeploymentStackValidateResultInner object itself.
- */
- public DeploymentStackValidateResultInner withProperties(DeploymentStackValidateProperties properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Get the error property: The error detail.
- *
- * @return the error value.
+ * @return the name value.
*/
- public ManagementError error() {
- return this.error;
+ public String name() {
+ return this.name;
}
/**
- * Set the error property: The error detail.
+ * Get the type property: Type of this resource.
*
- * @param error the error value to set.
- * @return the DeploymentStackValidateResultInner object itself.
+ * @return the type value.
*/
- public DeploymentStackValidateResultInner withError(ManagementError error) {
- this.error = error;
- return this;
+ public String type() {
+ return this.type;
}
/**
@@ -100,51 +87,26 @@ public DeploymentStackValidateResultInner withError(ManagementError error) {
*
* @return the systemData value.
*/
- @Override
public SystemData systemData() {
return this.systemData;
}
/**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the error property: The error detail.
*
- * @return the id value.
+ * @return the error value.
*/
- @Override
- public String id() {
- return this.id;
+ public ManagementError error() {
+ return this.error;
}
/**
- * Validates the instance.
+ * Get the properties property: The validation result details.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @return the properties value.
*/
- @Override
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
+ public DeploymentStackValidateProperties properties() {
+ return this.properties;
}
/**
@@ -153,8 +115,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.properties);
jsonWriter.writeJsonField("error", this.error);
+ jsonWriter.writeJsonField("properties", this.properties);
return jsonWriter.writeEndObject();
}
@@ -164,7 +126,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @param jsonReader The JsonReader being read.
* @return An instance of DeploymentStackValidateResultInner if the JsonReader was pointing to an instance of it, or
* null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the DeploymentStackValidateResultInner.
*/
public static DeploymentStackValidateResultInner fromJson(JsonReader jsonReader) throws IOException {
@@ -183,11 +144,11 @@ public static DeploymentStackValidateResultInner fromJson(JsonReader jsonReader)
deserializedDeploymentStackValidateResultInner.type = reader.getString();
} else if ("systemData".equals(fieldName)) {
deserializedDeploymentStackValidateResultInner.systemData = SystemData.fromJson(reader);
+ } else if ("error".equals(fieldName)) {
+ deserializedDeploymentStackValidateResultInner.error = ManagementError.fromJson(reader);
} else if ("properties".equals(fieldName)) {
deserializedDeploymentStackValidateResultInner.properties
= DeploymentStackValidateProperties.fromJson(reader);
- } else if ("error".equals(fieldName)) {
- deserializedDeploymentStackValidateResultInner.error = ManagementError.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStacksWhatIfResultInner.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStacksWhatIfResultInner.java
new file mode 100644
index 000000000000..0eeb15c0a51f
--- /dev/null
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/DeploymentStacksWhatIfResultInner.java
@@ -0,0 +1,218 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resources.deploymentstacks.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksWhatIfResultProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Deployment stack object.
+ */
+@Fluent
+public final class DeploymentStacksWhatIfResultInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private DeploymentStacksWhatIfResultProperties properties;
+
+ /*
+ * The geo-location where the resource lives. Required for subscription and management group scoped stacks. The
+ * location is inherited from the resource group for resource group scoped stacks.
+ */
+ private String location;
+
+ /*
+ * Resource tags.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of DeploymentStacksWhatIfResultInner class.
+ */
+ public DeploymentStacksWhatIfResultInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public DeploymentStacksWhatIfResultProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the DeploymentStacksWhatIfResultInner object itself.
+ */
+ public DeploymentStacksWhatIfResultInner withProperties(DeploymentStacksWhatIfResultProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives. Required for subscription and management
+ * group scoped stacks. The location is inherited from the resource group for resource group scoped stacks.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The geo-location where the resource lives. Required for subscription and management
+ * group scoped stacks. The location is inherited from the resource group for resource group scoped stacks.
+ *
+ * @param location the location value to set.
+ * @return the DeploymentStacksWhatIfResultInner object itself.
+ */
+ public DeploymentStacksWhatIfResultInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the DeploymentStacksWhatIfResultInner object itself.
+ */
+ public DeploymentStacksWhatIfResultInner withTags(Map tags) {
+ this.tags = tags;
+ 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;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeploymentStacksWhatIfResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeploymentStacksWhatIfResultInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DeploymentStacksWhatIfResultInner.
+ */
+ public static DeploymentStacksWhatIfResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeploymentStacksWhatIfResultInner deserializedDeploymentStacksWhatIfResultInner
+ = new DeploymentStacksWhatIfResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDeploymentStacksWhatIfResultInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDeploymentStacksWhatIfResultInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDeploymentStacksWhatIfResultInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDeploymentStacksWhatIfResultInner.properties
+ = DeploymentStacksWhatIfResultProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedDeploymentStacksWhatIfResultInner.location = reader.getString();
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedDeploymentStacksWhatIfResultInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDeploymentStacksWhatIfResultInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeploymentStacksWhatIfResultInner;
+ });
+ }
+}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/package-info.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/package-info.java
index 2ccaced8cf12..e8a9d1bc4b49 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/package-info.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/models/package-info.java
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the inner data models for DeploymentStacksManagementClient.
- * DeploymentStacks Client.
+ * The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource
+ * Manager.
*/
package com.azure.resourcemanager.resources.deploymentstacks.fluent.models;
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/package-info.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/package-info.java
index 3ee1735c3b97..29932bf864c2 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/package-info.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/fluent/package-info.java
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the service clients for DeploymentStacksManagementClient.
- * DeploymentStacks Client.
+ * The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource
+ * Manager.
*/
package com.azure.resourcemanager.resources.deploymentstacks.fluent;
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackImpl.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackImpl.java
index 528d85a36128..8add308e0ba0 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.implementation;
@@ -33,8 +33,8 @@ public String type() {
return this.innerModel().type();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
+ public DeploymentStackProperties properties() {
+ return this.innerModel().properties();
}
public String location() {
@@ -50,8 +50,8 @@ public Map tags() {
}
}
- public DeploymentStackProperties properties() {
- return this.innerModel().properties();
+ public SystemData systemData() {
+ return this.innerModel().systemData();
}
public Region region() {
@@ -146,15 +146,6 @@ public DeploymentStack refresh(Context context) {
return this;
}
- public Response exportTemplateAtResourceGroupWithResponse(Context context) {
- return serviceManager.deploymentStacks()
- .exportTemplateAtResourceGroupWithResponse(resourceGroupName, deploymentStackName, context);
- }
-
- public DeploymentStackTemplateDefinition exportTemplateAtResourceGroup() {
- return serviceManager.deploymentStacks().exportTemplateAtResourceGroup(resourceGroupName, deploymentStackName);
- }
-
public DeploymentStackValidateResult validateStackAtResourceGroup(DeploymentStackInner deploymentStack) {
return serviceManager.deploymentStacks()
.validateStackAtResourceGroup(resourceGroupName, deploymentStackName, deploymentStack);
@@ -166,6 +157,15 @@ public DeploymentStackValidateResult validateStackAtResourceGroup(DeploymentStac
.validateStackAtResourceGroup(resourceGroupName, deploymentStackName, deploymentStack, context);
}
+ public Response exportTemplateAtResourceGroupWithResponse(Context context) {
+ return serviceManager.deploymentStacks()
+ .exportTemplateAtResourceGroupWithResponse(resourceGroupName, deploymentStackName, context);
+ }
+
+ public DeploymentStackTemplateDefinition exportTemplateAtResourceGroup() {
+ return serviceManager.deploymentStacks().exportTemplateAtResourceGroup(resourceGroupName, deploymentStackName);
+ }
+
public DeploymentStackImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackTemplateDefinitionImpl.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackTemplateDefinitionImpl.java
index 5a3f06c3cb57..dfc5f84bdf38 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackTemplateDefinitionImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackTemplateDefinitionImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.implementation;
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackValidateResultImpl.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackValidateResultImpl.java
index d19cbdfb11cb..fa2d81167261 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackValidateResultImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStackValidateResultImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.implementation;
@@ -37,14 +37,14 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
- public DeploymentStackValidateProperties properties() {
- return this.innerModel().properties();
- }
-
public ManagementError error() {
return this.innerModel().error();
}
+ public DeploymentStackValidateProperties properties() {
+ return this.innerModel().properties();
+ }
+
public DeploymentStackValidateResultInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStacksClientImpl.java b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStacksClientImpl.java
index 2de3fa1c098e..31e702a0cea7 100644
--- a/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStacksClientImpl.java
+++ b/sdk/resources/azure-resourcemanager-resources-deploymentstacks/src/main/java/com/azure/resourcemanager/resources/deploymentstacks/implementation/DeploymentStacksClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.resources.deploymentstacks.implementation;
@@ -31,17 +31,15 @@
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.resources.deploymentstacks.fluent.DeploymentStacksClient;
import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStackInner;
import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStackTemplateDefinitionInner;
import com.azure.resourcemanager.resources.deploymentstacks.fluent.models.DeploymentStackValidateResultInner;
-import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStackListResult;
-import com.azure.resourcemanager.resources.deploymentstacks.models.UnmanageActionManagementGroupMode;
-import com.azure.resourcemanager.resources.deploymentstacks.models.UnmanageActionResourceGroupMode;
-import com.azure.resourcemanager.resources.deploymentstacks.models.UnmanageActionResourceMode;
+import com.azure.resourcemanager.resources.deploymentstacks.implementation.models.DeploymentStackListResult;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksDeleteDetachEnum;
+import com.azure.resourcemanager.resources.deploymentstacks.models.DeploymentStacksResourcesWithoutDeleteSupportEnum;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -75,373 +73,367 @@ public final class DeploymentStacksClientImpl implements DeploymentStacksClient
* The interface defining all the services for DeploymentStacksManagementClientDeploymentStacks to be used by the
* proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "DeploymentStacksManagementClientDeploymentStacks")
public interface DeploymentStacksService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listByResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks")
- @ExpectedResponses({ 200 })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
+ @ExpectedResponses({ 200, 202, 400 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listAtManagementGroup(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono>> validateStackAtResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks")
- @ExpectedResponses({ 200 })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
+ @ExpectedResponses({ 200, 202, 400 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listAtManagementGroupSync(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response validateStackAtResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdateAtResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> createOrUpdateAtResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createOrUpdateAtResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response createOrUpdateAtResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response getByResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("deploymentStackName") String deploymentStackName,
- @QueryParam("unmanageAction.Resources") UnmanageActionResourceMode unmanageActionResources,
- @QueryParam("unmanageAction.ResourceGroups") UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- @QueryParam("unmanageAction.ManagementGroups") UnmanageActionManagementGroupMode unmanageActionManagementGroups,
- @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("unmanageAction.Resources") DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ @QueryParam("unmanageAction.ResourceGroups") DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ @QueryParam("unmanageAction.ManagementGroups") DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ @QueryParam("unmanageAction.ResourcesWithoutDeleteSupport") DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("deploymentStackName") String deploymentStackName,
- @QueryParam("unmanageAction.Resources") UnmanageActionResourceMode unmanageActionResources,
- @QueryParam("unmanageAction.ResourceGroups") UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- @QueryParam("unmanageAction.ManagementGroups") UnmanageActionManagementGroupMode unmanageActionManagementGroups,
- @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("unmanageAction.Resources") DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ @QueryParam("unmanageAction.ResourceGroups") DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ @QueryParam("unmanageAction.ManagementGroups") DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ @QueryParam("unmanageAction.ResourcesWithoutDeleteSupport") DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError, Context context);
@Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200, 201 })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdateAtSubscription(@HostParam("$host") String endpoint,
+ Mono> exportTemplateAtResourceGroup(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200, 201 })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createOrUpdateAtSubscriptionSync(@HostParam("$host") String endpoint,
+ Response exportTemplateAtResourceGroupSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getAtSubscription(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> getAtSubscription(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getAtSubscriptionSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response getAtSubscriptionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> deleteAtSubscription(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName,
- @QueryParam("unmanageAction.Resources") UnmanageActionResourceMode unmanageActionResources,
- @QueryParam("unmanageAction.ResourceGroups") UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- @QueryParam("unmanageAction.ManagementGroups") UnmanageActionManagementGroupMode unmanageActionManagementGroups,
- @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteAtSubscriptionSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName,
- @QueryParam("unmanageAction.Resources") UnmanageActionResourceMode unmanageActionResources,
- @QueryParam("unmanageAction.ResourceGroups") UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- @QueryParam("unmanageAction.ManagementGroups") UnmanageActionManagementGroupMode unmanageActionManagementGroups,
- @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
- @Put("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200, 201 })
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
+ @ExpectedResponses({ 200, 202, 400 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdateAtManagementGroup(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ Mono>> validateStackAtSubscription(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Put("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200, 201 })
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
+ @ExpectedResponses({ 200, 202, 400 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createOrUpdateAtManagementGroupSync(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ Response validateStackAtSubscriptionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200 })
+ @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getAtManagementGroup(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono>> createOrUpdateAtSubscription(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
- @ExpectedResponses({ 200 })
+ @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getAtManagementGroupSync(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response createOrUpdateAtSubscriptionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> deleteAtManagementGroup(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId,
+ Mono>> deleteAtSubscription(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("deploymentStackName") String deploymentStackName,
- @QueryParam("unmanageAction.Resources") UnmanageActionResourceMode unmanageActionResources,
- @QueryParam("unmanageAction.ResourceGroups") UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- @QueryParam("unmanageAction.ManagementGroups") UnmanageActionManagementGroupMode unmanageActionManagementGroups,
- @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("unmanageAction.Resources") DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ @QueryParam("unmanageAction.ResourceGroups") DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ @QueryParam("unmanageAction.ManagementGroups") DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ @QueryParam("unmanageAction.ResourcesWithoutDeleteSupport") DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError, Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteAtManagementGroupSync(@HostParam("$host") String endpoint,
- @PathParam("managementGroupId") String managementGroupId,
+ Response deleteAtSubscriptionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("deploymentStackName") String deploymentStackName,
- @QueryParam("unmanageAction.Resources") UnmanageActionResourceMode unmanageActionResources,
- @QueryParam("unmanageAction.ResourceGroups") UnmanageActionResourceGroupMode unmanageActionResourceGroups,
- @QueryParam("unmanageAction.ManagementGroups") UnmanageActionManagementGroupMode unmanageActionManagementGroups,
- @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("unmanageAction.Resources") DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ @QueryParam("unmanageAction.ResourceGroups") DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ @QueryParam("unmanageAction.ManagementGroups") DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ @QueryParam("unmanageAction.ResourcesWithoutDeleteSupport") DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError, Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> exportTemplateAtResourceGroup(
- @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> exportTemplateAtSubscription(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response exportTemplateAtResourceGroupSync(
- @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response exportTemplateAtSubscriptionSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> exportTemplateAtSubscription(
- @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> getAtManagementGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response exportTemplateAtSubscriptionSync(
- @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
+ Response getAtManagementGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> exportTemplateAtManagementGroup(
- @HostParam("$host") String endpoint, @PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
+ Mono> listAtManagementGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response exportTemplateAtManagementGroupSync(
- @HostParam("$host") String endpoint, @PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
+ Response listAtManagementGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
@HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
+ @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
@ExpectedResponses({ 200, 202, 400 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> validateStackAtResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ Mono>> validateStackAtManagementGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
+ @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
@ExpectedResponses({ 200, 202, 400 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response validateStackAtResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ Response validateStackAtManagementGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
- @ExpectedResponses({ 200, 202, 400 })
+ @Put("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> validateStackAtSubscription(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ Mono>> createOrUpdateAtManagementGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
- @ExpectedResponses({ 200, 202, 400 })
+ @Put("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response validateStackAtSubscriptionSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
- Context context);
+ Response createOrUpdateAtManagementGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DeploymentStackInner deploymentStack, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> deleteAtManagementGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @QueryParam("unmanageAction.Resources") DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ @QueryParam("unmanageAction.ResourceGroups") DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ @QueryParam("unmanageAction.ManagementGroups") DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ @QueryParam("unmanageAction.ResourcesWithoutDeleteSupport") DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteAtManagementGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId,
+ @PathParam("deploymentStackName") String deploymentStackName,
+ @QueryParam("unmanageAction.Resources") DeploymentStacksDeleteDetachEnum unmanageActionResources,
+ @QueryParam("unmanageAction.ResourceGroups") DeploymentStacksDeleteDetachEnum unmanageActionResourceGroups,
+ @QueryParam("unmanageAction.ManagementGroups") DeploymentStacksDeleteDetachEnum unmanageActionManagementGroups,
+ @QueryParam("unmanageAction.ResourcesWithoutDeleteSupport") DeploymentStacksResourcesWithoutDeleteSupportEnum unmanageActionResourcesWithoutDeleteSupport,
+ @QueryParam("bypassStackOutOfSyncError") Boolean bypassStackOutOfSyncError, Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
- @ExpectedResponses({ 200, 202, 400 })
+ @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> validateStackAtManagementGroup(@HostParam("$host") String endpoint,
+ Mono> exportTemplateAtManagementGroup(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate")
- @ExpectedResponses({ 200, 202, 400 })
+ @Post("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response validateStackAtManagementGroupSync(@HostParam("$host") String endpoint,
+ Response exportTemplateAtManagementGroupSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("managementGroupId") String managementGroupId,
- @PathParam("deploymentStackName") String deploymentStackName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") DeploymentStackInner deploymentStack, @HeaderParam("Accept") String accept,
+ @PathParam("deploymentStackName") String deploymentStackName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@@ -449,7 +441,7 @@ Response validateStackAtManagementGroupSync(@HostParam("$host") Stri
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listAtResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -457,7 +449,7 @@ Mono> listAtResourceGroupNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listAtResourceGroupNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -465,7 +457,7 @@ Response listAtResourceGroupNextSync(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listAtSubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -473,7 +465,7 @@ Mono> listAtSubscriptionNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listAtSubscriptionNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -481,7 +473,7 @@ Response listAtSubscriptionNextSync(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listAtManagementGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -489,50 +481,110 @@ Mono> listAtManagementGroupNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listAtManagementGroupNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Gets the Deployment stack with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Deployment stack with the given name along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String deploymentStackName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the Deployment stack with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return the Deployment stack with the given name on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String deploymentStackName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, deploymentStackName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @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 Deployment stack with the given name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String deploymentStackName, Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, accept, context);
+ }
+
+ /**
+ * Gets the Deployment stack with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Deployment stack with the given name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentStackInner getByResourceGroup(String resourceGroupName, String deploymentStackName) {
+ return getByResourceGroupWithResponse(resourceGroupName, deploymentStackName, Context.NONE).getValue();
+ }
+
+ /**
+ * Lists Deployment stacks at the specified scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DeploymentStack list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Lists Deployment stacks at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedFlux}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -541,79 +593,51 @@ private PagedFlux listByResourceGroupAsync(String resource
}
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Lists Deployment stacks at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse}.
+ * @return the response of a DeploymentStack list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, Context.NONE);
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Lists Deployment stacks at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse}.
+ * @return the response of a DeploymentStack list operation along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context);
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Lists Deployment stacks at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -622,14 +646,14 @@ public PagedIterable listByResourceGroup(String resourceGr
}
/**
- * Lists all the Deployment stacks within the specified Resource Group.
+ * Lists Deployment stacks at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the response of a DeploymentStack list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -638,261 +662,206 @@ public PagedIterable listByResourceGroup(String resourceGr
}
/**
- * Lists all the Deployment stacks within the specified Subscription.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync() {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Mono>> validateStackAtResourceGroupWithResponseAsync(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack) {
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.validateStackAtResourceGroup(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, deploymentStackName,
+ contentType, accept, deploymentStack, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Lists all the Deployment stacks within the specified Subscription.
- *
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- return new PagedFlux<>(() -> listSinglePageAsync(),
- nextLink -> listAtSubscriptionNextSinglePageAsync(nextLink));
- }
-
- /**
- * Lists all the Deployment stacks within the specified Subscription.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listSinglePage() {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Response validateStackAtResourceGroupWithResponse(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack) {
+ final String contentType = "application/json";
final String accept = "application/json";
- Response res = service.listSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), this.client.getApiVersion(), accept, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
+ return service.validateStackAtResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, contentType, accept,
+ deploymentStack, Context.NONE);
}
/**
- * Lists all the Deployment stacks within the specified Subscription.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @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 list of Deployment stacks along with {@link PagedResponse}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listSinglePage(Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Response validateStackAtResourceGroupWithResponse(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack, Context context) {
+ final String contentType = "application/json";
final String accept = "application/json";
- Response res = service.listSync(this.client.getEndpoint(),
- this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
-
- /**
- * Lists all the Deployment stacks within the specified Subscription.
- *
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list() {
- return new PagedIterable<>(() -> listSinglePage(), nextLink -> listAtSubscriptionNextSinglePage(nextLink));
+ return service.validateStackAtResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, contentType, accept,
+ deploymentStack, context);
}
/**
- * Lists all the Deployment stacks within the specified Subscription.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(Context context) {
- return new PagedIterable<>(() -> listSinglePage(context),
- nextLink -> listAtSubscriptionNextSinglePage(nextLink, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, DeploymentStackValidateResultInner>
+ beginValidateStackAtResourceGroupAsync(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack) {
+ Mono>> mono
+ = validateStackAtResourceGroupWithResponseAsync(resourceGroupName, deploymentStackName, deploymentStack);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), DeploymentStackValidateResultInner.class,
+ DeploymentStackValidateResultInner.class, this.client.getContext());
}
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAtManagementGroupSinglePageAsync(String managementGroupId) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (managementGroupId == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listAtManagementGroup(this.client.getEndpoint(), managementGroupId,
- this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DeploymentStackValidateResultInner>
+ beginValidateStackAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack) {
+ Response response
+ = validateStackAtResourceGroupWithResponse(resourceGroupName, deploymentStackName, deploymentStack);
+ return this.client.getLroResult(
+ response, DeploymentStackValidateResultInner.class, DeploymentStackValidateResultInner.class, Context.NONE);
}
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
+ * @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 list of Deployment stacks as paginated response with {@link PagedFlux}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAtManagementGroupAsync(String managementGroupId) {
- return new PagedFlux<>(() -> listAtManagementGroupSinglePageAsync(managementGroupId),
- nextLink -> listAtManagementGroupNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, DeploymentStackValidateResultInner>
+ beginValidateStackAtResourceGroup(String resourceGroupName, String deploymentStackName,
+ DeploymentStackInner deploymentStack, Context context) {
+ Response response = validateStackAtResourceGroupWithResponse(resourceGroupName, deploymentStackName,
+ deploymentStack, context);
+ return this.client.getLroResult(
+ response, DeploymentStackValidateResultInner.class, DeploymentStackValidateResultInner.class, context);
}
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listAtManagementGroupSinglePage(String managementGroupId) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (managementGroupId == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
- }
- final String accept = "application/json";
- Response res = service.listAtManagementGroupSync(this.client.getEndpoint(),
- managementGroupId, this.client.getApiVersion(), accept, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
+ private Mono validateStackAtResourceGroupAsync(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack) {
+ return beginValidateStackAtResourceGroupAsync(resourceGroupName, deploymentStackName, deploymentStack).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks along with {@link PagedResponse}.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listAtManagementGroupSinglePage(String managementGroupId,
- Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (managementGroupId == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null."));
- }
- final String accept = "application/json";
- Response res = service.listAtManagementGroupSync(this.client.getEndpoint(),
- managementGroupId, this.client.getApiVersion(), accept, context);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
-
- /**
- * Lists all the Deployment stacks within the specified Management Group.
- *
- * @param managementGroupId Management Group id.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Deployment stacks as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listAtManagementGroup(String managementGroupId) {
- return new PagedIterable<>(() -> listAtManagementGroupSinglePage(managementGroupId),
- nextLink -> listAtManagementGroupNextSinglePage(nextLink));
+ public DeploymentStackValidateResultInner validateStackAtResourceGroup(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack) {
+ return beginValidateStackAtResourceGroup(resourceGroupName, deploymentStackName, deploymentStack)
+ .getFinalResult();
}
/**
- * Lists all the Deployment stacks within the specified Management Group.
+ * Runs preflight validation on the Deployment stack template at the specified scope to verify its acceptance to
+ * Azure Resource Manager.
*
- * @param managementGroupId Management Group id.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentStackName Name of the deployment stack.
+ * @param deploymentStack The content of the action request.
* @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 list of Deployment stacks as paginated response with {@link PagedIterable}.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listAtManagementGroup(String managementGroupId, Context context) {
- return new PagedIterable<>(() -> listAtManagementGroupSinglePage(managementGroupId, context),
- nextLink -> listAtManagementGroupNextSinglePage(nextLink, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentStackValidateResultInner validateStackAtResourceGroup(String resourceGroupName,
+ String deploymentStackName, DeploymentStackInner deploymentStack, Context context) {
+ return beginValidateStackAtResourceGroup(resourceGroupName, deploymentStackName, deploymentStack, context)
+ .getFinalResult();
}
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -901,42 +870,21 @@ public PagedIterable listAtManagementGroup(String manageme
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateAtResourceGroupWithResponseAsync(String resourceGroupName,
String deploymentStackName, DeploymentStackInner deploymentStack) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentStackName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter deploymentStackName is required and cannot be null."));
- }
- if (deploymentStack == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter deploymentStack is required and cannot be null."));
- } else {
- deploymentStack.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdateAtResourceGroup(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, this.client.getApiVersion(),
- deploymentStack, accept, context))
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, deploymentStackName,
+ contentType, accept, deploymentStack, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -945,41 +893,19 @@ private Mono>> createOrUpdateAtResourceGroupWithRespon
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createOrUpdateAtResourceGroupWithResponse(String resourceGroupName,
String deploymentStackName, DeploymentStackInner deploymentStack) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentStackName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter deploymentStackName is required and cannot be null."));
- }
- if (deploymentStack == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter deploymentStack is required and cannot be null."));
- } else {
- deploymentStack.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createOrUpdateAtResourceGroupSync(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, deploymentStackName, this.client.getApiVersion(), deploymentStack, accept, Context.NONE);
+ return service.createOrUpdateAtResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, contentType, accept,
+ deploymentStack, Context.NONE);
}
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @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.
@@ -989,41 +915,19 @@ private Response createOrUpdateAtResourceGroupWithResponse(String re
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createOrUpdateAtResourceGroupWithResponse(String resourceGroupName,
String deploymentStackName, DeploymentStackInner deploymentStack, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (deploymentStackName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter deploymentStackName is required and cannot be null."));
- }
- if (deploymentStack == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter deploymentStack is required and cannot be null."));
- } else {
- deploymentStack.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createOrUpdateAtResourceGroupSync(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, deploymentStackName, this.client.getApiVersion(), deploymentStack, accept, context);
+ return service.createOrUpdateAtResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, deploymentStackName, contentType, accept,
+ deploymentStack, context);
}
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1039,11 +943,11 @@ private PollerFlux, DeploymentStackInner> begin
}
/**
- * Creates or updates a Deployment stack at Resource Group scope.
+ * Creates or updates a Deployment stack at the specified scope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param deploymentStackName Name of the deployment stack.
- * @param deploymentStack Deployment stack supplied to the operation.
+ * @param deploymentStack Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1059,11 +963,11 @@ public SyncPoller