diff --git a/sdk/resources/mgmt-v2018_02_01/pom.xml b/sdk/resources/mgmt-v2018_02_01/pom.xml
index 2b1d6d0b2483..422e8edf74c6 100644
--- a/sdk/resources/mgmt-v2018_02_01/pom.xml
+++ b/sdk/resources/mgmt-v2018_02_01/pom.xml
@@ -11,15 +11,15 @@
com.microsoft.azure
azure-arm-parent
- 1.2.0
- ../../parents/azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-resources
- 1.0.0-beta-1
+ 1.0.0-beta
jar
Microsoft Azure SDK for Resources Management
This package contains Microsoft Resources Management SDK.
- https://github.com/Azure/azure-libraries-for-java
+ https://github.com/Azure/azure-sdk-for-java
The MIT License (MIT)
@@ -28,8 +28,8 @@
- scm:git:https://github.com/Azure/azure-libraries-for-java
- scm:git:git@github.com:Azure/azure-libraries-for-java.git
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
HEAD
@@ -71,6 +71,8 @@
azure-arm-client-runtime
test-jar
test
+
+ 1.6.5
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentExtended.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentExtended.java
index e1dec4004aec..b15b190ad025 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentExtended.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentExtended.java
@@ -59,6 +59,8 @@ interface Blank extends WithResourceGroupName {
interface WithResourceGroupName {
/**
* Specifies resourceGroupName.
+ * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist
+ * @return the next definition stage
*/
WithProperties withResourceGroupName(String resourceGroupName);
}
@@ -69,6 +71,8 @@ interface WithResourceGroupName {
interface WithProperties {
/**
* Specifies properties.
+ * @param properties The deployment properties
+ * @return the next definition stage
*/
WithCreate withProperties(DeploymentProperties properties);
}
@@ -97,6 +101,8 @@ interface UpdateStages {
interface WithProperties {
/**
* Specifies properties.
+ * @param properties The deployment properties
+ * @return the next update stage
*/
Update withProperties(DeploymentProperties properties);
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentPropertiesExtended.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentPropertiesExtended.java
index 2a3eb61e53fc..61027f45b92a 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentPropertiesExtended.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/DeploymentPropertiesExtended.java
@@ -36,7 +36,7 @@ public class DeploymentPropertiesExtended {
private DateTime timestamp;
/**
- * Key/value pairs that represent deploymentoutput.
+ * Key/value pairs that represent deployment output.
*/
@JsonProperty(value = "outputs")
private Object outputs;
@@ -126,7 +126,7 @@ public DateTime timestamp() {
}
/**
- * Get key/value pairs that represent deploymentoutput.
+ * Get key/value pairs that represent deployment output.
*
* @return the outputs value
*/
@@ -135,7 +135,7 @@ public Object outputs() {
}
/**
- * Set key/value pairs that represent deploymentoutput.
+ * Set key/value pairs that represent deployment output.
*
* @param outputs the outputs value to set
* @return the DeploymentPropertiesExtended object itself.
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Deployments.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Deployments.java
index ab1b9412c9c4..000dddfa36c1 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Deployments.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Deployments.java
@@ -30,7 +30,7 @@ public interface Deployments extends SupportsCreating checkExistenceAsync(String resourceGroupName, String deploymentName);
/**
* Cancels a currently running template deployment.
@@ -64,4 +64,13 @@ public interface Deployments extends SupportsCreating exportTemplateAsync(String resourceGroupName, String deploymentName);
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable calculateTemplateHashAsync(Object template);
+
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ErrorAdditionalInfo.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ErrorAdditionalInfo.java
new file mode 100644
index 000000000000..3d370cd02128
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ErrorAdditionalInfo.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.v2018_02_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The resource management error additional info.
+ */
+public class ErrorAdditionalInfo {
+ /**
+ * The additional info type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * The additional info.
+ */
+ @JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
+ private Object info;
+
+ /**
+ * Get the additional info type.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the additional info.
+ *
+ * @return the info value
+ */
+ public Object info() {
+ return this.info;
+ }
+
+}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ErrorResponse.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ErrorResponse.java
new file mode 100644
index 000000000000..6ee66014a1d2
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ErrorResponse.java
@@ -0,0 +1,96 @@
+/**
+ * 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.v2018_02_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Error Response.
+ * Common error response for all Azure Resource Manager APIs to return error
+ * details for failed operations. (This also follows the OData error response
+ * format.).
+ */
+public class ErrorResponse {
+ /**
+ * The error code.
+ */
+ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
+ private String code;
+
+ /**
+ * The error message.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * The error target.
+ */
+ @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
+ private String target;
+
+ /**
+ * The error details.
+ */
+ @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
+ private List details;
+
+ /**
+ * The error additional info.
+ */
+ @JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private List additionalInfo;
+
+ /**
+ * Get the error code.
+ *
+ * @return the code value
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get the error message.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the error target.
+ *
+ * @return the target value
+ */
+ public String target() {
+ return this.target;
+ }
+
+ /**
+ * Get the error details.
+ *
+ * @return the details value
+ */
+ public List details() {
+ return this.details;
+ }
+
+ /**
+ * Get the error additional info.
+ *
+ * @return the additionalInfo value
+ */
+ public List additionalInfo() {
+ return this.additionalInfo;
+ }
+
+}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ExportTemplateRequest.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ExportTemplateRequest.java
index 3c7c218923a0..eda948928615 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ExportTemplateRequest.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ExportTemplateRequest.java
@@ -16,23 +16,23 @@
*/
public class ExportTemplateRequest {
/**
- * The IDs of the resources. The only supported string currently is '*'
- * (all resources). Future updates will support exporting specific
- * resources.
+ * 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. Supported values include
- * 'IncludeParameterDefaultValue', 'IncludeComments' or
- * 'IncludeParameterDefaultValue, IncludeComments.
+ * 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. The only supported string currently is '*' (all resources). Future updates will support exporting specific resources.
+ * 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
*/
@@ -41,7 +41,7 @@ public List resources() {
}
/**
- * Set the IDs of the resources. The only supported string currently is '*' (all resources). Future updates will support exporting specific 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.
@@ -52,7 +52,7 @@ public ExportTemplateRequest withResources(List resources) {
}
/**
- * Get the export template options. Supported values include 'IncludeParameterDefaultValue', 'IncludeComments' or 'IncludeParameterDefaultValue, IncludeComments.
+ * Get the export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
*
* @return the options value
*/
@@ -61,7 +61,7 @@ public String options() {
}
/**
- * Set the export template options. Supported values include 'IncludeParameterDefaultValue', 'IncludeComments' or 'IncludeParameterDefaultValue, IncludeComments.
+ * 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.
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResource.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResource.java
index 68507a7e3d33..4575d23a61a4 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResource.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResource.java
@@ -9,9 +9,9 @@
package com.microsoft.azure.management.resources.v2018_02_01;
import com.microsoft.azure.arm.model.HasInner;
-import com.microsoft.azure.management.resources.v2018_02_01.implementation.GenericResourceInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.resources.v2018_02_01.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2018_02_01.implementation.GenericResourceInner;
import java.util.Map;
/**
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResourceExpanded.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResourceExpanded.java
new file mode 100644
index 000000000000..7b06fea95425
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/GenericResourceExpanded.java
@@ -0,0 +1,92 @@
+/**
+ * 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.v2018_02_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.resources.v2018_02_01.implementation.GenericResourceExpandedInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2018_02_01.implementation.ResourcesManager;
+import org.joda.time.DateTime;
+import java.util.Map;
+
+/**
+ * Type representing GenericResourceExpanded.
+ */
+public interface GenericResourceExpanded extends HasInner, HasManager {
+ /**
+ * @return the changedTime value.
+ */
+ DateTime changedTime();
+
+ /**
+ * @return the createdTime value.
+ */
+ DateTime createdTime();
+
+ /**
+ * @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 provisioningState value.
+ */
+ String provisioningState();
+
+ /**
+ * @return the sku value.
+ */
+ Sku sku();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ParametersLink.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ParametersLink.java
index 6e7632d8f555..ba8711528d53 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ParametersLink.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ParametersLink.java
@@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * Entity representing the reference to the deployment paramaters.
+ * Entity representing the reference to the deployment parameters.
*/
public class ParametersLink {
/**
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroup.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroup.java
index 3652cf418a5b..5b57231a7e3c 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroup.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroup.java
@@ -75,6 +75,7 @@ interface Blank extends WithSubscription {
interface WithSubscription {
/**
* Specifies .
+ * @return the next definition stage
*/
WithLocation withExistingSubscription();
}
@@ -85,6 +86,8 @@ interface WithSubscription {
interface WithLocation {
/**
* Specifies location.
+ * @param location The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations
+ * @return the next definition stage
*/
WithCreate withLocation(String location);
}
@@ -95,6 +98,8 @@ interface WithLocation {
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);
}
@@ -105,6 +110,8 @@ interface WithManagedBy {
interface WithName {
/**
* Specifies name.
+ * @param name The name of the resource group
+ * @return the next definition stage
*/
WithCreate withName(String name);
}
@@ -115,6 +122,8 @@ interface WithName {
interface WithProperties {
/**
* Specifies properties.
+ * @param properties the properties parameter value
+ * @return the next definition stage
*/
WithCreate withProperties(ResourceGroupProperties properties);
}
@@ -125,6 +134,8 @@ interface WithProperties {
interface WithTags {
/**
* Specifies tags.
+ * @param tags The tags attached to the resource group
+ * @return the next definition stage
*/
WithCreate withTags(Map tags);
}
@@ -153,6 +164,8 @@ interface UpdateStages {
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);
}
@@ -163,6 +176,8 @@ interface WithManagedBy {
interface WithName {
/**
* Specifies name.
+ * @param name The name of the resource group
+ * @return the next update stage
*/
Update withName(String name);
}
@@ -173,6 +188,8 @@ interface WithName {
interface WithProperties {
/**
* Specifies properties.
+ * @param properties the properties parameter value
+ * @return the next update stage
*/
Update withProperties(ResourceGroupProperties properties);
}
@@ -183,6 +200,8 @@ interface WithProperties {
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/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroups.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroups.java
index aa21480a91ca..9393810d6c62 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroups.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/ResourceGroups.java
@@ -25,7 +25,7 @@ public interface ResourceGroups extends SupportsCreating checkExistenceAsync(String resourceGroupName);
/**
* Captures the specified resource group as a template.
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Resources.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Resources.java
index ea0f13adfa3d..3f0bf6ce9467 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Resources.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/Resources.java
@@ -24,7 +24,7 @@ public interface Resources extends HasInner {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listAsync();
+ Observable listAsync();
/**
* Checks by ID whether a resource exists.
@@ -34,7 +34,7 @@ public interface Resources extends HasInner {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Completable checkExistenceByIdAsync(String resourceId, String apiVersion);
+ Observable checkExistenceByIdAsync(String resourceId, String apiVersion);
/**
* Deletes a resource by ID.
@@ -85,7 +85,7 @@ public interface Resources extends HasInner {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listByResourceGroupAsync(final String resourceGroupName);
+ Observable listByResourceGroupAsync(final String resourceGroupName);
/**
* Moves resources from one resource group to another resource group.
@@ -121,7 +121,7 @@ public interface Resources extends HasInner {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Completable checkExistenceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion);
+ Observable checkExistenceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion);
/**
* Deletes a resource.
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/TagOperations.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/TagOperations.java
new file mode 100644
index 000000000000..7be77f426529
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/TagOperations.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.v2018_02_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.resources.v2018_02_01.TagDetails;
+import rx.Completable;
+
+/**
+ * Type representing TagOperations.
+ */
+public interface TagOperations {
+ /**
+ * 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/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/TemplateHashResult.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/TemplateHashResult.java
new file mode 100644
index 000000000000..35c7894b0a0e
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/TemplateHashResult.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.v2018_02_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.resources.v2018_02_01.implementation.ResourcesManager;
+import com.microsoft.azure.management.resources.v2018_02_01.implementation.TemplateHashResultInner;
+
+/**
+ * Type representing TemplateHashResult.
+ */
+public interface TemplateHashResult extends HasInner, HasManager {
+ /**
+ * @return the minifiedTemplate value.
+ */
+ String minifiedTemplate();
+
+ /**
+ * @return the templateHash value.
+ */
+ String templateHash();
+
+}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentExtendedImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentExtendedImpl.java
index 62c9568f500b..5a1230b0f757 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentExtendedImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentExtendedImpl.java
@@ -38,10 +38,10 @@ class DeploymentExtendedImpl extends CreatableUpdatableImpl getDeploymentOperationInnerUsingDep
public Observable getAsync(String resourceGroupName, String deploymentName, String operationId) {
DeploymentOperationsInner client = this.inner();
return client.getAsync(resourceGroupName, deploymentName, operationId)
- .map(new Func1() {
+ .flatMap(new Func1>() {
@Override
- public DeploymentOperation call(DeploymentOperationInner inner) {
- return wrapDeploymentOperationModel(inner);
+ public Observable call(DeploymentOperationInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((DeploymentOperation)wrapDeploymentOperationModel(inner));
+ }
}
});
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsImpl.java
index 836d208a1757..c08d8e325cec 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsImpl.java
@@ -25,6 +25,7 @@
import com.microsoft.rest.ServiceCallback;
import com.microsoft.azure.management.resources.v2018_02_01.DeploymentValidateResult;
import com.microsoft.azure.management.resources.v2018_02_01.DeploymentExportResult;
+import com.microsoft.azure.management.resources.v2018_02_01.TemplateHashResult;
import com.microsoft.azure.management.resources.v2018_02_01.DeploymentProperties;
import com.microsoft.azure.arm.utils.PagedListConverter;
import com.microsoft.azure.management.resources.v2018_02_01.DeploymentExtended;
@@ -62,10 +63,10 @@ private DeploymentExtendedImpl wrapModel(String name) {
}
@Override
- public Completable checkExistenceAsync(String resourceGroupName, String deploymentName) {
+ public Observable checkExistenceAsync(String resourceGroupName, String deploymentName) {
DeploymentsInner client = this.inner();
- return client.checkExistenceAsync(resourceGroupName, deploymentName).toCompletable();
- }
+ return client.checkExistenceAsync(resourceGroupName, deploymentName)
+ ;}
@Override
public Completable cancelAsync(String resourceGroupName, String deploymentName) {
@@ -97,6 +98,18 @@ public DeploymentExportResult call(DeploymentExportResultInner inner) {
});
}
+ @Override
+ public Observable calculateTemplateHashAsync(Object template) {
+ DeploymentsInner client = this.inner();
+ return client.calculateTemplateHashAsync(template)
+ .map(new Func1() {
+ @Override
+ public TemplateHashResult call(TemplateHashResultInner inner) {
+ return new TemplateHashResultImpl(inner, manager());
+ }
+ });
+ }
+
@Override
public PagedList listByResourceGroup(String resourceGroupName) {
DeploymentsInner client = this.inner();
@@ -133,10 +146,14 @@ public DeploymentExtended getByResourceGroup(String resourceGroupName, String na
@Override
public Observable getByResourceGroupAsync(String resourceGroupName, String name) {
- return this.getInnerAsync(resourceGroupName, name).map(new Func1 () {
+ return this.getInnerAsync(resourceGroupName, name).flatMap(new Func1> () {
@Override
- public DeploymentExtended call(DeploymentExtendedInner innerT) {
- return wrapModel(innerT);
+ public Observable call(DeploymentExtendedInner innerT) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((DeploymentExtended)wrapModel(innerT));
+ }
}
});
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java
index d27b9c280b97..4aeeaf57d736 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/DeploymentsInner.java
@@ -106,6 +106,10 @@ interface DeploymentsService {
@GET("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/")
Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("$filter") String filter, @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.v2018_02_01.Deployments calculateTemplateHash" })
+ @POST("providers/Microsoft.Resources/calculateTemplateHash")
+ Observable> calculateTemplateHash(@Query("api-version") String apiVersion, @Body Object template, @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.v2018_02_01.Deployments listByResourceGroupNext" })
@GET
Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@@ -1138,6 +1142,82 @@ private ServiceResponse> listByResourceGroupDe
.build(response);
}
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @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 TemplateHashResultInner object if successful.
+ */
+ public TemplateHashResultInner calculateTemplateHash(Object template) {
+ return calculateTemplateHashWithServiceResponseAsync(template).toBlocking().single().body();
+ }
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @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 calculateTemplateHashAsync(Object template, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(calculateTemplateHashWithServiceResponseAsync(template), serviceCallback);
+ }
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the TemplateHashResultInner object
+ */
+ public Observable calculateTemplateHashAsync(Object template) {
+ return calculateTemplateHashWithServiceResponseAsync(template).map(new Func1, TemplateHashResultInner>() {
+ @Override
+ public TemplateHashResultInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Calculate the hash of the given template.
+ *
+ * @param template The template provided to calculate hash.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the TemplateHashResultInner object
+ */
+ public Observable> calculateTemplateHashWithServiceResponseAsync(Object template) {
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ if (template == null) {
+ throw new IllegalArgumentException("Parameter template is required and cannot be null.");
+ }
+ return service.calculateTemplateHash(this.client.apiVersion(), template, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = calculateTemplateHashDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse calculateTemplateHashDelegate(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);
+ }
+
/**
* Get all the deployments for a resource group.
*
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceExpandedImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceExpandedImpl.java
new file mode 100644
index 000000000000..b8c65cfc1c03
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceExpandedImpl.java
@@ -0,0 +1,105 @@
+/**
+ * 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.v2018_02_01.implementation;
+
+import com.microsoft.azure.management.resources.v2018_02_01.GenericResourceExpanded;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import rx.Observable;
+import org.joda.time.DateTime;
+import com.microsoft.azure.management.resources.v2018_02_01.Identity;
+import com.microsoft.azure.management.resources.v2018_02_01.Plan;
+import com.microsoft.azure.management.resources.v2018_02_01.Sku;
+import java.util.Map;
+
+class GenericResourceExpandedImpl extends WrapperImpl implements GenericResourceExpanded {
+ private final ResourcesManager manager;
+
+ GenericResourceExpandedImpl(GenericResourceExpandedInner inner, ResourcesManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public ResourcesManager manager() {
+ return this.manager;
+ }
+
+
+
+ @Override
+ public DateTime changedTime() {
+ return this.inner().changedTime();
+ }
+
+ @Override
+ public DateTime createdTime() {
+ return this.inner().createdTime();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public Identity identity() {
+ return this.inner().identity();
+ }
+
+ @Override
+ public String kind() {
+ return this.inner().kind();
+ }
+
+ @Override
+ public String location() {
+ return this.inner().location();
+ }
+
+ @Override
+ public String managedBy() {
+ return this.inner().managedBy();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public Plan plan() {
+ return this.inner().plan();
+ }
+
+ @Override
+ public Object properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String provisioningState() {
+ return this.inner().provisioningState();
+ }
+
+ @Override
+ public Sku sku() {
+ return this.inner().sku();
+ }
+
+ @Override
+ public Map tags() {
+ return this.inner().getTags();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceExpandedInner.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceExpandedInner.java
new file mode 100644
index 000000000000..a27b71766481
--- /dev/null
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceExpandedInner.java
@@ -0,0 +1,66 @@
+/**
+ * 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.v2018_02_01.implementation;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Resource information.
+ */
+public class GenericResourceExpandedInner extends GenericResourceInner {
+ /**
+ * The created time of the resource. This is only present if requested via
+ * the $expand query parameter.
+ */
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime createdTime;
+
+ /**
+ * The changed time of the resource. This is only present if requested via
+ * the $expand query parameter.
+ */
+ @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime changedTime;
+
+ /**
+ * The provisioning state of the resource. This is only present if
+ * requested via the $expand query parameter.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * Get the created time of the resource. This is only present if requested via the $expand query parameter.
+ *
+ * @return the createdTime value
+ */
+ public DateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Get the changed time of the resource. This is only present if requested via the $expand query parameter.
+ *
+ * @return the changedTime value
+ */
+ public DateTime changedTime() {
+ return this.changedTime;
+ }
+
+ /**
+ * Get the provisioning state of the resource. This is only present if requested via the $expand query parameter.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceImpl.java
index 4b8337cbdb17..9bb24fc8e8ca 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/GenericResourceImpl.java
@@ -10,7 +10,6 @@
import com.microsoft.azure.management.resources.v2018_02_01.GenericResource;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
-import rx.Observable;
import com.microsoft.azure.management.resources.v2018_02_01.Identity;
import com.microsoft.azure.management.resources.v2018_02_01.Plan;
import com.microsoft.azure.management.resources.v2018_02_01.Sku;
@@ -18,8 +17,7 @@
class GenericResourceImpl extends WrapperImpl implements GenericResource {
private final ResourcesManager manager;
-
- GenericResourceImpl(GenericResourceInner inner, ResourcesManager manager) {
+ GenericResourceImpl(GenericResourceInner inner, ResourcesManager manager) {
super(inner);
this.manager = manager;
}
@@ -29,8 +27,6 @@ public ResourcesManager manager() {
return this.manager;
}
-
-
@Override
public String id() {
return this.inner().id();
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ProviderImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ProviderImpl.java
index e4a5ffdec2fa..331a1cbbb450 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ProviderImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ProviderImpl.java
@@ -21,6 +21,7 @@ class ProviderImpl extends IndexableRefreshableWrapperImpl getAsync(String resourceProviderNamespace) {
ProvidersInner client = this.inner();
return client.getAsync(resourceProviderNamespace)
- .map(new Func1() {
+ .flatMap(new Func1>() {
@Override
- public Provider call(ProviderInner inner) {
- return wrapModel(inner);
+ public Observable call(ProviderInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((Provider)wrapModel(inner));
+ }
}
});
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceGroupImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceGroupImpl.java
index 14124db60cd4..e5badb294a14 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceGroupImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceGroupImpl.java
@@ -35,7 +35,7 @@ class ResourceGroupImpl extends CreatableUpdatableImpl checkExistenceAsync(String resourceGroupName) {
ResourceGroupsInner client = this.inner();
- return client.checkExistenceAsync(resourceGroupName).toCompletable();
- }
+ return client.checkExistenceAsync(resourceGroupName)
+ ;}
@Override
public Observable exportTemplateAsync(String resourceGroupName, ExportTemplateRequest parameters) {
@@ -84,10 +84,14 @@ public ResourceGroup call(ResourceGroupInner inner) {
public Observable getAsync(String resourceGroupName) {
ResourceGroupsInner client = this.inner();
return client.getAsync(resourceGroupName)
- .map(new Func1() {
+ .flatMap(new Func1>() {
@Override
- public ResourceGroup call(ResourceGroupInner inner) {
- return wrapModel(inner);
+ public Observable call(ResourceGroupInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((ResourceGroup)wrapModel(inner));
+ }
}
});
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceManagementClientImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceManagementClientImpl.java
index 1ca867bc55a3..60c32fa23f16 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceManagementClientImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourceManagementClientImpl.java
@@ -63,11 +63,11 @@ public String apiVersion() {
return this.apiVersion;
}
- /** Gets or sets the preferred language for the response. */
+ /** The preferred language for the response. */
private String acceptLanguage;
/**
- * Gets Gets or sets the preferred language for the response.
+ * Gets The preferred language for the response.
*
* @return the acceptLanguage value.
*/
@@ -76,7 +76,7 @@ public String acceptLanguage() {
}
/**
- * Sets Gets or sets the preferred language for the response.
+ * Sets The preferred language for the response.
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
@@ -86,11 +86,11 @@ public ResourceManagementClientImpl withAcceptLanguage(String acceptLanguage) {
return this;
}
- /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */
+ /** The retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;
/**
- * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
+ * Gets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @return the longRunningOperationRetryTimeout value.
*/
@@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() {
}
/**
- * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
+ * Sets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
@@ -109,11 +109,11 @@ public ResourceManagementClientImpl withLongRunningOperationRetryTimeout(int lon
return this;
}
- /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
+ /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
private boolean generateClientRequestId;
/**
- * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
+ * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @return the generateClientRequestId value.
*/
@@ -122,7 +122,7 @@ public boolean generateClientRequestId() {
}
/**
- * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
+ * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
@@ -185,16 +185,16 @@ public ResourceGroupsInner resourceGroups() {
}
/**
- * The TagsInner object to access its operations.
+ * The TagOperationsInner object to access its operations.
*/
- private TagsInner tags;
+ private TagOperationsInner tagOperations;
/**
- * Gets the TagsInner object to access its operations.
- * @return the TagsInner object.
+ * Gets the TagOperationsInner object to access its operations.
+ * @return the TagOperationsInner object.
*/
- public TagsInner tags() {
- return this.tags;
+ public TagOperationsInner tagOperations() {
+ return this.tagOperations;
}
/**
@@ -249,7 +249,7 @@ protected void initialize() {
this.providers = new ProvidersInner(restClient().retrofit(), this);
this.resources = new ResourcesInner(restClient().retrofit(), this);
this.resourceGroups = new ResourceGroupsInner(restClient().retrofit(), this);
- this.tags = new TagsInner(restClient().retrofit(), this);
+ this.tagOperations = new TagOperationsInner(restClient().retrofit(), this);
this.deploymentOperations = new DeploymentOperationsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}
@@ -261,6 +261,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
- return String.format("%s (%s, %s)", super.userAgent(), "ResourceManagementClient", "2018-02-01");
+ return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "ResourceManagementClient", "2018-02-01");
}
}
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesImpl.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesImpl.java
index 7d31838c0946..e7f66e380282 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesImpl.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesImpl.java
@@ -15,6 +15,7 @@
import rx.functions.Func1;
import com.microsoft.azure.Page;
import rx.Completable;
+import com.microsoft.azure.management.resources.v2018_02_01.GenericResourceExpanded;
import com.microsoft.azure.management.resources.v2018_02_01.GenericResource;
import com.microsoft.azure.management.resources.v2018_02_01.ResourcesMoveInfo;
@@ -30,33 +31,33 @@ public ResourcesManager manager() {
return this.manager;
}
- private GenericResourceImpl wrapModel(GenericResourceInner inner) {
- return new GenericResourceImpl(inner, manager());
+ private GenericResourceExpandedImpl wrapModel(GenericResourceExpandedInner inner) {
+ return new GenericResourceExpandedImpl(inner, manager());
}
@Override
- public Observable listAsync() {
+ public Observable listAsync() {
ResourcesInner client = this.inner();
return client.listAsync()
- .flatMapIterable(new Func1, Iterable>() {
+ .flatMapIterable(new Func1, Iterable>() {
@Override
- public Iterable call(Page page) {
+ public Iterable call(Page page) {
return page.items();
}
})
- .map(new Func1() {
+ .map(new Func1() {
@Override
- public GenericResource call(GenericResourceInner inner) {
- return new GenericResourceImpl(inner, manager());
+ public GenericResourceExpanded call(GenericResourceExpandedInner inner) {
+ return new GenericResourceExpandedImpl(inner, manager());
}
});
}
@Override
- public Completable checkExistenceByIdAsync(String resourceId, String apiVersion) {
+ public Observable checkExistenceByIdAsync(String resourceId, String apiVersion) {
ResourcesInner client = this.inner();
- return client.checkExistenceByIdAsync(resourceId, apiVersion).toCompletable();
- }
+ return client.checkExistenceByIdAsync(resourceId, apiVersion)
+ ;}
@Override
public Completable deleteByIdAsync(String resourceId, String apiVersion) {
@@ -101,18 +102,18 @@ public GenericResource call(GenericResourceInner inner) {
}
@Override
- public Observable listByResourceGroupAsync(final String resourceGroupName) {
+ public Observable listByResourceGroupAsync(final String resourceGroupName) {
ResourcesInner client = this.inner();
return client.listByResourceGroupAsync(resourceGroupName)
- .flatMapIterable(new Func1, Iterable>() {
+ .flatMapIterable(new Func1, Iterable>() {
@Override
- public Iterable call(Page page) {
+ public Iterable call(Page page) {
return page.items();
}
})
- .map(new Func1() {
+ .map(new Func1() {
@Override
- public GenericResource call(GenericResourceInner inner) {
+ public GenericResourceExpanded call(GenericResourceExpandedInner inner) {
return wrapModel(inner);
}
});
@@ -131,10 +132,10 @@ public Completable validateMoveResourcesAsync(String sourceResourceGroupName, Re
}
@Override
- public Completable checkExistenceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion) {
+ public Observable checkExistenceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion) {
ResourcesInner client = this.inner();
- return client.checkExistenceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion).toCompletable();
- }
+ return client.checkExistenceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion)
+ ;}
@Override
public Completable deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion) {
diff --git a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesInner.java b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesInner.java
index 6dbba5bb50b0..1650ab83efd8 100644
--- a/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesInner.java
+++ b/sdk/resources/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/resources/v2018_02_01/implementation/ResourcesInner.java
@@ -44,7 +44,7 @@
* An instance of this class provides access to all the operations defined
* in Resources.
*/
-public class ResourcesInner implements InnerSupportsListing {
+public class ResourcesInner implements InnerSupportsListing {
/** The Retrofit service to perform REST calls. */
private ResourcesService service;
/** The service client containing this operation class. */
@@ -171,13 +171,13 @@ interface ResourcesService {
* @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<GenericResourceInner> object if successful.
+ * @return the PagedList<GenericResourceExpandedInner> object if successful.
*/
- public PagedList listByResourceGroup(final String resourceGroupName) {
- ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single();
- return new PagedList(response.body()) {
+ public PagedList listByResourceGroup(final String resourceGroupName) {
+ ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single();
+ return new PagedList(response.body()) {
@Override
- public Page nextPage(String nextPageLink) {
+ public Page nextPage(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
@@ -191,12 +191,12 @@ public Page nextPage(String nextPageLink) {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) {
+ public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listByResourceGroupSinglePageAsync(resourceGroupName),
- new Func1>>>() {
+ new Func1>>>() {
@Override
- public Observable>> call(String nextPageLink) {
+ public Observable>> call(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink);
}
},
@@ -208,13 +208,13 @@ public Observable>> call(String nextP
*
* @param resourceGroupName The resource group with the resources to get.
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the observable to the PagedList<GenericResourceInner> object
+ * @return the observable to the PagedList<GenericResourceExpandedInner> object
*/
- public Observable> listByResourceGroupAsync(final String resourceGroupName) {
+ public Observable> listByResourceGroupAsync(final String resourceGroupName) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName)
- .map(new Func1>, Page>() {
+ .map(new Func1>, Page>() {
@Override
- public Page call(ServiceResponse> response) {
+ public Page call(ServiceResponse> response) {
return response.body();
}
});
@@ -225,13 +225,13 @@ public Page call(ServiceResponse>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) {
+ public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) {
return listByResourceGroupSinglePageAsync(resourceGroupName)
- .concatMap(new Func1>, Observable>>>() {
+ .concatMap(new Func1>, Observable>>>() {
@Override
- public Observable>> call(ServiceResponse> page) {
+ public Observable>> call(ServiceResponse> page) {
String nextPageLink = page.body().nextPageLink();
if (nextPageLink == null) {
return Observable.just(page);
@@ -246,9 +246,9 @@ public Observable>> call(ServiceRespo
*
* @param resourceGroupName The resource group with the resources to get.
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the PagedList<GenericResourceInner> object wrapped in {@link ServiceResponse} if successful.
+ * @return the PagedList<GenericResourceExpandedInner> object wrapped in {@link ServiceResponse} if successful.
*/
- public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) {
+ public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
@@ -262,12 +262,12 @@ public Observable>> listByResourceGro
final String expand = null;
final Integer top = null;
return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, expand, top, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
- .flatMap(new Func1, Observable>>>() {
+ .flatMap(new Func1, Observable>>>() {
@Override
- public Observable>> call(Response response) {
+ public Observable>> call(Response response) {
try {
- ServiceResponse> result = listByResourceGroupDelegate(response);
- return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ ServiceResponse> result = listByResourceGroupDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
@@ -280,18 +280,18 @@ public Observable>> call(Response listByResourceGroup(final String resourceGroupName, final String filter, final String expand, final Integer top) {
- ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, filter, expand, top).toBlocking().single();
- return new PagedList(response.body()) {
+ public PagedList listByResourceGroup(final String resourceGroupName, final String filter, final String expand, final Integer top) {
+ ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, filter, expand, top).toBlocking().single();
+ return new PagedList(response.body()) {
@Override
- public Page nextPage(String nextPageLink) {
+ public Page nextPage(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
@@ -302,18 +302,18 @@ public Page nextPage(String nextPageLink) {
*
* @param resourceGroupName The resource group with the resources to get.
* @param filter The filter to apply on the operation.
- * @param expand The $expand query parameter
+ * @param expand Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
* @param top The number of results to return. If null is passed, returns all resources.
* @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> listByResourceGroupAsync(final String resourceGroupName, final String filter, final String expand, final Integer top, final ListOperationCallback serviceCallback) {
+ public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final String filter, final String expand, final Integer top, final ListOperationCallback serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listByResourceGroupSinglePageAsync(resourceGroupName, filter, expand, top),
- new Func1>>>() {
+ new Func1>>>() {
@Override
- public Observable>> call(String nextPageLink) {
+ public Observable>> call(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink);
}
},
@@ -325,16 +325,16 @@ public Observable>> call(String nextP
*
* @param resourceGroupName The resource group with the resources to get.
* @param filter The filter to apply on the operation.
- * @param expand The $expand query parameter
+ * @param expand Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
* @param top The number of results to return. If null is passed, returns all resources.
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the observable to the PagedList<GenericResourceInner> object
+ * @return the observable to the PagedList<GenericResourceExpandedInner> object
*/
- public Observable> listByResourceGroupAsync(final String resourceGroupName, final String filter, final String expand, final Integer top) {
+ public Observable> listByResourceGroupAsync(final String resourceGroupName, final String filter, final String expand, final Integer top) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName, filter, expand, top)
- .map(new Func1>, Page>() {
+ .map(new Func1>, Page>() {
@Override
- public Page call(ServiceResponse> response) {
+ public Page call(ServiceResponse> response) {
return response.body();
}
});
@@ -345,16 +345,16 @@ public Page call(ServiceResponse>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final String filter, final String expand, final Integer top) {
+ public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final String filter, final String expand, final Integer top) {
return listByResourceGroupSinglePageAsync(resourceGroupName, filter, expand, top)
- .concatMap(new Func1>, Observable>>>() {
+ .concatMap(new Func1>, Observable>>>() {
@Override
- public Observable>> call(ServiceResponse> page) {
+ public Observable>> call(ServiceResponse> page) {
String nextPageLink = page.body().nextPageLink();
if (nextPageLink == null) {
return Observable.just(page);
@@ -367,14 +367,14 @@ public Observable>> call(ServiceRespo
/**
* Get all the resources for a resource group.
*
- ServiceResponse> * @param resourceGroupName The resource group with the resources to get.
- ServiceResponse> * @param filter The filter to apply on the operation.
- ServiceResponse> * @param expand The $expand query parameter
- ServiceResponse> * @param top The number of results to return. If null is passed, returns all resources.
+ ServiceResponse> * @param resourceGroupName The resource group with the resources to get.
+ ServiceResponse> * @param filter The filter to apply on the operation.
+ ServiceResponse> * @param expand Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
+ ServiceResponse> * @param top The number of results to return. If null is passed, returns all resources.
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the PagedList<GenericResourceInner> object wrapped in {@link ServiceResponse} if successful.
+ * @return the PagedList<GenericResourceExpandedInner> object wrapped in {@link ServiceResponse} if successful.
*/
- public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final String filter, final String expand, final Integer top) {
+ public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final String filter, final String expand, final Integer top) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
@@ -385,12 +385,12 @@ public Observable>> listByResourceGro
throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
}
return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, expand, top, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
- .flatMap(new Func1, Observable>>>() {
+ .flatMap(new Func1, Observable>>>() {
@Override
- public Observable>> call(Response response) {
+ public Observable>> call(Response response) {
try {
- ServiceResponse> result = listByResourceGroupDelegate(response);
- return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ ServiceResponse> result = listByResourceGroupDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
@@ -398,9 +398,9 @@ public Observable>> call(Response> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
- return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
- .register(200, new TypeToken>() { }.getType())
+ private ServiceResponse> listByResourceGroupDelegate(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);
}
@@ -740,13 +740,13 @@ private ServiceResponse beginValidateMoveResourcesDelegate(Response list() {
- ServiceResponse> response = listSinglePageAsync().toBlocking().single();
- return new PagedList(response.body()) {
+ public PagedList list() {
+ ServiceResponse> response = listSinglePageAsync().toBlocking().single();
+ return new PagedList(response.body()) {
@Override
- public Page nextPage(String nextPageLink) {
+ public Page nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
@@ -759,12 +759,12 @@ public Page nextPage(String nextPageLink) {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) {
+ public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listSinglePageAsync(),
- new Func1>>>() {
+ new Func1>>>() {
@Override
- public Observable>> call(String nextPageLink) {
+ public Observable>> call(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink);
}
},
@@ -775,13 +775,13 @@ public Observable>> call(String nextP
* Get all the resources in a subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the observable to the PagedList<GenericResourceInner> object
+ * @return the observable to the PagedList<GenericResourceExpandedInner> object
*/
- public Observable> listAsync() {
+ public Observable