Skip to content

Commit 8baef5d

Browse files
authored
generate package-2020-08-02 (Azure#14674)
1 parent 1b10644 commit 8baef5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+7062
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9+
<modelVersion>4.0.0</modelVersion>
10+
<groupId>com.microsoft.azure.hybridcompute.v2020_08_02</groupId>
11+
<parent>
12+
<groupId>com.microsoft.azure</groupId>
13+
<artifactId>azure-arm-parent</artifactId>
14+
<version>1.3.2</version>
15+
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
16+
</parent>
17+
<artifactId>azure-mgmt-hybridcompute</artifactId>
18+
<version>1.0.0-beta</version>
19+
<packaging>jar</packaging>
20+
<name>Microsoft Azure SDK for HybridCompute Management</name>
21+
<description>This package contains Microsoft HybridCompute Management SDK.</description>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
23+
<licenses>
24+
<license>
25+
<name>The MIT License (MIT)</name>
26+
<url>http://opensource.org/licenses/MIT</url>
27+
<distribution>repo</distribution>
28+
</license>
29+
</licenses>
30+
<scm>
31+
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
32+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
33+
<tag>HEAD</tag>
34+
</scm>
35+
<properties>
36+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
38+
</properties>
39+
<developers>
40+
<developer>
41+
<id>microsoft</id>
42+
<name>Microsoft</name>
43+
</developer>
44+
</developers>
45+
<dependencies>
46+
<dependency>
47+
<groupId>com.microsoft.azure</groupId>
48+
<artifactId>azure-client-runtime</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>com.microsoft.azure</groupId>
52+
<artifactId>azure-arm-client-runtime</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.microsoft.azure</groupId>
61+
<artifactId>azure-client-authentication</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>com.microsoft.azure</groupId>
66+
<artifactId>azure-mgmt-resources</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>com.microsoft.azure</groupId>
71+
<artifactId>azure-arm-client-runtime</artifactId>
72+
<type>test-jar</type>
73+
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
76+
</dependency>
77+
</dependencies>
78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-jar-plugin</artifactId>
83+
<configuration>
84+
<archive>
85+
<manifest>
86+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
87+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
88+
</manifest>
89+
</archive>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.codehaus.mojo</groupId>
94+
<artifactId>build-helper-maven-plugin</artifactId>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-compiler-plugin</artifactId>
99+
<version>3.1</version>
100+
<configuration>
101+
<source>1.7</source>
102+
<target>1.7</target>
103+
<annotationProcessors>
104+
<annotationProcessor>
105+
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
106+
</annotationProcessor>
107+
</annotationProcessors>
108+
<debug>true</debug>
109+
<optimize>true</optimize>
110+
<compilerArguments>
111+
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
112+
<Adebug>true</Adebug>
113+
</compilerArguments>
114+
</configuration>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-javadoc-plugin</artifactId>
119+
<version>2.8</version>
120+
<configuration>
121+
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
122+
<bottom>
123+
<![CDATA[<code>
124+
/**
125+
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
126+
<br />* Licensed under the MIT License. See License.txt in the project root for
127+
<br />* license information.
128+
<br />*/
129+
</code>]]>
130+
</bottom>
131+
</configuration>
132+
</plugin>
133+
</plugins>
134+
</build>
135+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.hybridcompute.v2020_08_02;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.microsoft.azure.ProxyResource;
13+
14+
/**
15+
* The resource model definition for a Azure Resource Manager resource with an
16+
* etag.
17+
*/
18+
public class AzureEntityResource extends ProxyResource {
19+
/**
20+
* Resource Etag.
21+
*/
22+
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
23+
private String etag;
24+
25+
/**
26+
* Get resource Etag.
27+
*
28+
* @return the etag value
29+
*/
30+
public String etag() {
31+
return this.etag;
32+
}
33+
34+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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.hybridcompute.v2020_08_02;
10+
11+
import java.util.List;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* Error details.
16+
*/
17+
public class ErrorDetail {
18+
/**
19+
* The error's code.
20+
*/
21+
@JsonProperty(value = "code", required = true)
22+
private String code;
23+
24+
/**
25+
* A human readable error message.
26+
*/
27+
@JsonProperty(value = "message", required = true)
28+
private String message;
29+
30+
/**
31+
* Indicates which property in the request is responsible for the error.
32+
*/
33+
@JsonProperty(value = "target")
34+
private String target;
35+
36+
/**
37+
* Additional error details.
38+
*/
39+
@JsonProperty(value = "details")
40+
private List<ErrorDetail> details;
41+
42+
/**
43+
* Get the error's code.
44+
*
45+
* @return the code value
46+
*/
47+
public String code() {
48+
return this.code;
49+
}
50+
51+
/**
52+
* Set the error's code.
53+
*
54+
* @param code the code value to set
55+
* @return the ErrorDetail object itself.
56+
*/
57+
public ErrorDetail withCode(String code) {
58+
this.code = code;
59+
return this;
60+
}
61+
62+
/**
63+
* Get a human readable error message.
64+
*
65+
* @return the message value
66+
*/
67+
public String message() {
68+
return this.message;
69+
}
70+
71+
/**
72+
* Set a human readable error message.
73+
*
74+
* @param message the message value to set
75+
* @return the ErrorDetail object itself.
76+
*/
77+
public ErrorDetail withMessage(String message) {
78+
this.message = message;
79+
return this;
80+
}
81+
82+
/**
83+
* Get indicates which property in the request is responsible for the error.
84+
*
85+
* @return the target value
86+
*/
87+
public String target() {
88+
return this.target;
89+
}
90+
91+
/**
92+
* Set indicates which property in the request is responsible for the error.
93+
*
94+
* @param target the target value to set
95+
* @return the ErrorDetail object itself.
96+
*/
97+
public ErrorDetail withTarget(String target) {
98+
this.target = target;
99+
return this;
100+
}
101+
102+
/**
103+
* Get additional error details.
104+
*
105+
* @return the details value
106+
*/
107+
public List<ErrorDetail> details() {
108+
return this.details;
109+
}
110+
111+
/**
112+
* Set additional error details.
113+
*
114+
* @param details the details value to set
115+
* @return the ErrorDetail object itself.
116+
*/
117+
public ErrorDetail withDetails(List<ErrorDetail> details) {
118+
this.details = details;
119+
return this;
120+
}
121+
122+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.hybridcompute.v2020_08_02;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Error response.
15+
* Contains details when the response code indicates an error.
16+
*/
17+
public class ErrorResponse {
18+
/**
19+
* The error details.
20+
*/
21+
@JsonProperty(value = "error", required = true)
22+
private ErrorDetail error;
23+
24+
/**
25+
* Get the error details.
26+
*
27+
* @return the error value
28+
*/
29+
public ErrorDetail error() {
30+
return this.error;
31+
}
32+
33+
/**
34+
* Set the error details.
35+
*
36+
* @param error the error value to set
37+
* @return the ErrorResponse object itself.
38+
*/
39+
public ErrorResponse withError(ErrorDetail error) {
40+
this.error = error;
41+
return this;
42+
}
43+
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.hybridcompute.v2020_08_02;
10+
11+
import com.microsoft.rest.RestException;
12+
import okhttp3.ResponseBody;
13+
import retrofit2.Response;
14+
15+
/**
16+
* Exception thrown for an invalid response with ErrorResponse information.
17+
*/
18+
public class ErrorResponseException extends RestException {
19+
/**
20+
* Initializes a new instance of the ErrorResponseException class.
21+
*
22+
* @param message the exception message or the response content if a message is not available
23+
* @param response the HTTP response
24+
*/
25+
public ErrorResponseException(final String message, final Response<ResponseBody> response) {
26+
super(message, response);
27+
}
28+
29+
/**
30+
* Initializes a new instance of the ErrorResponseException class.
31+
*
32+
* @param message the exception message or the response content if a message is not available
33+
* @param response the HTTP response
34+
* @param body the deserialized response body
35+
*/
36+
public ErrorResponseException(final String message, final Response<ResponseBody> response, final ErrorResponse body) {
37+
super(message, response, body);
38+
}
39+
40+
@Override
41+
public ErrorResponse body() {
42+
return (ErrorResponse) super.body();
43+
}
44+
}

0 commit comments

Comments
 (0)