Skip to content

Commit c2353c4

Browse files
author
SDK Automation
committed
Generated from 286593b6c23abb4159bacf0e7054d32d68c6f59a
Add java configuration for managed applications.
1 parent 2d1e0a6 commit c2353c4

File tree

11 files changed

+400
-18
lines changed

11 files changed

+400
-18
lines changed

sdk/resources/mgmt-v2019_05_01/pom.xml

Lines changed: 2 additions & 2 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.2.0</version>
14+
<version>1.1.0</version>
1515
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-resources</artifactId>
18-
<version>1.0.0-beta-1</version>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for Resources Management</name>
2121
<description>This package contains Microsoft Resources Management SDK.</description>

sdk/resources/mgmt-v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/DeploymentExtended.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public interface DeploymentExtended extends HasInner<DeploymentExtendedInner>, I
4949
/**
5050
* The entirety of the DeploymentExtended definition.
5151
*/
52-
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoftResource, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
52+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoft.Resource, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
5353
}
5454

5555
/**
@@ -59,19 +59,19 @@ interface DefinitionStages {
5959
/**
6060
* The first stage of a DeploymentExtended definition.
6161
*/
62-
interface Blank extends WithMicrosoftResource {
62+
interface Blank extends WithMicrosoft.Resource {
6363
}
6464

6565
/**
6666
* The stage of the deploymentextended definition allowing to specify Microsoft.Resource.
6767
*/
68-
interface WithMicrosoftResource {
68+
interface WithMicrosoft.Resource {
6969
/**
7070
* Specifies groupId.
7171
* @param groupId The management group ID
7272
* @return the next definition stage
7373
*/
74-
WithProperties withExistingMicrosoftResource(String groupId);
74+
WithProperties withExistingMicrosoft.Resource(String groupId);
7575
}
7676

7777
/**

sdk/resources/mgmt-v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/Deployments.java

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@
88

99
package com.microsoft.azure.management.resources.v2019_05_01;
1010

11-
import com.microsoft.azure.arm.collection.SupportsCreating;
1211
import rx.Completable;
1312
import rx.Observable;
1413
import com.microsoft.azure.management.resources.v2019_05_01.implementation.DeploymentInner;
15-
import com.microsoft.azure.management.resources.v2019_05_01.implementation.DeploymentsInner;
16-
import com.microsoft.azure.arm.model.HasInner;
1714

1815
/**
1916
* Type representing Deployments.
2017
*/
21-
public interface Deployments extends SupportsCreating<DeploymentExtended.DefinitionStages.Blank>, HasInner<DeploymentsInner> {
18+
public interface Deployments {
19+
/**
20+
* Begins definition for a new Deployment resource.
21+
* @param name resource name.
22+
* @return the first stage of the new Deployment definition.
23+
*/
24+
DeploymentExtended.DefinitionStages.Blank defineDeployment(String name);
25+
2226
/**
2327
* Deletes a deployment from the deployment history.
2428
* A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.
@@ -251,4 +255,13 @@ public interface Deployments extends SupportsCreating<DeploymentExtended.Definit
251255
*/
252256
Observable<DeploymentExtended> listByResourceGroupAsync(final String resourceGroupName);
253257

258+
/**
259+
* Calculate the hash of the given template.
260+
*
261+
* @param template The template provided to calculate hash.
262+
* @throws IllegalArgumentException thrown if parameters fail the validation
263+
* @return the observable for the request
264+
*/
265+
Observable<TemplateHashResult> calculateTemplateHashAsync(Object template);
266+
254267
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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.resources.v2019_05_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* The resource management error additional info.
15+
*/
16+
public class ErrorAdditionalInfo {
17+
/**
18+
* The additional info type.
19+
*/
20+
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
21+
private String type;
22+
23+
/**
24+
* The additional info.
25+
*/
26+
@JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
27+
private Object info;
28+
29+
/**
30+
* Get the additional info type.
31+
*
32+
* @return the type value
33+
*/
34+
public String type() {
35+
return this.type;
36+
}
37+
38+
/**
39+
* Get the additional info.
40+
*
41+
* @return the info value
42+
*/
43+
public Object info() {
44+
return this.info;
45+
}
46+
47+
}
Lines changed: 93 additions & 0 deletions
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.resources.v2019_05_01;
10+
11+
import java.util.List;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* The resource management error response.
16+
*/
17+
public class ErrorResponse {
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<ErrorResponse> 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<ErrorResponse> 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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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.resources.v2019_05_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.arm.resources.models.HasManager;
13+
import com.microsoft.azure.management.resources.v2019_05_01.implementation.ResourcesManager;
14+
import com.microsoft.azure.management.resources.v2019_05_01.implementation.TemplateHashResultInner;
15+
16+
/**
17+
* Type representing TemplateHashResult.
18+
*/
19+
public interface TemplateHashResult extends HasInner<TemplateHashResultInner>, HasManager<ResourcesManager> {
20+
/**
21+
* @return the minifiedTemplate value.
22+
*/
23+
String minifiedTemplate();
24+
25+
/**
26+
* @return the templateHash value.
27+
*/
28+
String templateHash();
29+
30+
}

sdk/resources/mgmt-v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentExtendedImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public String type() {
116116
}
117117

118118
@Override
119-
public DeploymentExtendedImpl withExistingMicrosoftResource(String groupId) {
119+
public DeploymentExtendedImpl withExistingMicrosoft.Resource(String groupId) {
120120
this.groupId = groupId;
121121
return this;
122122
}

sdk/resources/mgmt-v2019_05_01/src/main/java/com/microsoft/azure/management/resources/v2019_05_01/implementation/DeploymentsImpl.java

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* license information.
55
*
66
* Code generated by Microsoft (R) AutoRest Code Generator.
7-
*
7+
* abc
88
*/
99

1010
package com.microsoft.azure.management.resources.v2019_05_01.implementation;
@@ -18,6 +18,7 @@
1818
import com.microsoft.azure.management.resources.v2019_05_01.DeploymentExtended;
1919
import com.microsoft.azure.management.resources.v2019_05_01.DeploymentValidateResult;
2020
import com.microsoft.azure.management.resources.v2019_05_01.DeploymentExportResult;
21+
import com.microsoft.azure.management.resources.v2019_05_01.TemplateHashResult;
2122

2223
class DeploymentsImpl extends WrapperImpl<DeploymentsInner> implements Deployments {
2324
private final ResourcesManager manager;
@@ -32,16 +33,16 @@ public ResourcesManager manager() {
3233
}
3334

3435
@Override
35-
public DeploymentExtendedImpl define(String name) {
36-
return wrapModel(name);
36+
public DeploymentExtendedImpl defineDeployment(String name) {
37+
return wrapDeploymentModel(name);
3738
}
3839

39-
private DeploymentExtendedImpl wrapModel(DeploymentExtendedInner inner) {
40-
return new DeploymentExtendedImpl(inner, manager());
40+
private DeploymentExtendedImpl wrapDeploymentModel(String name) {
41+
return new DeploymentExtendedImpl(name, this.manager());
4142
}
4243

43-
private DeploymentExtendedImpl wrapModel(String name) {
44-
return new DeploymentExtendedImpl(name, this.manager());
44+
private DeploymentExtendedImpl wrapDeploymentExtendedModel(DeploymentExtendedInner inner) {
45+
return new DeploymentExtendedImpl(inner, manager());
4546
}
4647

4748
@Override
@@ -284,4 +285,16 @@ public DeploymentExtended call(DeploymentExtendedInner inner) {
284285
});
285286
}
286287

288+
@Override
289+
public Observable<TemplateHashResult> calculateTemplateHashAsync(Object template) {
290+
DeploymentsInner client = this.inner();
291+
return client.calculateTemplateHashAsync(template)
292+
.map(new Func1<TemplateHashResultInner, TemplateHashResult>() {
293+
@Override
294+
public TemplateHashResult call(TemplateHashResultInner inner) {
295+
return new TemplateHashResultImpl(inner, manager());
296+
}
297+
});
298+
}
299+
287300
}

0 commit comments

Comments
 (0)