Skip to content

Commit bf35f69

Browse files
author
SDKAuto
committed
CodeGen from PR 11639 in Azure/azure-rest-api-specs
Merge b4b64803111a6a3c3e13503104b6c7b35b6f9ec7 into 7c8fd7f0705552f77bf442c567c854af01ab4805
1 parent a097f96 commit bf35f69

File tree

4 files changed

+104
-8
lines changed

4 files changed

+104
-8
lines changed

sdk/azurestackhci/mgmt-v2020_10_01/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.2</version>
15-
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-azurestackhci</artifactId>
18-
<version>1.0.0</version>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for AzureStackHCI Management</name>
2121
<description>This package contains Microsoft AzureStackHCI Management SDK.</description>

sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/AzureEntityResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import com.microsoft.azure.ProxyResource;
1313

1414
/**
15-
* The resource model definition for a Azure Resource Manager resource with an
15+
* The resource model definition for an Azure Resource Manager resource with an
1616
* etag.
1717
*/
1818
public class AzureEntityResource extends ProxyResource {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.azurestackhci.v2020_10_01;
10+
11+
import java.util.List;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* The error detail.
16+
*/
17+
public class ErrorDetail {
18+
/**
19+
* The error code.
20+
*/
21+
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
22+
private String code;
23+
24+
/**
25+
* The error message.
26+
*/
27+
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
28+
private String message;
29+
30+
/**
31+
* The error target.
32+
*/
33+
@JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
34+
private String target;
35+
36+
/**
37+
* The error details.
38+
*/
39+
@JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
40+
private List<ErrorDetail> details;
41+
42+
/**
43+
* The error additional info.
44+
*/
45+
@JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
46+
private List<ErrorAdditionalInfo> additionalInfo;
47+
48+
/**
49+
* Get the error code.
50+
*
51+
* @return the code value
52+
*/
53+
public String code() {
54+
return this.code;
55+
}
56+
57+
/**
58+
* Get the error message.
59+
*
60+
* @return the message value
61+
*/
62+
public String message() {
63+
return this.message;
64+
}
65+
66+
/**
67+
* Get the error target.
68+
*
69+
* @return the target value
70+
*/
71+
public String target() {
72+
return this.target;
73+
}
74+
75+
/**
76+
* Get the error details.
77+
*
78+
* @return the details value
79+
*/
80+
public List<ErrorDetail> details() {
81+
return this.details;
82+
}
83+
84+
/**
85+
* Get the error additional info.
86+
*
87+
* @return the additionalInfo value
88+
*/
89+
public List<ErrorAdditionalInfo> additionalInfo() {
90+
return this.additionalInfo;
91+
}
92+
93+
}

sdk/azurestackhci/mgmt-v2020_10_01/src/main/java/com/microsoft/azure/management/azurestackhci/v2020_10_01/ErrorResponse.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,24 @@
1111
import com.fasterxml.jackson.annotation.JsonProperty;
1212

1313
/**
14-
* The resource management error response.
14+
* Error response.
15+
* Common error response for all Azure Resource Manager APIs to return error
16+
* details for failed operations. (This also follows the OData error response
17+
* format.).
1518
*/
1619
public class ErrorResponse {
1720
/**
1821
* The error object.
1922
*/
2023
@JsonProperty(value = "error")
21-
private ErrorResponseError error;
24+
private ErrorDetail error;
2225

2326
/**
2427
* Get the error object.
2528
*
2629
* @return the error value
2730
*/
28-
public ErrorResponseError error() {
31+
public ErrorDetail error() {
2932
return this.error;
3033
}
3134

@@ -35,7 +38,7 @@ public ErrorResponseError error() {
3538
* @param error the error value to set
3639
* @return the ErrorResponse object itself.
3740
*/
38-
public ErrorResponse withError(ErrorResponseError error) {
41+
public ErrorResponse withError(ErrorDetail error) {
3942
this.error = error;
4043
return this;
4144
}

0 commit comments

Comments
 (0)