diff --git a/resources/resource-manager/v2019_05_10/pom.xml b/resources/resource-manager/v2019_05_10/pom.xml
new file mode 100644
index 0000000000000..d096dd0643cc5
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/pom.xml
@@ -0,0 +1,133 @@
+
+
+ 4.0.0
+ com.microsoft.azure.resources.v2019_05_10
+
+ com.microsoft.azure
+ azure-arm-parent
+ 0.0.3-beta
+ ../../../pom.xml
+
+ azure-mgmt-resources
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for Resources Management
+ This package contains Microsoft Resources Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ */
+ ]]>
+
+
+
+
+
+
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/AliasPathType.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/AliasPathType.java
new file mode 100644
index 0000000000000..1b92c11faf9a6
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/AliasPathType.java
@@ -0,0 +1,70 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The type of the paths for alias.
+ */
+public class AliasPathType {
+ /**
+ * The path of an alias.
+ */
+ @JsonProperty(value = "path")
+ private String path;
+
+ /**
+ * The API versions.
+ */
+ @JsonProperty(value = "apiVersions")
+ private List apiVersions;
+
+ /**
+ * Get the path of an alias.
+ *
+ * @return the path value
+ */
+ public String path() {
+ return this.path;
+ }
+
+ /**
+ * Set the path of an alias.
+ *
+ * @param path the path value to set
+ * @return the AliasPathType object itself.
+ */
+ public AliasPathType withPath(String path) {
+ this.path = path;
+ return this;
+ }
+
+ /**
+ * Get the API versions.
+ *
+ * @return the apiVersions value
+ */
+ public List apiVersions() {
+ return this.apiVersions;
+ }
+
+ /**
+ * Set the API versions.
+ *
+ * @param apiVersions the apiVersions value to set
+ * @return the AliasPathType object itself.
+ */
+ public AliasPathType withApiVersions(List apiVersions) {
+ this.apiVersions = apiVersions;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/AliasType.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/AliasType.java
new file mode 100644
index 0000000000000..96051be44eea0
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/AliasType.java
@@ -0,0 +1,70 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The alias type.
+ */
+public class AliasType {
+ /**
+ * The alias name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The paths for an alias.
+ */
+ @JsonProperty(value = "paths")
+ private List paths;
+
+ /**
+ * Get the alias name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the alias name.
+ *
+ * @param name the name value to set
+ * @return the AliasType object itself.
+ */
+ public AliasType withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the paths for an alias.
+ *
+ * @return the paths value
+ */
+ public List paths() {
+ return this.paths;
+ }
+
+ /**
+ * Set the paths for an alias.
+ *
+ * @param paths the paths value to set
+ * @return the AliasType object itself.
+ */
+ public AliasType withPaths(List paths) {
+ this.paths = paths;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/BasicDependency.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/BasicDependency.java
new file mode 100644
index 0000000000000..a06d55bac1c10
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/BasicDependency.java
@@ -0,0 +1,95 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment dependency information.
+ */
+public class BasicDependency {
+ /**
+ * The ID of the dependency.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * The dependency resource type.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /**
+ * The dependency resource name.
+ */
+ @JsonProperty(value = "resourceName")
+ private String resourceName;
+
+ /**
+ * Get the ID of the dependency.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the ID of the dependency.
+ *
+ * @param id the id value to set
+ * @return the BasicDependency object itself.
+ */
+ public BasicDependency withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the dependency resource type.
+ *
+ * @return the resourceType value
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the dependency resource type.
+ *
+ * @param resourceType the resourceType value to set
+ * @return the BasicDependency object itself.
+ */
+ public BasicDependency withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the dependency resource name.
+ *
+ * @return the resourceName value
+ */
+ public String resourceName() {
+ return this.resourceName;
+ }
+
+ /**
+ * Set the dependency resource name.
+ *
+ * @param resourceName the resourceName value to set
+ * @return the BasicDependency object itself.
+ */
+ public BasicDependency withResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DebugSetting.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DebugSetting.java
new file mode 100644
index 0000000000000..b0526522a5614
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DebugSetting.java
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The debug setting.
+ */
+public class DebugSetting {
+ /**
+ * Specifies the type of information to log for debugging. The permitted
+ * values are none, requestContent, responseContent, or both requestContent
+ * and responseContent separated by a comma. The default is none. When
+ * setting this value, carefully consider the type of information you are
+ * passing in during deployment. By logging information about the request
+ * or response, you could potentially expose sensitive data that is
+ * retrieved through the deployment operations.
+ */
+ @JsonProperty(value = "detailLevel")
+ private String detailLevel;
+
+ /**
+ * Get specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations.
+ *
+ * @return the detailLevel value
+ */
+ public String detailLevel() {
+ return this.detailLevel;
+ }
+
+ /**
+ * Set specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations.
+ *
+ * @param detailLevel the detailLevel value to set
+ * @return the DebugSetting object itself.
+ */
+ public DebugSetting withDetailLevel(String detailLevel) {
+ this.detailLevel = detailLevel;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Dependency.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Dependency.java
new file mode 100644
index 0000000000000..ce119bf89b0f1
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Dependency.java
@@ -0,0 +1,122 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment dependency information.
+ */
+public class Dependency {
+ /**
+ * The list of dependencies.
+ */
+ @JsonProperty(value = "dependsOn")
+ private List dependsOn;
+
+ /**
+ * The ID of the dependency.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * The dependency resource type.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /**
+ * The dependency resource name.
+ */
+ @JsonProperty(value = "resourceName")
+ private String resourceName;
+
+ /**
+ * Get the list of dependencies.
+ *
+ * @return the dependsOn value
+ */
+ public List dependsOn() {
+ return this.dependsOn;
+ }
+
+ /**
+ * Set the list of dependencies.
+ *
+ * @param dependsOn the dependsOn value to set
+ * @return the Dependency object itself.
+ */
+ public Dependency withDependsOn(List dependsOn) {
+ this.dependsOn = dependsOn;
+ return this;
+ }
+
+ /**
+ * Get the ID of the dependency.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the ID of the dependency.
+ *
+ * @param id the id value to set
+ * @return the Dependency object itself.
+ */
+ public Dependency withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the dependency resource type.
+ *
+ * @return the resourceType value
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the dependency resource type.
+ *
+ * @param resourceType the resourceType value to set
+ * @return the Dependency object itself.
+ */
+ public Dependency withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the dependency resource name.
+ *
+ * @return the resourceName value
+ */
+ public String resourceName() {
+ return this.resourceName;
+ }
+
+ /**
+ * Set the dependency resource name.
+ *
+ * @param resourceName the resourceName value to set
+ * @return the Dependency object itself.
+ */
+ public Dependency withResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExportResult.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExportResult.java
new file mode 100644
index 0000000000000..f2ae5246e1052
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExportResult.java
@@ -0,0 +1,25 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentExportResultInner;
+
+/**
+ * Type representing DeploymentExportResult.
+ */
+public interface DeploymentExportResult extends HasInner, HasManager {
+ /**
+ * @return the template value.
+ */
+ Object template();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExtended.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExtended.java
new file mode 100644
index 0000000000000..27675442abd27
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExtended.java
@@ -0,0 +1,132 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentExtendedInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+
+/**
+ * Type representing DeploymentExtended.
+ */
+public interface DeploymentExtended extends HasInner, Indexable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ DeploymentPropertiesExtended properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the DeploymentExtended definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoft.Resource, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of DeploymentExtended definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a DeploymentExtended definition.
+ */
+ interface Blank extends WithMicrosoft.Resource {
+ }
+
+ /**
+ * The stage of the deploymentextended definition allowing to specify Microsoft.Resource.
+ */
+ interface WithMicrosoft.Resource {
+ /**
+ * Specifies groupId.
+ * @param groupId The management group ID
+ * @return the next definition stage
+ */
+ WithProperties withExistingMicrosoft.Resource(String groupId);
+ }
+
+ /**
+ * The stage of the deploymentextended definition allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties The deployment properties
+ * @return the next definition stage
+ */
+ WithCreate withProperties(DeploymentProperties properties);
+ }
+
+ /**
+ * The stage of the deploymentextended definition allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location The location to store the deployment data
+ * @return the next definition stage
+ */
+ WithCreate withLocation(String location);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithLocation {
+ }
+ }
+ /**
+ * The template for a DeploymentExtended update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithLocation {
+ }
+
+ /**
+ * Grouping of DeploymentExtended update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the deploymentextended update allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location The location to store the deployment data
+ * @return the next update stage
+ */
+ Update withLocation(String location);
+ }
+
+ }
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExtendedFilter.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExtendedFilter.java
new file mode 100644
index 0000000000000..a7b8abf91f833
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentExtendedFilter.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment filter.
+ */
+public class DeploymentExtendedFilter {
+ /**
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState")
+ private String provisioningState;
+
+ /**
+ * Get the provisioning state.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioning state.
+ *
+ * @param provisioningState the provisioningState value to set
+ * @return the DeploymentExtendedFilter object itself.
+ */
+ public DeploymentExtendedFilter withProvisioningState(String provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentMode.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentMode.java
new file mode 100644
index 0000000000000..c5152d9332b13
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentMode.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for DeploymentMode.
+ */
+public enum DeploymentMode {
+ /** Enum value Incremental. */
+ INCREMENTAL("Incremental"),
+
+ /** Enum value Complete. */
+ COMPLETE("Complete");
+
+ /** The actual serialized value for a DeploymentMode instance. */
+ private String value;
+
+ DeploymentMode(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a DeploymentMode instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed DeploymentMode object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static DeploymentMode fromString(String value) {
+ DeploymentMode[] items = DeploymentMode.values();
+ for (DeploymentMode item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperation.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperation.java
new file mode 100644
index 0000000000000..cd93540ede4c2
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperation.java
@@ -0,0 +1,37 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentOperationInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+
+/**
+ * Type representing DeploymentOperation.
+ */
+public interface DeploymentOperation extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the operationId value.
+ */
+ String operationId();
+
+ /**
+ * @return the properties value.
+ */
+ DeploymentOperationProperties properties();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperationProperties.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperationProperties.java
new file mode 100644
index 0000000000000..206c05364a06a
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperationProperties.java
@@ -0,0 +1,153 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment operation properties.
+ */
+public class DeploymentOperationProperties {
+ /**
+ * The state of the provisioning.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * The date and time of the operation.
+ */
+ @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime timestamp;
+
+ /**
+ * The duration of the operation.
+ */
+ @JsonProperty(value = "duration", access = JsonProperty.Access.WRITE_ONLY)
+ private String duration;
+
+ /**
+ * Deployment operation service request id.
+ */
+ @JsonProperty(value = "serviceRequestId", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceRequestId;
+
+ /**
+ * Operation status code.
+ */
+ @JsonProperty(value = "statusCode", access = JsonProperty.Access.WRITE_ONLY)
+ private String statusCode;
+
+ /**
+ * Operation status message.
+ */
+ @JsonProperty(value = "statusMessage", access = JsonProperty.Access.WRITE_ONLY)
+ private Object statusMessage;
+
+ /**
+ * The target resource.
+ */
+ @JsonProperty(value = "targetResource", access = JsonProperty.Access.WRITE_ONLY)
+ private TargetResource targetResource;
+
+ /**
+ * The HTTP request message.
+ */
+ @JsonProperty(value = "request", access = JsonProperty.Access.WRITE_ONLY)
+ private HttpMessage request;
+
+ /**
+ * The HTTP response message.
+ */
+ @JsonProperty(value = "response", access = JsonProperty.Access.WRITE_ONLY)
+ private HttpMessage response;
+
+ /**
+ * Get the state of the provisioning.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the date and time of the operation.
+ *
+ * @return the timestamp value
+ */
+ public DateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Get the duration of the operation.
+ *
+ * @return the duration value
+ */
+ public String duration() {
+ return this.duration;
+ }
+
+ /**
+ * Get deployment operation service request id.
+ *
+ * @return the serviceRequestId value
+ */
+ public String serviceRequestId() {
+ return this.serviceRequestId;
+ }
+
+ /**
+ * Get operation status code.
+ *
+ * @return the statusCode value
+ */
+ public String statusCode() {
+ return this.statusCode;
+ }
+
+ /**
+ * Get operation status message.
+ *
+ * @return the statusMessage value
+ */
+ public Object statusMessage() {
+ return this.statusMessage;
+ }
+
+ /**
+ * Get the target resource.
+ *
+ * @return the targetResource value
+ */
+ public TargetResource targetResource() {
+ return this.targetResource;
+ }
+
+ /**
+ * Get the HTTP request message.
+ *
+ * @return the request value
+ */
+ public HttpMessage request() {
+ return this.request;
+ }
+
+ /**
+ * Get the HTTP response message.
+ *
+ * @return the response value
+ */
+ public HttpMessage response() {
+ return this.response;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperations.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperations.java
new file mode 100644
index 0000000000000..5b2667604fb48
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentOperations.java
@@ -0,0 +1,80 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentOperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing DeploymentOperations.
+ */
+public interface DeploymentOperations extends HasInner {
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtSubscriptionScopeAsync(String deploymentName, String operationId);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAtSubscriptionScopeAsync(final String deploymentName);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String deploymentName, String operationId);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByResourceGroupAsync(final String resourceGroupName, final String deploymentName);
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtManagementGroupScopeAsync(String groupId, String deploymentName, String operationId);
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAtManagementGroupScopeAsync(final String groupId, final String deploymentName);
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentProperties.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentProperties.java
new file mode 100644
index 0000000000000..9377f6d8ee2fd
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentProperties.java
@@ -0,0 +1,216 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment properties.
+ */
+public class DeploymentProperties {
+ /**
+ * The template content. You use this element when you want to pass the
+ * template syntax directly in the request rather than link to an existing
+ * template. It can be a JObject or well-formed JSON string. Use either the
+ * templateLink property or the template property, but not both.
+ */
+ @JsonProperty(value = "template")
+ private Object template;
+
+ /**
+ * The URI of the template. Use either the templateLink property or the
+ * template property, but not both.
+ */
+ @JsonProperty(value = "templateLink")
+ private TemplateLink templateLink;
+
+ /**
+ * Name and value pairs that define the deployment parameters for the
+ * template. You use this element when you want to provide the parameter
+ * values directly in the request rather than link to an existing parameter
+ * file. Use either the parametersLink property or the parameters property,
+ * but not both. It can be a JObject or a well formed JSON string.
+ */
+ @JsonProperty(value = "parameters")
+ private Object parameters;
+
+ /**
+ * The URI of parameters file. You use this element to link to an existing
+ * parameters file. Use either the parametersLink property or the
+ * parameters property, but not both.
+ */
+ @JsonProperty(value = "parametersLink")
+ private ParametersLink parametersLink;
+
+ /**
+ * The mode that is used to deploy resources. This value can be either
+ * Incremental or Complete. In Incremental mode, resources are deployed
+ * without deleting existing resources that are not included in the
+ * template. In Complete mode, resources are deployed and existing
+ * resources in the resource group that are not included in the template
+ * are deleted. Be careful when using Complete mode as you may
+ * unintentionally delete resources. Possible values include:
+ * 'Incremental', 'Complete'.
+ */
+ @JsonProperty(value = "mode", required = true)
+ private DeploymentMode mode;
+
+ /**
+ * The debug setting of the deployment.
+ */
+ @JsonProperty(value = "debugSetting")
+ private DebugSetting debugSetting;
+
+ /**
+ * The deployment on error behavior.
+ */
+ @JsonProperty(value = "onErrorDeployment")
+ private OnErrorDeployment onErrorDeployment;
+
+ /**
+ * Get the template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.
+ *
+ * @return the template value
+ */
+ public Object template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.
+ *
+ * @param template the template value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withTemplate(Object template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get the URI of the template. Use either the templateLink property or the template property, but not both.
+ *
+ * @return the templateLink value
+ */
+ public TemplateLink templateLink() {
+ return this.templateLink;
+ }
+
+ /**
+ * Set the URI of the template. Use either the templateLink property or the template property, but not both.
+ *
+ * @param templateLink the templateLink value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withTemplateLink(TemplateLink templateLink) {
+ this.templateLink = templateLink;
+ return this;
+ }
+
+ /**
+ * Get name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string.
+ *
+ * @return the parameters value
+ */
+ public Object parameters() {
+ return this.parameters;
+ }
+
+ /**
+ * Set name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string.
+ *
+ * @param parameters the parameters value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withParameters(Object parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+ /**
+ * Get the URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both.
+ *
+ * @return the parametersLink value
+ */
+ public ParametersLink parametersLink() {
+ return this.parametersLink;
+ }
+
+ /**
+ * Set the URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both.
+ *
+ * @param parametersLink the parametersLink value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withParametersLink(ParametersLink parametersLink) {
+ this.parametersLink = parametersLink;
+ return this;
+ }
+
+ /**
+ * Get the mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. Possible values include: 'Incremental', 'Complete'.
+ *
+ * @return the mode value
+ */
+ public DeploymentMode mode() {
+ return this.mode;
+ }
+
+ /**
+ * Set the mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. Possible values include: 'Incremental', 'Complete'.
+ *
+ * @param mode the mode value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withMode(DeploymentMode mode) {
+ this.mode = mode;
+ return this;
+ }
+
+ /**
+ * Get the debug setting of the deployment.
+ *
+ * @return the debugSetting value
+ */
+ public DebugSetting debugSetting() {
+ return this.debugSetting;
+ }
+
+ /**
+ * Set the debug setting of the deployment.
+ *
+ * @param debugSetting the debugSetting value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withDebugSetting(DebugSetting debugSetting) {
+ this.debugSetting = debugSetting;
+ return this;
+ }
+
+ /**
+ * Get the deployment on error behavior.
+ *
+ * @return the onErrorDeployment value
+ */
+ public OnErrorDeployment onErrorDeployment() {
+ return this.onErrorDeployment;
+ }
+
+ /**
+ * Set the deployment on error behavior.
+ *
+ * @param onErrorDeployment the onErrorDeployment value to set
+ * @return the DeploymentProperties object itself.
+ */
+ public DeploymentProperties withOnErrorDeployment(OnErrorDeployment onErrorDeployment) {
+ this.onErrorDeployment = onErrorDeployment;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentPropertiesExtended.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentPropertiesExtended.java
new file mode 100644
index 0000000000000..b3399e5e09493
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentPropertiesExtended.java
@@ -0,0 +1,343 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import org.joda.time.DateTime;
+import java.util.List;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ProviderInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment properties with additional details.
+ */
+public class DeploymentPropertiesExtended {
+ /**
+ * The state of the provisioning.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * The correlation ID of the deployment.
+ */
+ @JsonProperty(value = "correlationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String correlationId;
+
+ /**
+ * The timestamp of the template deployment.
+ */
+ @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime timestamp;
+
+ /**
+ * The duration of the template deployment.
+ */
+ @JsonProperty(value = "duration", access = JsonProperty.Access.WRITE_ONLY)
+ private String duration;
+
+ /**
+ * Key/value pairs that represent deployment output.
+ */
+ @JsonProperty(value = "outputs")
+ private Object outputs;
+
+ /**
+ * The list of resource providers needed for the deployment.
+ */
+ @JsonProperty(value = "providers")
+ private List providers;
+
+ /**
+ * The list of deployment dependencies.
+ */
+ @JsonProperty(value = "dependencies")
+ private List dependencies;
+
+ /**
+ * The template content. Use only one of Template or TemplateLink.
+ */
+ @JsonProperty(value = "template")
+ private Object template;
+
+ /**
+ * The URI referencing the template. Use only one of Template or
+ * TemplateLink.
+ */
+ @JsonProperty(value = "templateLink")
+ private TemplateLink templateLink;
+
+ /**
+ * Deployment parameters. Use only one of Parameters or ParametersLink.
+ */
+ @JsonProperty(value = "parameters")
+ private Object parameters;
+
+ /**
+ * The URI referencing the parameters. Use only one of Parameters or
+ * ParametersLink.
+ */
+ @JsonProperty(value = "parametersLink")
+ private ParametersLink parametersLink;
+
+ /**
+ * The deployment mode. Possible values are Incremental and Complete.
+ * Possible values include: 'Incremental', 'Complete'.
+ */
+ @JsonProperty(value = "mode")
+ private DeploymentMode mode;
+
+ /**
+ * The debug setting of the deployment.
+ */
+ @JsonProperty(value = "debugSetting")
+ private DebugSetting debugSetting;
+
+ /**
+ * The deployment on error behavior.
+ */
+ @JsonProperty(value = "onErrorDeployment")
+ private OnErrorDeploymentExtended onErrorDeployment;
+
+ /**
+ * Get the state of the provisioning.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the correlation ID of the deployment.
+ *
+ * @return the correlationId value
+ */
+ public String correlationId() {
+ return this.correlationId;
+ }
+
+ /**
+ * Get the timestamp of the template deployment.
+ *
+ * @return the timestamp value
+ */
+ public DateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Get the duration of the template deployment.
+ *
+ * @return the duration value
+ */
+ public String duration() {
+ return this.duration;
+ }
+
+ /**
+ * Get key/value pairs that represent deployment output.
+ *
+ * @return the outputs value
+ */
+ public Object outputs() {
+ return this.outputs;
+ }
+
+ /**
+ * Set key/value pairs that represent deployment output.
+ *
+ * @param outputs the outputs value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withOutputs(Object outputs) {
+ this.outputs = outputs;
+ return this;
+ }
+
+ /**
+ * Get the list of resource providers needed for the deployment.
+ *
+ * @return the providers value
+ */
+ public List providers() {
+ return this.providers;
+ }
+
+ /**
+ * Set the list of resource providers needed for the deployment.
+ *
+ * @param providers the providers value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withProviders(List providers) {
+ this.providers = providers;
+ return this;
+ }
+
+ /**
+ * Get the list of deployment dependencies.
+ *
+ * @return the dependencies value
+ */
+ public List dependencies() {
+ return this.dependencies;
+ }
+
+ /**
+ * Set the list of deployment dependencies.
+ *
+ * @param dependencies the dependencies value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withDependencies(List dependencies) {
+ this.dependencies = dependencies;
+ return this;
+ }
+
+ /**
+ * Get the template content. Use only one of Template or TemplateLink.
+ *
+ * @return the template value
+ */
+ public Object template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template content. Use only one of Template or TemplateLink.
+ *
+ * @param template the template value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withTemplate(Object template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get the URI referencing the template. Use only one of Template or TemplateLink.
+ *
+ * @return the templateLink value
+ */
+ public TemplateLink templateLink() {
+ return this.templateLink;
+ }
+
+ /**
+ * Set the URI referencing the template. Use only one of Template or TemplateLink.
+ *
+ * @param templateLink the templateLink value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withTemplateLink(TemplateLink templateLink) {
+ this.templateLink = templateLink;
+ return this;
+ }
+
+ /**
+ * Get deployment parameters. Use only one of Parameters or ParametersLink.
+ *
+ * @return the parameters value
+ */
+ public Object parameters() {
+ return this.parameters;
+ }
+
+ /**
+ * Set deployment parameters. Use only one of Parameters or ParametersLink.
+ *
+ * @param parameters the parameters value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withParameters(Object parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+ /**
+ * Get the URI referencing the parameters. Use only one of Parameters or ParametersLink.
+ *
+ * @return the parametersLink value
+ */
+ public ParametersLink parametersLink() {
+ return this.parametersLink;
+ }
+
+ /**
+ * Set the URI referencing the parameters. Use only one of Parameters or ParametersLink.
+ *
+ * @param parametersLink the parametersLink value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withParametersLink(ParametersLink parametersLink) {
+ this.parametersLink = parametersLink;
+ return this;
+ }
+
+ /**
+ * Get the deployment mode. Possible values are Incremental and Complete. Possible values include: 'Incremental', 'Complete'.
+ *
+ * @return the mode value
+ */
+ public DeploymentMode mode() {
+ return this.mode;
+ }
+
+ /**
+ * Set the deployment mode. Possible values are Incremental and Complete. Possible values include: 'Incremental', 'Complete'.
+ *
+ * @param mode the mode value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withMode(DeploymentMode mode) {
+ this.mode = mode;
+ return this;
+ }
+
+ /**
+ * Get the debug setting of the deployment.
+ *
+ * @return the debugSetting value
+ */
+ public DebugSetting debugSetting() {
+ return this.debugSetting;
+ }
+
+ /**
+ * Set the debug setting of the deployment.
+ *
+ * @param debugSetting the debugSetting value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withDebugSetting(DebugSetting debugSetting) {
+ this.debugSetting = debugSetting;
+ return this;
+ }
+
+ /**
+ * Get the deployment on error behavior.
+ *
+ * @return the onErrorDeployment value
+ */
+ public OnErrorDeploymentExtended onErrorDeployment() {
+ return this.onErrorDeployment;
+ }
+
+ /**
+ * Set the deployment on error behavior.
+ *
+ * @param onErrorDeployment the onErrorDeployment value to set
+ * @return the DeploymentPropertiesExtended object itself.
+ */
+ public DeploymentPropertiesExtended withOnErrorDeployment(OnErrorDeploymentExtended onErrorDeployment) {
+ this.onErrorDeployment = onErrorDeployment;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentValidateResult.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentValidateResult.java
new file mode 100644
index 0000000000000..15dcdcdf369e9
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/DeploymentValidateResult.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentValidateResultInner;
+
+/**
+ * Type representing DeploymentValidateResult.
+ */
+public interface DeploymentValidateResult extends HasInner, HasManager {
+ /**
+ * @return the error value.
+ */
+ ResourceManagementErrorWithDetails error();
+
+ /**
+ * @return the properties value.
+ */
+ DeploymentPropertiesExtended properties();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Deployments.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Deployments.java
new file mode 100644
index 0000000000000..1cef4a8efb30b
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Deployments.java
@@ -0,0 +1,254 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.DeploymentsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Deployments.
+ */
+public interface Deployments extends SupportsCreating, HasInner {
+ /**
+ * Deletes a deployment from the deployment history.
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAtManagementGroupScopeAsync(String groupId, String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkExistenceAtManagementGroupScopeAsync(String groupId, String deploymentName);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtManagementGroupScopeAsync(String groupId, String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable cancelAtManagementGroupScopeAsync(String groupId, String deploymentName);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable validateAtManagementGroupScopeAsync(String groupId, String deploymentName, DeploymentInner parameters);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable exportTemplateAtManagementGroupScopeAsync(String groupId, String deploymentName);
+
+ /**
+ * Get all the deployments for a management group.
+ *
+ * @param groupId The management group ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAtManagementGroupScopeAsync(final String groupId);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAtSubscriptionScopeAsync(String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkExistenceAtSubscriptionScopeAsync(String deploymentName);
+
+ /**
+ * Deploys resources at subscription scope.
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateAtSubscriptionScopeAsync(String deploymentName, DeploymentInner parameters);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtSubscriptionScopeAsync(String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable cancelAtSubscriptionScopeAsync(String deploymentName);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..
+ *
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable validateAtSubscriptionScopeAsync(String deploymentName, DeploymentInner parameters);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable exportTemplateAtSubscriptionScopeAsync(String deploymentName);
+
+ /**
+ * Deletes a deployment from the deployment history.
+ * A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to delete. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String deploymentName);
+
+ /**
+ * Checks whether the deployment exists.
+ *
+ * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkExistenceAsync(String resourceGroupName, String deploymentName);
+
+ /**
+ * Deploys resources to a resource group.
+ * You can provide the template and parameters directly in the request or link to JSON files.
+ *
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Additional parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateAsync(String resourceGroupName, String deploymentName, DeploymentInner parameters);
+
+ /**
+ * Gets a deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getByResourceGroupAsync(String resourceGroupName, String deploymentName);
+
+ /**
+ * Cancels a currently running template deployment.
+ * You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable cancelAsync(String resourceGroupName, String deploymentName);
+
+ /**
+ * Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..
+ *
+ * @param resourceGroupName The name of the resource group the template will be deployed to. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @param parameters Parameters to validate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable validateAsync(String resourceGroupName, String deploymentName, DeploymentInner parameters);
+
+ /**
+ * Exports the template used for specified deployment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable exportTemplateAsync(String resourceGroupName, String deploymentName);
+
+ /**
+ * Get all the deployments for a subscription.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+ /**
+ * Get all the deployments for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group with the deployments to get. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByResourceGroupAsync(final String resourceGroupName);
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ExportTemplateRequest.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ExportTemplateRequest.java
new file mode 100644
index 0000000000000..a693a6d4c7213
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ExportTemplateRequest.java
@@ -0,0 +1,74 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Export resource group template request parameters.
+ */
+public class ExportTemplateRequest {
+ /**
+ * The IDs of the resources to filter the export by. To export all
+ * resources, supply an array with single entry '*'.
+ */
+ @JsonProperty(value = "resources")
+ private List resources;
+
+ /**
+ * The export template options. A CSV-formatted list containing zero or
+ * more of the following: 'IncludeParameterDefaultValue',
+ * 'IncludeComments', 'SkipResourceNameParameterization',
+ * 'SkipAllParameterization'.
+ */
+ @JsonProperty(value = "options")
+ private String options;
+
+ /**
+ * Get the IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
+ *
+ * @return the resources value
+ */
+ public List resources() {
+ return this.resources;
+ }
+
+ /**
+ * Set the IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
+ *
+ * @param resources the resources value to set
+ * @return the ExportTemplateRequest object itself.
+ */
+ public ExportTemplateRequest withResources(List resources) {
+ this.resources = resources;
+ return this;
+ }
+
+ /**
+ * Get the export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
+ *
+ * @return the options value
+ */
+ public String options() {
+ return this.options;
+ }
+
+ /**
+ * Set the export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
+ *
+ * @param options the options value to set
+ * @return the ExportTemplateRequest object itself.
+ */
+ public ExportTemplateRequest withOptions(String options) {
+ this.options = options;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/GenericResource.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/GenericResource.java
new file mode 100644
index 0000000000000..fcbed6a326747
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/GenericResource.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.GenericResourceInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import java.util.Map;
+
+/**
+ * Type representing GenericResource.
+ */
+public interface GenericResource extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the identity value.
+ */
+ Identity identity();
+
+ /**
+ * @return the kind value.
+ */
+ String kind();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the managedBy value.
+ */
+ String managedBy();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the plan value.
+ */
+ Plan plan();
+
+ /**
+ * @return the properties value.
+ */
+ Object properties();
+
+ /**
+ * @return the sku value.
+ */
+ Sku sku();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/GenericResourceFilter.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/GenericResourceFilter.java
new file mode 100644
index 0000000000000..32a43d2fdca21
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/GenericResourceFilter.java
@@ -0,0 +1,95 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Resource filter.
+ */
+public class GenericResourceFilter {
+ /**
+ * The resource type.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /**
+ * The tag name.
+ */
+ @JsonProperty(value = "tagname")
+ private String tagname;
+
+ /**
+ * The tag value.
+ */
+ @JsonProperty(value = "tagvalue")
+ private String tagvalue;
+
+ /**
+ * Get the resource type.
+ *
+ * @return the resourceType value
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the resource type.
+ *
+ * @param resourceType the resourceType value to set
+ * @return the GenericResourceFilter object itself.
+ */
+ public GenericResourceFilter withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the tag name.
+ *
+ * @return the tagname value
+ */
+ public String tagname() {
+ return this.tagname;
+ }
+
+ /**
+ * Set the tag name.
+ *
+ * @param tagname the tagname value to set
+ * @return the GenericResourceFilter object itself.
+ */
+ public GenericResourceFilter withTagname(String tagname) {
+ this.tagname = tagname;
+ return this;
+ }
+
+ /**
+ * Get the tag value.
+ *
+ * @return the tagvalue value
+ */
+ public String tagvalue() {
+ return this.tagvalue;
+ }
+
+ /**
+ * Set the tag value.
+ *
+ * @param tagvalue the tagvalue value to set
+ * @return the GenericResourceFilter object itself.
+ */
+ public GenericResourceFilter withTagvalue(String tagvalue) {
+ this.tagvalue = tagvalue;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/HttpMessage.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/HttpMessage.java
new file mode 100644
index 0000000000000..f11dfa5de7032
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/HttpMessage.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * HTTP message.
+ */
+public class HttpMessage {
+ /**
+ * HTTP message content.
+ */
+ @JsonProperty(value = "content")
+ private Object content;
+
+ /**
+ * Get hTTP message content.
+ *
+ * @return the content value
+ */
+ public Object content() {
+ return this.content;
+ }
+
+ /**
+ * Set hTTP message content.
+ *
+ * @param content the content value to set
+ * @return the HttpMessage object itself.
+ */
+ public HttpMessage withContent(Object content) {
+ this.content = content;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Identity.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Identity.java
new file mode 100644
index 0000000000000..19df808a35890
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Identity.java
@@ -0,0 +1,103 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Identity for the resource.
+ */
+public class Identity {
+ /**
+ * The principal ID of resource identity.
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /**
+ * The tenant ID of resource.
+ */
+ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantId;
+
+ /**
+ * The identity type. Possible values include: 'SystemAssigned',
+ * 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
+ */
+ @JsonProperty(value = "type")
+ private ResourceIdentityType type;
+
+ /**
+ * The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ private Map userAssignedIdentities;
+
+ /**
+ * Get the principal ID of resource identity.
+ *
+ * @return the principalId value
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the tenant ID of resource.
+ *
+ * @return the tenantId value
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
+ *
+ * @return the type value
+ */
+ public ResourceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
+ *
+ * @param type the type value to set
+ * @return the Identity object itself.
+ */
+ public Identity withType(ResourceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @return the userAssignedIdentities value
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set
+ * @return the Identity object itself.
+ */
+ public Identity withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/IdentityUserAssignedIdentitiesValue.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/IdentityUserAssignedIdentitiesValue.java
new file mode 100644
index 0000000000000..9b57b9c4a79f8
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/IdentityUserAssignedIdentitiesValue.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The IdentityUserAssignedIdentitiesValue model.
+ */
+public class IdentityUserAssignedIdentitiesValue {
+ /**
+ * The principal id of user assigned identity.
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /**
+ * The client id of user assigned identity.
+ */
+ @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY)
+ private String clientId;
+
+ /**
+ * Get the principal id of user assigned identity.
+ *
+ * @return the principalId value
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the client id of user assigned identity.
+ *
+ * @return the clientId value
+ */
+ public String clientId() {
+ return this.clientId;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeployment.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeployment.java
new file mode 100644
index 0000000000000..718a3ac644c5f
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeployment.java
@@ -0,0 +1,71 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment on error behavior.
+ */
+public class OnErrorDeployment {
+ /**
+ * The deployment on error behavior type. Possible values are
+ * LastSuccessful and SpecificDeployment. Possible values include:
+ * 'LastSuccessful', 'SpecificDeployment'.
+ */
+ @JsonProperty(value = "type")
+ private OnErrorDeploymentType type;
+
+ /**
+ * The deployment to be used on error case.
+ */
+ @JsonProperty(value = "deploymentName")
+ private String deploymentName;
+
+ /**
+ * Get the deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment'.
+ *
+ * @return the type value
+ */
+ public OnErrorDeploymentType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment'.
+ *
+ * @param type the type value to set
+ * @return the OnErrorDeployment object itself.
+ */
+ public OnErrorDeployment withType(OnErrorDeploymentType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the deployment to be used on error case.
+ *
+ * @return the deploymentName value
+ */
+ public String deploymentName() {
+ return this.deploymentName;
+ }
+
+ /**
+ * Set the deployment to be used on error case.
+ *
+ * @param deploymentName the deploymentName value to set
+ * @return the OnErrorDeployment object itself.
+ */
+ public OnErrorDeployment withDeploymentName(String deploymentName) {
+ this.deploymentName = deploymentName;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeploymentExtended.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeploymentExtended.java
new file mode 100644
index 0000000000000..06ac855f9f82d
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeploymentExtended.java
@@ -0,0 +1,86 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment on error behavior with additional details.
+ */
+public class OnErrorDeploymentExtended {
+ /**
+ * The state of the provisioning for the on error deployment.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * The deployment on error behavior type. Possible values are
+ * LastSuccessful and SpecificDeployment. Possible values include:
+ * 'LastSuccessful', 'SpecificDeployment'.
+ */
+ @JsonProperty(value = "type")
+ private OnErrorDeploymentType type;
+
+ /**
+ * The deployment to be used on error case.
+ */
+ @JsonProperty(value = "deploymentName")
+ private String deploymentName;
+
+ /**
+ * Get the state of the provisioning for the on error deployment.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment'.
+ *
+ * @return the type value
+ */
+ public OnErrorDeploymentType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment'.
+ *
+ * @param type the type value to set
+ * @return the OnErrorDeploymentExtended object itself.
+ */
+ public OnErrorDeploymentExtended withType(OnErrorDeploymentType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the deployment to be used on error case.
+ *
+ * @return the deploymentName value
+ */
+ public String deploymentName() {
+ return this.deploymentName;
+ }
+
+ /**
+ * Set the deployment to be used on error case.
+ *
+ * @param deploymentName the deploymentName value to set
+ * @return the OnErrorDeploymentExtended object itself.
+ */
+ public OnErrorDeploymentExtended withDeploymentName(String deploymentName) {
+ this.deploymentName = deploymentName;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeploymentType.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeploymentType.java
new file mode 100644
index 0000000000000..da74f28c22364
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OnErrorDeploymentType.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for OnErrorDeploymentType.
+ */
+public enum OnErrorDeploymentType {
+ /** Enum value LastSuccessful. */
+ LAST_SUCCESSFUL("LastSuccessful"),
+
+ /** Enum value SpecificDeployment. */
+ SPECIFIC_DEPLOYMENT("SpecificDeployment");
+
+ /** The actual serialized value for a OnErrorDeploymentType instance. */
+ private String value;
+
+ OnErrorDeploymentType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a OnErrorDeploymentType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed OnErrorDeploymentType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static OnErrorDeploymentType fromString(String value) {
+ OnErrorDeploymentType[] items = OnErrorDeploymentType.values();
+ for (OnErrorDeploymentType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Operation.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Operation.java
new file mode 100644
index 0000000000000..5af92511ed76e
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Operation.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.OperationInner;
+
+/**
+ * Type representing Operation.
+ */
+public interface Operation extends HasInner, HasManager {
+ /**
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OperationDisplay.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OperationDisplay.java
new file mode 100644
index 0000000000000..2c54c2aad1292
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/OperationDisplay.java
@@ -0,0 +1,121 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The object that represents the operation.
+ */
+public class OperationDisplay {
+ /**
+ * Service provider: Microsoft.Resources.
+ */
+ @JsonProperty(value = "provider")
+ private String provider;
+
+ /**
+ * Resource on which the operation is performed: Profile, endpoint, etc.
+ */
+ @JsonProperty(value = "resource")
+ private String resource;
+
+ /**
+ * Operation type: Read, write, delete, etc.
+ */
+ @JsonProperty(value = "operation")
+ private String operation;
+
+ /**
+ * Description of the operation.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Get service provider: Microsoft.Resources.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Set service provider: Microsoft.Resources.
+ *
+ * @param provider the provider value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withProvider(String provider) {
+ this.provider = provider;
+ return this;
+ }
+
+ /**
+ * Get resource on which the operation is performed: Profile, endpoint, etc.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Set resource on which the operation is performed: Profile, endpoint, etc.
+ *
+ * @param resource the resource value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withResource(String resource) {
+ this.resource = resource;
+ return this;
+ }
+
+ /**
+ * Get operation type: Read, write, delete, etc.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Set operation type: Read, write, delete, etc.
+ *
+ * @param operation the operation value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withOperation(String operation) {
+ this.operation = operation;
+ return this;
+ }
+
+ /**
+ * Get description of the operation.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set description of the operation.
+ *
+ * @param description the description value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Operations.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Operations.java
new file mode 100644
index 0000000000000..9ff1d247a0631
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Operations.java
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.OperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Operations.
+ */
+public interface Operations extends HasInner {
+ /**
+ * Lists all of the available Microsoft.Resources REST API operations.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ParametersLink.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ParametersLink.java
new file mode 100644
index 0000000000000..d1a82ebdfcfdf
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ParametersLink.java
@@ -0,0 +1,69 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Entity representing the reference to the deployment parameters.
+ */
+public class ParametersLink {
+ /**
+ * The URI of the parameters file.
+ */
+ @JsonProperty(value = "uri", required = true)
+ private String uri;
+
+ /**
+ * If included, must match the ContentVersion in the template.
+ */
+ @JsonProperty(value = "contentVersion")
+ private String contentVersion;
+
+ /**
+ * Get the URI of the parameters file.
+ *
+ * @return the uri value
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Set the URI of the parameters file.
+ *
+ * @param uri the uri value to set
+ * @return the ParametersLink object itself.
+ */
+ public ParametersLink withUri(String uri) {
+ this.uri = uri;
+ return this;
+ }
+
+ /**
+ * Get if included, must match the ContentVersion in the template.
+ *
+ * @return the contentVersion value
+ */
+ public String contentVersion() {
+ return this.contentVersion;
+ }
+
+ /**
+ * Set if included, must match the ContentVersion in the template.
+ *
+ * @param contentVersion the contentVersion value to set
+ * @return the ParametersLink object itself.
+ */
+ public ParametersLink withContentVersion(String contentVersion) {
+ this.contentVersion = contentVersion;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Plan.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Plan.java
new file mode 100644
index 0000000000000..2f9f6055dfc39
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Plan.java
@@ -0,0 +1,147 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Plan for the resource.
+ */
+public class Plan {
+ /**
+ * The plan ID.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The publisher ID.
+ */
+ @JsonProperty(value = "publisher")
+ private String publisher;
+
+ /**
+ * The offer ID.
+ */
+ @JsonProperty(value = "product")
+ private String product;
+
+ /**
+ * The promotion code.
+ */
+ @JsonProperty(value = "promotionCode")
+ private String promotionCode;
+
+ /**
+ * The plan's version.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
+ /**
+ * Get the plan ID.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the plan ID.
+ *
+ * @param name the name value to set
+ * @return the Plan object itself.
+ */
+ public Plan withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the publisher ID.
+ *
+ * @return the publisher value
+ */
+ public String publisher() {
+ return this.publisher;
+ }
+
+ /**
+ * Set the publisher ID.
+ *
+ * @param publisher the publisher value to set
+ * @return the Plan object itself.
+ */
+ public Plan withPublisher(String publisher) {
+ this.publisher = publisher;
+ return this;
+ }
+
+ /**
+ * Get the offer ID.
+ *
+ * @return the product value
+ */
+ public String product() {
+ return this.product;
+ }
+
+ /**
+ * Set the offer ID.
+ *
+ * @param product the product value to set
+ * @return the Plan object itself.
+ */
+ public Plan withProduct(String product) {
+ this.product = product;
+ return this;
+ }
+
+ /**
+ * Get the promotion code.
+ *
+ * @return the promotionCode value
+ */
+ public String promotionCode() {
+ return this.promotionCode;
+ }
+
+ /**
+ * Set the promotion code.
+ *
+ * @param promotionCode the promotionCode value to set
+ * @return the Plan object itself.
+ */
+ public Plan withPromotionCode(String promotionCode) {
+ this.promotionCode = promotionCode;
+ return this;
+ }
+
+ /**
+ * Get the plan's version.
+ *
+ * @return the version value
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the plan's version.
+ *
+ * @param version the version value to set
+ * @return the Plan object itself.
+ */
+ public Plan withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Provider.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Provider.java
new file mode 100644
index 0000000000000..07d6fd68da649
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Provider.java
@@ -0,0 +1,48 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ProviderInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import java.util.List;
+
+/**
+ * Type representing Provider.
+ */
+public interface Provider extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the namespace value.
+ */
+ String namespace();
+
+ /**
+ * @return the registrationPolicy value.
+ */
+ String registrationPolicy();
+
+ /**
+ * @return the registrationState value.
+ */
+ String registrationState();
+
+ /**
+ * @return the resourceTypes value.
+ */
+ List resourceTypes();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ProviderResourceType.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ProviderResourceType.java
new file mode 100644
index 0000000000000..37d9280f077a3
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ProviderResourceType.java
@@ -0,0 +1,175 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Resource type managed by the resource provider.
+ */
+public class ProviderResourceType {
+ /**
+ * The resource type.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /**
+ * The collection of locations where this resource type can be created.
+ */
+ @JsonProperty(value = "locations")
+ private List locations;
+
+ /**
+ * The aliases that are supported by this resource type.
+ */
+ @JsonProperty(value = "aliases")
+ private List aliases;
+
+ /**
+ * The API version.
+ */
+ @JsonProperty(value = "apiVersions")
+ private List apiVersions;
+
+ /**
+ * The additional capabilities offered by this resource type.
+ */
+ @JsonProperty(value = "capabilities")
+ private String capabilities;
+
+ /**
+ * The properties.
+ */
+ @JsonProperty(value = "properties")
+ private Map properties;
+
+ /**
+ * Get the resource type.
+ *
+ * @return the resourceType value
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the resource type.
+ *
+ * @param resourceType the resourceType value to set
+ * @return the ProviderResourceType object itself.
+ */
+ public ProviderResourceType withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the collection of locations where this resource type can be created.
+ *
+ * @return the locations value
+ */
+ public List locations() {
+ return this.locations;
+ }
+
+ /**
+ * Set the collection of locations where this resource type can be created.
+ *
+ * @param locations the locations value to set
+ * @return the ProviderResourceType object itself.
+ */
+ public ProviderResourceType withLocations(List locations) {
+ this.locations = locations;
+ return this;
+ }
+
+ /**
+ * Get the aliases that are supported by this resource type.
+ *
+ * @return the aliases value
+ */
+ public List aliases() {
+ return this.aliases;
+ }
+
+ /**
+ * Set the aliases that are supported by this resource type.
+ *
+ * @param aliases the aliases value to set
+ * @return the ProviderResourceType object itself.
+ */
+ public ProviderResourceType withAliases(List aliases) {
+ this.aliases = aliases;
+ return this;
+ }
+
+ /**
+ * Get the API version.
+ *
+ * @return the apiVersions value
+ */
+ public List apiVersions() {
+ return this.apiVersions;
+ }
+
+ /**
+ * Set the API version.
+ *
+ * @param apiVersions the apiVersions value to set
+ * @return the ProviderResourceType object itself.
+ */
+ public ProviderResourceType withApiVersions(List apiVersions) {
+ this.apiVersions = apiVersions;
+ return this;
+ }
+
+ /**
+ * Get the additional capabilities offered by this resource type.
+ *
+ * @return the capabilities value
+ */
+ public String capabilities() {
+ return this.capabilities;
+ }
+
+ /**
+ * Set the additional capabilities offered by this resource type.
+ *
+ * @param capabilities the capabilities value to set
+ * @return the ProviderResourceType object itself.
+ */
+ public ProviderResourceType withCapabilities(String capabilities) {
+ this.capabilities = capabilities;
+ return this;
+ }
+
+ /**
+ * Get the properties.
+ *
+ * @return the properties value
+ */
+ public Map properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties.
+ *
+ * @param properties the properties value to set
+ * @return the ProviderResourceType object itself.
+ */
+ public ProviderResourceType withProperties(Map properties) {
+ this.properties = properties;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Providers.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Providers.java
new file mode 100644
index 0000000000000..ef4ba80c3d231
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Providers.java
@@ -0,0 +1,71 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ProvidersInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Providers.
+ */
+public interface Providers extends HasInner {
+ /**
+ * Unregisters a subscription from a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to unregister.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable unregisterAsync(String resourceProviderNamespace);
+
+ /**
+ * Registers a subscription with a resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider to register.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable registerAsync(String resourceProviderNamespace);
+
+ /**
+ * Gets the specified resource provider at the tenant level.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtTenantScopeAsync(String resourceProviderNamespace);
+
+ /**
+ * Gets all resource providers for the tenant.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAtTenantScopeAsync();
+
+ /**
+ * Gets the specified resource provider.
+ *
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceProviderNamespace);
+
+ /**
+ * Gets all resource providers for a subscription.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroup.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroup.java
new file mode 100644
index 0000000000000..18bb4cb2ac5b3
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroup.java
@@ -0,0 +1,203 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourceGroupInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import java.util.Map;
+
+/**
+ * Type representing ResourceGroup.
+ */
+public interface ResourceGroup extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the managedBy value.
+ */
+ String managedBy();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ ResourceGroupProperties properties();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the ResourceGroup definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSubscription, DefinitionStages.WithLocation, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of ResourceGroup definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a ResourceGroup definition.
+ */
+ interface Blank extends WithSubscription {
+ }
+
+ /**
+ * The stage of the resourcegroup definition allowing to specify Subscription.
+ */
+ interface WithSubscription {
+ /**
+ * Specifies .
+ * @return the next definition stage
+ */
+ WithLocation withExistingSubscription();
+ }
+
+ /**
+ * The stage of the resourcegroup definition allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location the location parameter value
+ * @return the next definition stage
+ */
+ WithCreate withLocation(String location);
+ }
+
+ /**
+ * The stage of the resourcegroup definition allowing to specify ManagedBy.
+ */
+ interface WithManagedBy {
+ /**
+ * Specifies managedBy.
+ * @param managedBy The ID of the resource that manages this resource group
+ * @return the next definition stage
+ */
+ WithCreate withManagedBy(String managedBy);
+ }
+
+ /**
+ * The stage of the resourcegroup definition allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties The resource group properties
+ * @return the next definition stage
+ */
+ WithCreate withProperties(ResourceGroupProperties properties);
+ }
+
+ /**
+ * The stage of the resourcegroup definition allowing to specify Tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies tags.
+ * @param tags the tags parameter value
+ * @return the next definition stage
+ */
+ WithCreate withTags(Map tags);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithManagedBy, DefinitionStages.WithProperties, DefinitionStages.WithTags {
+ }
+ }
+ /**
+ * The template for a ResourceGroup update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithManagedBy, UpdateStages.WithName, UpdateStages.WithProperties, UpdateStages.WithTags {
+ }
+
+ /**
+ * Grouping of ResourceGroup update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the resourcegroup update allowing to specify ManagedBy.
+ */
+ interface WithManagedBy {
+ /**
+ * Specifies managedBy.
+ * @param managedBy The ID of the resource that manages this resource group
+ * @return the next update stage
+ */
+ Update withManagedBy(String managedBy);
+ }
+
+ /**
+ * The stage of the resourcegroup update allowing to specify Name.
+ */
+ interface WithName {
+ /**
+ * Specifies name.
+ * @param name The name of the resource group
+ * @return the next update stage
+ */
+ Update withName(String name);
+ }
+
+ /**
+ * The stage of the resourcegroup update allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties The resource group properties
+ * @return the next update stage
+ */
+ Update withProperties(ResourceGroupProperties properties);
+ }
+
+ /**
+ * The stage of the resourcegroup update allowing to specify Tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies tags.
+ * @param tags The tags attached to the resource group
+ * @return the next update stage
+ */
+ Update withTags(Map tags);
+ }
+
+ }
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupExportResult.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupExportResult.java
new file mode 100644
index 0000000000000..121e35bc65618
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupExportResult.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourceGroupExportResultInner;
+
+/**
+ * Type representing ResourceGroupExportResult.
+ */
+public interface ResourceGroupExportResult extends HasInner, HasManager {
+ /**
+ * @return the error value.
+ */
+ ResourceManagementErrorWithDetails error();
+
+ /**
+ * @return the template value.
+ */
+ Object template();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupFilter.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupFilter.java
new file mode 100644
index 0000000000000..75f8e82021d2e
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupFilter.java
@@ -0,0 +1,69 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Resource group filter.
+ */
+public class ResourceGroupFilter {
+ /**
+ * The tag name.
+ */
+ @JsonProperty(value = "tagName")
+ private String tagName;
+
+ /**
+ * The tag value.
+ */
+ @JsonProperty(value = "tagValue")
+ private String tagValue;
+
+ /**
+ * Get the tag name.
+ *
+ * @return the tagName value
+ */
+ public String tagName() {
+ return this.tagName;
+ }
+
+ /**
+ * Set the tag name.
+ *
+ * @param tagName the tagName value to set
+ * @return the ResourceGroupFilter object itself.
+ */
+ public ResourceGroupFilter withTagName(String tagName) {
+ this.tagName = tagName;
+ return this;
+ }
+
+ /**
+ * Get the tag value.
+ *
+ * @return the tagValue value
+ */
+ public String tagValue() {
+ return this.tagValue;
+ }
+
+ /**
+ * Set the tag value.
+ *
+ * @param tagValue the tagValue value to set
+ * @return the ResourceGroupFilter object itself.
+ */
+ public ResourceGroupFilter withTagValue(String tagValue) {
+ this.tagValue = tagValue;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupPatchable.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupPatchable.java
new file mode 100644
index 0000000000000..d37f0fa882f6f
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupPatchable.java
@@ -0,0 +1,122 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Resource group information.
+ */
+public class ResourceGroupPatchable {
+ /**
+ * The name of the resource group.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The resource group properties.
+ */
+ @JsonProperty(value = "properties")
+ private ResourceGroupProperties properties;
+
+ /**
+ * The ID of the resource that manages this resource group.
+ */
+ @JsonProperty(value = "managedBy")
+ private String managedBy;
+
+ /**
+ * The tags attached to the resource group.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * Get the name of the resource group.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the resource group.
+ *
+ * @param name the name value to set
+ * @return the ResourceGroupPatchable object itself.
+ */
+ public ResourceGroupPatchable withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the resource group properties.
+ *
+ * @return the properties value
+ */
+ public ResourceGroupProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the resource group properties.
+ *
+ * @param properties the properties value to set
+ * @return the ResourceGroupPatchable object itself.
+ */
+ public ResourceGroupPatchable withProperties(ResourceGroupProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the ID of the resource that manages this resource group.
+ *
+ * @return the managedBy value
+ */
+ public String managedBy() {
+ return this.managedBy;
+ }
+
+ /**
+ * Set the ID of the resource that manages this resource group.
+ *
+ * @param managedBy the managedBy value to set
+ * @return the ResourceGroupPatchable object itself.
+ */
+ public ResourceGroupPatchable withManagedBy(String managedBy) {
+ this.managedBy = managedBy;
+ return this;
+ }
+
+ /**
+ * Get the tags attached to the resource group.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags attached to the resource group.
+ *
+ * @param tags the tags value to set
+ * @return the ResourceGroupPatchable object itself.
+ */
+ public ResourceGroupPatchable withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupProperties.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupProperties.java
new file mode 100644
index 0000000000000..db0351e7d84f5
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroupProperties.java
@@ -0,0 +1,32 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The resource group properties.
+ */
+public class ResourceGroupProperties {
+ /**
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * Get the provisioning state.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroups.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroups.java
new file mode 100644
index 0000000000000..665852fa9e7da
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceGroups.java
@@ -0,0 +1,67 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourceGroupsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing ResourceGroups.
+ */
+public interface ResourceGroups extends SupportsCreating, HasInner {
+ /**
+ * Checks whether a resource group exists.
+ *
+ * @param resourceGroupName The name of the resource group to check. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkExistenceAsync(String resourceGroupName);
+
+ /**
+ * Captures the specified resource group as a template.
+ *
+ * @param resourceGroupName The name of the resource group to export as a template.
+ * @param parameters Parameters for exporting the template.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable exportTemplateAsync(String resourceGroupName, ExportTemplateRequest parameters);
+
+ /**
+ * Gets a resource group.
+ *
+ * @param resourceGroupName The name of the resource group to get. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName);
+
+ /**
+ * Gets all the resource groups for a subscription.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+ /**
+ * Deletes a resource group.
+ * When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
+ *
+ * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName);
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceIdentityType.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceIdentityType.java
new file mode 100644
index 0000000000000..8e2d3999785e4
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceIdentityType.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for ResourceIdentityType.
+ */
+public enum ResourceIdentityType {
+ /** Enum value SystemAssigned. */
+ SYSTEM_ASSIGNED("SystemAssigned"),
+
+ /** Enum value UserAssigned. */
+ USER_ASSIGNED("UserAssigned"),
+
+ /** Enum value SystemAssigned, UserAssigned. */
+ SYSTEM_ASSIGNED_USER_ASSIGNED("SystemAssigned, UserAssigned"),
+
+ /** Enum value None. */
+ NONE("None");
+
+ /** The actual serialized value for a ResourceIdentityType instance. */
+ private String value;
+
+ ResourceIdentityType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ResourceIdentityType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ResourceIdentityType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ResourceIdentityType fromString(String value) {
+ ResourceIdentityType[] items = ResourceIdentityType.values();
+ for (ResourceIdentityType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceManagementErrorWithDetails.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceManagementErrorWithDetails.java
new file mode 100644
index 0000000000000..3ece195ee8285
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceManagementErrorWithDetails.java
@@ -0,0 +1,78 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The detailed error message of resource management.
+ */
+public class ResourceManagementErrorWithDetails {
+ /**
+ * The error code returned when exporting the template.
+ */
+ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
+ private String code;
+
+ /**
+ * The error message describing the export error.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * The target of the error.
+ */
+ @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
+ private String target;
+
+ /**
+ * Validation error.
+ */
+ @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
+ private List details;
+
+ /**
+ * Get the error code returned when exporting the template.
+ *
+ * @return the code value
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get the error message describing the export error.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the target of the error.
+ *
+ * @return the target value
+ */
+ public String target() {
+ return this.target;
+ }
+
+ /**
+ * Get validation error.
+ *
+ * @return the details value
+ */
+ public List details() {
+ return this.details;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceProviderOperationDisplayProperties.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceProviderOperationDisplayProperties.java
new file mode 100644
index 0000000000000..75d7541c61e69
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourceProviderOperationDisplayProperties.java
@@ -0,0 +1,147 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Resource provider operation's display properties.
+ */
+public class ResourceProviderOperationDisplayProperties {
+ /**
+ * Operation description.
+ */
+ @JsonProperty(value = "publisher")
+ private String publisher;
+
+ /**
+ * Operation provider.
+ */
+ @JsonProperty(value = "provider")
+ private String provider;
+
+ /**
+ * Operation resource.
+ */
+ @JsonProperty(value = "resource")
+ private String resource;
+
+ /**
+ * Resource provider operation.
+ */
+ @JsonProperty(value = "operation")
+ private String operation;
+
+ /**
+ * Operation description.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Get operation description.
+ *
+ * @return the publisher value
+ */
+ public String publisher() {
+ return this.publisher;
+ }
+
+ /**
+ * Set operation description.
+ *
+ * @param publisher the publisher value to set
+ * @return the ResourceProviderOperationDisplayProperties object itself.
+ */
+ public ResourceProviderOperationDisplayProperties withPublisher(String publisher) {
+ this.publisher = publisher;
+ return this;
+ }
+
+ /**
+ * Get operation provider.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Set operation provider.
+ *
+ * @param provider the provider value to set
+ * @return the ResourceProviderOperationDisplayProperties object itself.
+ */
+ public ResourceProviderOperationDisplayProperties withProvider(String provider) {
+ this.provider = provider;
+ return this;
+ }
+
+ /**
+ * Get operation resource.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Set operation resource.
+ *
+ * @param resource the resource value to set
+ * @return the ResourceProviderOperationDisplayProperties object itself.
+ */
+ public ResourceProviderOperationDisplayProperties withResource(String resource) {
+ this.resource = resource;
+ return this;
+ }
+
+ /**
+ * Get resource provider operation.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Set resource provider operation.
+ *
+ * @param operation the operation value to set
+ * @return the ResourceProviderOperationDisplayProperties object itself.
+ */
+ public ResourceProviderOperationDisplayProperties withOperation(String operation) {
+ this.operation = operation;
+ return this;
+ }
+
+ /**
+ * Get operation description.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set operation description.
+ *
+ * @param description the description value to set
+ * @return the ResourceProviderOperationDisplayProperties object itself.
+ */
+ public ResourceProviderOperationDisplayProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Resources.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Resources.java
new file mode 100644
index 0000000000000..8f35dbf30d58d
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Resources.java
@@ -0,0 +1,184 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import rx.Observable;
+import rx.Completable;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.GenericResourceInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Resources.
+ */
+public interface Resources extends HasInner {
+ /**
+ * Get all the resources in a subscription.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+ /**
+ * Checks by ID whether a resource exists.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkExistenceByIdAsync(String resourceId, String apiVersion);
+
+ /**
+ * Deletes a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteByIdAsync(String resourceId, String apiVersion);
+
+ /**
+ * Create a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Create or update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateByIdAsync(String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Updates a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Update resource parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable updateByIdAsync(String resourceId, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Gets a resource by ID.
+ *
+ * @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getByIdAsync(String resourceId, String apiVersion);
+
+ /**
+ * Get all the resources for a resource group.
+ *
+ * @param resourceGroupName The resource group with the resources to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByResourceGroupAsync(final String resourceGroupName);
+
+ /**
+ * Moves resources from one resource group to another resource group.
+ * The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes.
+ *
+ * @param sourceResourceGroupName The name of the resource group containing the resources to move.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable moveResourcesAsync(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * Validates whether resources can be moved from one resource group to another resource group.
+ * This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation.
+ *
+ * @param sourceResourceGroupName The name of the resource group containing the resources to validate for move.
+ * @param parameters Parameters for moving resources.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable validateMoveResourcesAsync(String sourceResourceGroupName, ResourcesMoveInfo parameters);
+
+ /**
+ * Checks whether a resource exists.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to check. The name is case insensitive.
+ * @param resourceProviderNamespace The resource provider of the resource to check.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to check whether it exists.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkExistenceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion);
+
+ /**
+ * Deletes a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type.
+ * @param resourceName The name of the resource to delete.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion);
+
+ /**
+ * Creates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to create.
+ * @param resourceName The name of the resource to create.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for creating or updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Updates a resource.
+ *
+ * @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource to update.
+ * @param resourceName The name of the resource to update.
+ * @param apiVersion The API version to use for the operation.
+ * @param parameters Parameters for updating the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable updateAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, GenericResourceInner parameters);
+
+ /**
+ * Gets a resource.
+ *
+ * @param resourceGroupName The name of the resource group containing the resource to get. The name is case insensitive.
+ * @param resourceProviderNamespace The namespace of the resource provider.
+ * @param parentResourcePath The parent resource identity.
+ * @param resourceType The resource type of the resource.
+ * @param resourceName The name of the resource to get.
+ * @param apiVersion The API version to use for the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion);
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourcesMoveInfo.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourcesMoveInfo.java
new file mode 100644
index 0000000000000..11f7a8921555d
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/ResourcesMoveInfo.java
@@ -0,0 +1,70 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Parameters of move resources.
+ */
+public class ResourcesMoveInfo {
+ /**
+ * The IDs of the resources.
+ */
+ @JsonProperty(value = "resources")
+ private List resources;
+
+ /**
+ * The target resource group.
+ */
+ @JsonProperty(value = "targetResourceGroup")
+ private String targetResourceGroup;
+
+ /**
+ * Get the IDs of the resources.
+ *
+ * @return the resources value
+ */
+ public List resources() {
+ return this.resources;
+ }
+
+ /**
+ * Set the IDs of the resources.
+ *
+ * @param resources the resources value to set
+ * @return the ResourcesMoveInfo object itself.
+ */
+ public ResourcesMoveInfo withResources(List resources) {
+ this.resources = resources;
+ return this;
+ }
+
+ /**
+ * Get the target resource group.
+ *
+ * @return the targetResourceGroup value
+ */
+ public String targetResourceGroup() {
+ return this.targetResourceGroup;
+ }
+
+ /**
+ * Set the target resource group.
+ *
+ * @param targetResourceGroup the targetResourceGroup value to set
+ * @return the ResourcesMoveInfo object itself.
+ */
+ public ResourcesMoveInfo withTargetResourceGroup(String targetResourceGroup) {
+ this.targetResourceGroup = targetResourceGroup;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Sku.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Sku.java
new file mode 100644
index 0000000000000..eb58ef6b52168
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Sku.java
@@ -0,0 +1,173 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * SKU for the resource.
+ */
+public class Sku {
+ /**
+ * The SKU name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The SKU tier.
+ */
+ @JsonProperty(value = "tier")
+ private String tier;
+
+ /**
+ * The SKU size.
+ */
+ @JsonProperty(value = "size")
+ private String size;
+
+ /**
+ * The SKU family.
+ */
+ @JsonProperty(value = "family")
+ private String family;
+
+ /**
+ * The SKU model.
+ */
+ @JsonProperty(value = "model")
+ private String model;
+
+ /**
+ * The SKU capacity.
+ */
+ @JsonProperty(value = "capacity")
+ private Integer capacity;
+
+ /**
+ * Get the SKU name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the SKU name.
+ *
+ * @param name the name value to set
+ * @return the Sku object itself.
+ */
+ public Sku withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the SKU tier.
+ *
+ * @return the tier value
+ */
+ public String tier() {
+ return this.tier;
+ }
+
+ /**
+ * Set the SKU tier.
+ *
+ * @param tier the tier value to set
+ * @return the Sku object itself.
+ */
+ public Sku withTier(String tier) {
+ this.tier = tier;
+ return this;
+ }
+
+ /**
+ * Get the SKU size.
+ *
+ * @return the size value
+ */
+ public String size() {
+ return this.size;
+ }
+
+ /**
+ * Set the SKU size.
+ *
+ * @param size the size value to set
+ * @return the Sku object itself.
+ */
+ public Sku withSize(String size) {
+ this.size = size;
+ return this;
+ }
+
+ /**
+ * Get the SKU family.
+ *
+ * @return the family value
+ */
+ public String family() {
+ return this.family;
+ }
+
+ /**
+ * Set the SKU family.
+ *
+ * @param family the family value to set
+ * @return the Sku object itself.
+ */
+ public Sku withFamily(String family) {
+ this.family = family;
+ return this;
+ }
+
+ /**
+ * Get the SKU model.
+ *
+ * @return the model value
+ */
+ public String model() {
+ return this.model;
+ }
+
+ /**
+ * Set the SKU model.
+ *
+ * @param model the model value to set
+ * @return the Sku object itself.
+ */
+ public Sku withModel(String model) {
+ this.model = model;
+ return this;
+ }
+
+ /**
+ * Get the SKU capacity.
+ *
+ * @return the capacity value
+ */
+ public Integer capacity() {
+ return this.capacity;
+ }
+
+ /**
+ * Set the SKU capacity.
+ *
+ * @param capacity the capacity value to set
+ * @return the Sku object itself.
+ */
+ public Sku withCapacity(Integer capacity) {
+ this.capacity = capacity;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagCount.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagCount.java
new file mode 100644
index 0000000000000..81eb277962048
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagCount.java
@@ -0,0 +1,69 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Tag count.
+ */
+public class TagCount {
+ /**
+ * Type of count.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /**
+ * Value of count.
+ */
+ @JsonProperty(value = "value")
+ private Integer value;
+
+ /**
+ * Get type of count.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set type of count.
+ *
+ * @param type the type value to set
+ * @return the TagCount object itself.
+ */
+ public TagCount withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get value of count.
+ *
+ * @return the value value
+ */
+ public Integer value() {
+ return this.value;
+ }
+
+ /**
+ * Set value of count.
+ *
+ * @param value the value value to set
+ * @return the TagCount object itself.
+ */
+ public TagCount withValue(Integer value) {
+ this.value = value;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagDetails.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagDetails.java
new file mode 100644
index 0000000000000..75f4fcd141f31
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagDetails.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.TagDetailsInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import java.util.List;
+
+/**
+ * Type representing TagDetails.
+ */
+public interface TagDetails extends HasInner, HasManager {
+ /**
+ * @return the count value.
+ */
+ TagCount count();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the tagName value.
+ */
+ String tagName();
+
+ /**
+ * @return the values value.
+ */
+ List values();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagValue.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagValue.java
new file mode 100644
index 0000000000000..b8f8ef0a0b075
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TagValue.java
@@ -0,0 +1,35 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2019_05_10.implementation.TagValueInner;
+
+/**
+ * Type representing TagValue.
+ */
+public interface TagValue extends HasInner, HasManager {
+ /**
+ * @return the count value.
+ */
+ TagCount count();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the tagValue value.
+ */
+ String tagValue();
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Tags.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Tags.java
new file mode 100644
index 0000000000000..0ed35a48adddc
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/Tags.java
@@ -0,0 +1,67 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.TagDetails;
+import rx.Completable;
+
+/**
+ * Type representing Tags.
+ */
+public interface Tags {
+ /**
+ * Gets the names and values of all resource tags that are defined in a subscription.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+ /**
+ * Deletes a tag from the subscription.
+ * You must remove all values from a resource tag before you can delete it.
+ *
+ * @param tagName The name of the tag.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String tagName);
+
+ /**
+ * Creates a tag in the subscription.
+ * The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes.
+ *
+ * @param tagName The name of the tag to create.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateAsync(String tagName);
+
+ /**
+ * Deletes a tag value.
+ *
+ * @param tagName The name of the tag.
+ * @param tagValue The value of the tag to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteValueAsync(String tagName, String tagValue);
+
+ /**
+ * Creates a tag value. The name of the tag must already exist.
+ *
+ * @param tagName The name of the tag.
+ * @param tagValue The value of the tag to create.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateValueAsync(String tagName, String tagValue);
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TargetResource.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TargetResource.java
new file mode 100644
index 0000000000000..a3c631871a308
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TargetResource.java
@@ -0,0 +1,95 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Target resource.
+ */
+public class TargetResource {
+ /**
+ * The ID of the resource.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * The name of the resource.
+ */
+ @JsonProperty(value = "resourceName")
+ private String resourceName;
+
+ /**
+ * The type of the resource.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /**
+ * Get the ID of the resource.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the ID of the resource.
+ *
+ * @param id the id value to set
+ * @return the TargetResource object itself.
+ */
+ public TargetResource withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the name of the resource.
+ *
+ * @return the resourceName value
+ */
+ public String resourceName() {
+ return this.resourceName;
+ }
+
+ /**
+ * Set the name of the resource.
+ *
+ * @param resourceName the resourceName value to set
+ * @return the TargetResource object itself.
+ */
+ public TargetResource withResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ /**
+ * Get the type of the resource.
+ *
+ * @return the resourceType value
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the type of the resource.
+ *
+ * @param resourceType the resourceType value to set
+ * @return the TargetResource object itself.
+ */
+ public TargetResource withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TemplateLink.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TemplateLink.java
new file mode 100644
index 0000000000000..fc139bee67327
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/TemplateLink.java
@@ -0,0 +1,69 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Entity representing the reference to the template.
+ */
+public class TemplateLink {
+ /**
+ * The URI of the template to deploy.
+ */
+ @JsonProperty(value = "uri", required = true)
+ private String uri;
+
+ /**
+ * If included, must match the ContentVersion in the template.
+ */
+ @JsonProperty(value = "contentVersion")
+ private String contentVersion;
+
+ /**
+ * Get the URI of the template to deploy.
+ *
+ * @return the uri value
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Set the URI of the template to deploy.
+ *
+ * @param uri the uri value to set
+ * @return the TemplateLink object itself.
+ */
+ public TemplateLink withUri(String uri) {
+ this.uri = uri;
+ return this;
+ }
+
+ /**
+ * Get if included, must match the ContentVersion in the template.
+ *
+ * @return the contentVersion value
+ */
+ public String contentVersion() {
+ return this.contentVersion;
+ }
+
+ /**
+ * Set if included, must match the ContentVersion in the template.
+ *
+ * @param contentVersion the contentVersion value to set
+ * @return the TemplateLink object itself.
+ */
+ public TemplateLink withContentVersion(String contentVersion) {
+ this.contentVersion = contentVersion;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExportResultImpl.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExportResultImpl.java
new file mode 100644
index 0000000000000..0764a8a2a9f45
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExportResultImpl.java
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentExportResult;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+
+class DeploymentExportResultImpl extends WrapperImpl implements DeploymentExportResult {
+ private final ResourcesManager manager;
+ DeploymentExportResultImpl(DeploymentExportResultInner inner, ResourcesManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public ResourcesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Object template() {
+ return this.inner().template();
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExportResultInner.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExportResultInner.java
new file mode 100644
index 0000000000000..eea5f9d225c03
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExportResultInner.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The deployment export result.
+ */
+public class DeploymentExportResultInner {
+ /**
+ * The template content.
+ */
+ @JsonProperty(value = "template")
+ private Object template;
+
+ /**
+ * Get the template content.
+ *
+ * @return the template value
+ */
+ public Object template() {
+ return this.template;
+ }
+
+ /**
+ * Set the template content.
+ *
+ * @param template the template value to set
+ * @return the DeploymentExportResultInner object itself.
+ */
+ public DeploymentExportResultInner withTemplate(Object template) {
+ this.template = template;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExtendedImpl.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExtendedImpl.java
new file mode 100644
index 0000000000000..12474ac90fc69
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExtendedImpl.java
@@ -0,0 +1,136 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentExtended;
+import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentProperties;
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentPropertiesExtended;
+import rx.functions.Func1;
+
+class DeploymentExtendedImpl extends CreatableUpdatableImpl implements DeploymentExtended, DeploymentExtended.Definition, DeploymentExtended.Update {
+ private final ResourcesManager manager;
+ private String groupId;
+ private String deploymentName;
+ private DeploymentInner createOrUpdateParameter;
+
+ DeploymentExtendedImpl(String name, ResourcesManager manager) {
+ super(name, new DeploymentExtendedInner());
+ this.manager = manager;
+ // Set resource name
+ this.deploymentName = name;
+ //
+ this.createOrUpdateParameter = new DeploymentInner();
+ }
+
+ DeploymentExtendedImpl(DeploymentExtendedInner inner, ResourcesManager manager) {
+ super(inner.name(), inner);
+ this.manager = manager;
+ // Set resource name
+ this.deploymentName = inner.name();
+ // set resource ancestor and positional variables
+ this.groupId = IdParsingUtils.getValueFromIdByName(inner.id(), "managementGroups");
+ this.deploymentName = IdParsingUtils.getValueFromIdByName(inner.id(), "deployments");
+ //
+ this.createOrUpdateParameter = new DeploymentInner();
+ }
+
+ @Override
+ public ResourcesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable createResourceAsync() {
+ DeploymentsInner client = this.manager().inner().deployments();
+ return client.createOrUpdateAtManagementGroupScopeAsync(this.groupId, this.deploymentName, this.createOrUpdateParameter)
+ .map(new Func1() {
+ @Override
+ public DeploymentExtendedInner call(DeploymentExtendedInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ public Observable updateResourceAsync() {
+ DeploymentsInner client = this.manager().inner().deployments();
+ return client.createOrUpdateAtManagementGroupScopeAsync(this.groupId, this.deploymentName, this.createOrUpdateParameter)
+ .map(new Func1() {
+ @Override
+ public DeploymentExtendedInner call(DeploymentExtendedInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ DeploymentsInner client = this.manager().inner().deployments();
+ return null; // NOP getInnerAsync implementation as get is not supported
+ }
+
+ @Override
+ public boolean isInCreateMode() {
+ return this.inner().id() == null;
+ }
+
+ private void resetCreateUpdateParameters() {
+ this.createOrUpdateParameter = new DeploymentInner();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String location() {
+ return this.inner().location();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public DeploymentPropertiesExtended properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+ @Override
+ public DeploymentExtendedImpl withExistingMicrosoft.Resource(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ @Override
+ public DeploymentExtendedImpl withProperties(DeploymentProperties properties) {
+ this.createOrUpdateParameter.withProperties(properties);
+ return this;
+ }
+
+ @Override
+ public DeploymentExtendedImpl withLocation(String location) {
+ this.createOrUpdateParameter.withLocation(location);
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExtendedInner.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExtendedInner.java
new file mode 100644
index 0000000000000..8818ca179e46f
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentExtendedInner.java
@@ -0,0 +1,71 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentPropertiesExtended;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Deployment information.
+ */
+public class DeploymentExtendedInner extends ProxyResource {
+ /**
+ * the location of the deployment.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /**
+ * Deployment properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeploymentPropertiesExtended properties;
+
+ /**
+ * Get the location of the deployment.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location of the deployment.
+ *
+ * @param location the location value to set
+ * @return the DeploymentExtendedInner object itself.
+ */
+ public DeploymentExtendedInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get deployment properties.
+ *
+ * @return the properties value
+ */
+ public DeploymentPropertiesExtended properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set deployment properties.
+ *
+ * @param properties the properties value to set
+ * @return the DeploymentExtendedInner object itself.
+ */
+ public DeploymentExtendedInner withProperties(DeploymentPropertiesExtended properties) {
+ this.properties = properties;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentInner.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentInner.java
new file mode 100644
index 0000000000000..a93d32a0d78f4
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentInner.java
@@ -0,0 +1,70 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment operation parameters.
+ */
+public class DeploymentInner {
+ /**
+ * The location to store the deployment data.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /**
+ * The deployment properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private DeploymentProperties properties;
+
+ /**
+ * Get the location to store the deployment data.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location to store the deployment data.
+ *
+ * @param location the location value to set
+ * @return the DeploymentInner object itself.
+ */
+ public DeploymentInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the deployment properties.
+ *
+ * @return the properties value
+ */
+ public DeploymentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the deployment properties.
+ *
+ * @param properties the properties value to set
+ * @return the DeploymentInner object itself.
+ */
+ public DeploymentInner withProperties(DeploymentProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationImpl.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationImpl.java
new file mode 100644
index 0000000000000..c9f4e4caa0508
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationImpl.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperation;
+import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl;
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperationProperties;
+
+class DeploymentOperationImpl extends IndexableRefreshableWrapperImpl implements DeploymentOperation {
+ private final ResourcesManager manager;
+ private String groupId;
+ private String deploymentName;
+ private String operationId;
+
+ DeploymentOperationImpl(DeploymentOperationInner inner, ResourcesManager manager) {
+ super(null, inner);
+ this.manager = manager;
+ // set resource ancestor and positional variables
+ this.groupId = IdParsingUtils.getValueFromIdByName(inner.id(), "managementGroups");
+ this.deploymentName = IdParsingUtils.getValueFromIdByName(inner.id(), "deployments");
+ this.operationId = IdParsingUtils.getValueFromIdByName(inner.id(), "operations");
+ }
+
+ @Override
+ public ResourcesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ DeploymentOperationsInner client = this.manager().inner().deploymentOperations();
+ return client.getAtManagementGroupScopeAsync(this.groupId, this.deploymentName, this.operationId);
+ }
+
+
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String operationId() {
+ return this.inner().operationId();
+ }
+
+ @Override
+ public DeploymentOperationProperties properties() {
+ return this.inner().properties();
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationInner.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationInner.java
new file mode 100644
index 0000000000000..2f3434696381d
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationInner.java
@@ -0,0 +1,74 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperationProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Deployment operation information.
+ */
+public class DeploymentOperationInner {
+ /**
+ * Full deployment operation ID.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Deployment operation ID.
+ */
+ @JsonProperty(value = "operationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String operationId;
+
+ /**
+ * Deployment properties.
+ */
+ @JsonProperty(value = "properties")
+ private DeploymentOperationProperties properties;
+
+ /**
+ * Get full deployment operation ID.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get deployment operation ID.
+ *
+ * @return the operationId value
+ */
+ public String operationId() {
+ return this.operationId;
+ }
+
+ /**
+ * Get deployment properties.
+ *
+ * @return the properties value
+ */
+ public DeploymentOperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set deployment properties.
+ *
+ * @param properties the properties value to set
+ * @return the DeploymentOperationInner object itself.
+ */
+ public DeploymentOperationInner withProperties(DeploymentOperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationsImpl.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationsImpl.java
new file mode 100644
index 0000000000000..beace75569a89
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationsImpl.java
@@ -0,0 +1,125 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ *
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations;
+import rx.Observable;
+import rx.functions.Func1;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperation;
+
+class DeploymentOperationsImpl extends WrapperImpl implements DeploymentOperations {
+ private final ResourcesManager manager;
+
+ DeploymentOperationsImpl(ResourcesManager manager) {
+ super(manager.inner().deploymentOperations());
+ this.manager = manager;
+ }
+
+ public ResourcesManager manager() {
+ return this.manager;
+ }
+
+ private DeploymentOperationImpl wrapModel(DeploymentOperationInner inner) {
+ return new DeploymentOperationImpl(inner, manager());
+ }
+
+ @Override
+ public Observable getAtSubscriptionScopeAsync(String deploymentName, String operationId) {
+ DeploymentOperationsInner client = this.inner();
+ return client.getAtSubscriptionScopeAsync(deploymentName, operationId)
+ .map(new Func1() {
+ @Override
+ public DeploymentOperation call(DeploymentOperationInner inner) {
+ return new DeploymentOperationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listAtSubscriptionScopeAsync(final String deploymentName) {
+ DeploymentOperationsInner client = this.inner();
+ return client.listAtSubscriptionScopeAsync(deploymentName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public DeploymentOperation call(DeploymentOperationInner inner) {
+ return new DeploymentOperationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable getAsync(String resourceGroupName, String deploymentName, String operationId) {
+ DeploymentOperationsInner client = this.inner();
+ return client.getAsync(resourceGroupName, deploymentName, operationId)
+ .map(new Func1() {
+ @Override
+ public DeploymentOperation call(DeploymentOperationInner inner) {
+ return new DeploymentOperationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listByResourceGroupAsync(final String resourceGroupName, final String deploymentName) {
+ DeploymentOperationsInner client = this.inner();
+ return client.listByResourceGroupAsync(resourceGroupName, deploymentName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public DeploymentOperation call(DeploymentOperationInner inner) {
+ return new DeploymentOperationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listAtManagementGroupScopeAsync(final String groupId, final String deploymentName) {
+ DeploymentOperationsInner client = this.inner();
+ return client.listAtManagementGroupScopeAsync(groupId, deploymentName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public DeploymentOperation call(DeploymentOperationInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public Observable getAtManagementGroupScopeAsync(String groupId, String deploymentName, String operationId) {
+ DeploymentOperationsInner client = this.inner();
+ return client.getAtManagementGroupScopeAsync(groupId, deploymentName, operationId)
+ .map(new Func1() {
+ @Override
+ public DeploymentOperation call(DeploymentOperationInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+}
diff --git a/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationsInner.java b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationsInner.java
new file mode 100644
index 0000000000000..55bbd608117e7
--- /dev/null
+++ b/resources/resource-manager/v2019_05_10/src/main/java/com/microsoft/azure/management/resources/v2019_05_10/implementation/DeploymentOperationsInner.java
@@ -0,0 +1,1413 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.resources.v2019_05_10.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.AzureServiceFuture;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.ListOperationCallback;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+import retrofit2.http.Url;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in DeploymentOperations.
+ */
+public class DeploymentOperationsInner {
+ /** The Retrofit service to perform REST calls. */
+ private DeploymentOperationsService service;
+ /** The service client containing this operation class. */
+ private ResourceManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DeploymentOperationsInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public DeploymentOperationsInner(Retrofit retrofit, ResourceManagementClientImpl client) {
+ this.service = retrofit.create(DeploymentOperationsService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DeploymentOperations to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface DeploymentOperationsService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations getAtManagementGroupScope" })
+ @GET("providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}")
+ Observable> getAtManagementGroupScope(@Path("groupId") String groupId, @Path("deploymentName") String deploymentName, @Path("operationId") String operationId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations listAtManagementGroupScope" })
+ @GET("providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations")
+ Observable> listAtManagementGroupScope(@Path("groupId") String groupId, @Path("deploymentName") String deploymentName, @Query("$top") Integer top, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations getAtSubscriptionScope" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}")
+ Observable> getAtSubscriptionScope(@Path("deploymentName") String deploymentName, @Path("operationId") String operationId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations listAtSubscriptionScope" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations")
+ Observable> listAtSubscriptionScope(@Path("deploymentName") String deploymentName, @Path("subscriptionId") String subscriptionId, @Query("$top") Integer top, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations get" })
+ @GET("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}")
+ Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("deploymentName") String deploymentName, @Path("operationId") String operationId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations listByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations")
+ Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("deploymentName") String deploymentName, @Path("subscriptionId") String subscriptionId, @Query("$top") Integer top, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations listAtManagementGroupScopeNext" })
+ @GET
+ Observable> listAtManagementGroupScopeNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations listAtSubscriptionScopeNext" })
+ @GET
+ Observable> listAtSubscriptionScopeNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_05_10.DeploymentOperations listByResourceGroupNext" })
+ @GET
+ Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the DeploymentOperationInner object if successful.
+ */
+ public DeploymentOperationInner getAtManagementGroupScope(String groupId, String deploymentName, String operationId) {
+ return getAtManagementGroupScopeWithServiceResponseAsync(groupId, deploymentName, operationId).toBlocking().single().body();
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAtManagementGroupScopeAsync(String groupId, String deploymentName, String operationId, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getAtManagementGroupScopeWithServiceResponseAsync(groupId, deploymentName, operationId), serviceCallback);
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the DeploymentOperationInner object
+ */
+ public Observable getAtManagementGroupScopeAsync(String groupId, String deploymentName, String operationId) {
+ return getAtManagementGroupScopeWithServiceResponseAsync(groupId, deploymentName, operationId).map(new Func1, DeploymentOperationInner>() {
+ @Override
+ public DeploymentOperationInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the DeploymentOperationInner object
+ */
+ public Observable> getAtManagementGroupScopeWithServiceResponseAsync(String groupId, String deploymentName, String operationId) {
+ if (groupId == null) {
+ throw new IllegalArgumentException("Parameter groupId is required and cannot be null.");
+ }
+ if (deploymentName == null) {
+ throw new IllegalArgumentException("Parameter deploymentName is required and cannot be null.");
+ }
+ if (operationId == null) {
+ throw new IllegalArgumentException("Parameter operationId is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.getAtManagementGroupScope(groupId, deploymentName, operationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getAtManagementGroupScopeDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getAtManagementGroupScopeDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<DeploymentOperationInner> object if successful.
+ */
+ public PagedList listAtManagementGroupScope(final String groupId, final String deploymentName) {
+ ServiceResponse> response = listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listAtManagementGroupScopeNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listAtManagementGroupScopeAsync(final String groupId, final String deploymentName, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listAtManagementGroupScopeNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<DeploymentOperationInner> object
+ */
+ public Observable> listAtManagementGroupScopeAsync(final String groupId, final String deploymentName) {
+ return listAtManagementGroupScopeWithServiceResponseAsync(groupId, deploymentName)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<DeploymentOperationInner> object
+ */
+ public Observable>> listAtManagementGroupScopeWithServiceResponseAsync(final String groupId, final String deploymentName) {
+ return listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listAtManagementGroupScopeNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<DeploymentOperationInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listAtManagementGroupScopeSinglePageAsync(final String groupId, final String deploymentName) {
+ if (groupId == null) {
+ throw new IllegalArgumentException("Parameter groupId is required and cannot be null.");
+ }
+ if (deploymentName == null) {
+ throw new IllegalArgumentException("Parameter deploymentName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ final Integer top = null;
+ return service.listAtManagementGroupScope(groupId, deploymentName, top, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listAtManagementGroupScopeDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<DeploymentOperationInner> object if successful.
+ */
+ public PagedList listAtManagementGroupScope(final String groupId, final String deploymentName, final Integer top) {
+ ServiceResponse> response = listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName, top).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listAtManagementGroupScopeNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listAtManagementGroupScopeAsync(final String groupId, final String deploymentName, final Integer top, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName, top),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listAtManagementGroupScopeNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<DeploymentOperationInner> object
+ */
+ public Observable> listAtManagementGroupScopeAsync(final String groupId, final String deploymentName, final Integer top) {
+ return listAtManagementGroupScopeWithServiceResponseAsync(groupId, deploymentName, top)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ * @param groupId The management group ID.
+ * @param deploymentName The name of the deployment.
+ * @param top The number of results to return.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<DeploymentOperationInner> object
+ */
+ public Observable>> listAtManagementGroupScopeWithServiceResponseAsync(final String groupId, final String deploymentName, final Integer top) {
+ return listAtManagementGroupScopeSinglePageAsync(groupId, deploymentName, top)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listAtManagementGroupScopeNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Gets all deployments operations for a deployment.
+ *
+ ServiceResponse> * @param groupId The management group ID.
+ ServiceResponse> * @param deploymentName The name of the deployment.
+ ServiceResponse> * @param top The number of results to return.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<DeploymentOperationInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listAtManagementGroupScopeSinglePageAsync(final String groupId, final String deploymentName, final Integer top) {
+ if (groupId == null) {
+ throw new IllegalArgumentException("Parameter groupId is required and cannot be null.");
+ }
+ if (deploymentName == null) {
+ throw new IllegalArgumentException("Parameter deploymentName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.listAtManagementGroupScope(groupId, deploymentName, top, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listAtManagementGroupScopeDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listAtManagementGroupScopeDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the DeploymentOperationInner object if successful.
+ */
+ public DeploymentOperationInner getAtSubscriptionScope(String deploymentName, String operationId) {
+ return getAtSubscriptionScopeWithServiceResponseAsync(deploymentName, operationId).toBlocking().single().body();
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAtSubscriptionScopeAsync(String deploymentName, String operationId, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getAtSubscriptionScopeWithServiceResponseAsync(deploymentName, operationId), serviceCallback);
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the DeploymentOperationInner object
+ */
+ public Observable getAtSubscriptionScopeAsync(String deploymentName, String operationId) {
+ return getAtSubscriptionScopeWithServiceResponseAsync(deploymentName, operationId).map(new Func1, DeploymentOperationInner>() {
+ @Override
+ public DeploymentOperationInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets a deployments operation.
+ *
+ * @param deploymentName The name of the deployment.
+ * @param operationId The ID of the operation to get.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the DeploymentOperationInner object
+ */
+ public Observable> getAtSubscriptionScopeWithServiceResponseAsync(String deploymentName, String operationId) {
+ if (deploymentName == null) {
+ throw new IllegalArgumentException("Parameter deploymentName is required and cannot be null.");
+ }
+ if (operationId == null) {
+ throw new IllegalArgumentException("Parameter operationId is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.getAtSubscriptionScope(deploymentName, operationId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1