diff --git a/sdk/authorization/mgmt-v2018_09_01_preview/pom.xml b/sdk/authorization/mgmt-v2018_09_01_preview/pom.xml index 38cf3b9fc4478..3788af1824df6 100644 --- a/sdk/authorization/mgmt-v2018_09_01_preview/pom.xml +++ b/sdk/authorization/mgmt-v2018_09_01_preview/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.2.0 - ../../parents/azure-arm-parent + 1.1.0 + ../../../pom.management.xml azure-mgmt-authorization - 1.0.0-beta-1 + 1.0.0-beta jar Microsoft Azure SDK for Authorization Management This package contains Microsoft Authorization Management SDK. diff --git a/sdk/authorization/mgmt-v2018_09_01_preview/src/main/java/com/microsoft/azure/management/authorization/v2018_09_01_preview/Error.java b/sdk/authorization/mgmt-v2018_09_01_preview/src/main/java/com/microsoft/azure/management/authorization/v2018_09_01_preview/Error.java new file mode 100644 index 0000000000000..665cfe7864d8f --- /dev/null +++ b/sdk/authorization/mgmt-v2018_09_01_preview/src/main/java/com/microsoft/azure/management/authorization/v2018_09_01_preview/Error.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.authorization.v2018_09_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Object to be thrown in case of an unsuccessful response. + */ +public class Error { + /** + * Object to be thrown in case of an unsuccessful response. + */ + @JsonProperty(value = "error") + private ErrorError error; + + /** + * Get object to be thrown in case of an unsuccessful response. + * + * @return the error value + */ + public ErrorError error() { + return this.error; + } + + /** + * Set object to be thrown in case of an unsuccessful response. + * + * @param error the error value to set + * @return the Error object itself. + */ + public Error withError(ErrorError error) { + this.error = error; + return this; + } + +} diff --git a/sdk/authorization/mgmt-v2018_09_01_preview/src/main/java/com/microsoft/azure/management/authorization/v2018_09_01_preview/ErrorError.java b/sdk/authorization/mgmt-v2018_09_01_preview/src/main/java/com/microsoft/azure/management/authorization/v2018_09_01_preview/ErrorError.java new file mode 100644 index 0000000000000..68c07d02ed740 --- /dev/null +++ b/sdk/authorization/mgmt-v2018_09_01_preview/src/main/java/com/microsoft/azure/management/authorization/v2018_09_01_preview/ErrorError.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.authorization.v2018_09_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Object to be thrown in case of an unsuccessful response. + */ +public class ErrorError { + /** + * Brief error code. + */ + @JsonProperty(value = "code") + private String code; + + /** + * Longer message explaining the details of the error. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get brief error code. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set brief error code. + * + * @param code the code value to set + * @return the ErrorError object itself. + */ + public ErrorError withCode(String code) { + this.code = code; + return this; + } + + /** + * Get longer message explaining the details of the error. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set longer message explaining the details of the error. + * + * @param message the message value to set + * @return the ErrorError object itself. + */ + public ErrorError withMessage(String message) { + this.message = message; + return this; + } + +}