diff --git a/sdk/azurestackhci/mgmt-v2020_10_01/pom.xml b/sdk/azurestackhci/mgmt-v2020_10_01/pom.xml index df726f3430d88..db0811e062123 100644 --- a/sdk/azurestackhci/mgmt-v2020_10_01/pom.xml +++ b/sdk/azurestackhci/mgmt-v2020_10_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.3.2 - ../../parents/azure-arm-parent/pom.xml + 1.1.0 + ../../../pom.management.xml azure-mgmt-azurestackhci - 1.0.0 + 1.0.0-beta jar Microsoft Azure SDK for AzureStackHCI Management This package contains Microsoft AzureStackHCI Management SDK. diff --git a/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/AzureEntityResource.java b/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/AzureEntityResource.java index 79bd09eb26207..924a75b4b11d8 100644 --- a/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/AzureEntityResource.java +++ b/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/AzureEntityResource.java @@ -12,7 +12,7 @@ import com.microsoft.azure.ProxyResource; /** - * The resource model definition for a Azure Resource Manager resource with an + * The resource model definition for an Azure Resource Manager resource with an * etag. */ public class AzureEntityResource extends ProxyResource { diff --git a/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorDetail.java b/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorDetail.java new file mode 100644 index 0000000000000..7e40d787b69d9 --- /dev/null +++ b/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorDetail.java @@ -0,0 +1,93 @@ +/** + * 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.azurestackhci.v2020_10_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The error detail. + */ +public class ErrorDetail { + /** + * 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/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorResponse.java b/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorResponse.java index 797f528bfd0e1..a7bcd7df60035 100644 --- a/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorResponse.java +++ b/sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorResponse.java @@ -11,21 +11,24 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The resource management error response. + * 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 object. */ @JsonProperty(value = "error") - private ErrorResponseError error; + private ErrorDetail error; /** * Get the error object. * * @return the error value */ - public ErrorResponseError error() { + public ErrorDetail error() { return this.error; } @@ -35,7 +38,7 @@ public ErrorResponseError error() { * @param error the error value to set * @return the ErrorResponse object itself. */ - public ErrorResponse withError(ErrorResponseError error) { + public ErrorResponse withError(ErrorDetail error) { this.error = error; return this; }