Skip to content

Commit 77cd55b

Browse files
author
SDK Automation
committed
Generated from 785e0ae5d7804bbd8f92d7c0dec8dea6132071d7
Fix example request for expanding policyEvaluationDetails
1 parent b83526e commit 77cd55b

22 files changed

+230
-254
lines changed

sdk/policyinsights/mgmt-v2018_04_04/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-policyinsights</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 PolicyInsights Management</name>
2121
<description>This package contains Microsoft PolicyInsights Management SDK.</description>
22-
<url>https://github.com/Azure/azure-libraries-for-java</url>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323
<licenses>
2424
<license>
2525
<name>The MIT License (MIT)</name>
@@ -28,8 +28,8 @@
2828
</license>
2929
</licenses>
3030
<scm>
31-
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
32-
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
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>
3333
<tag>HEAD</tag>
3434
</scm>
3535
<properties>
@@ -64,15 +64,15 @@
6464
<dependency>
6565
<groupId>com.microsoft.azure</groupId>
6666
<artifactId>azure-mgmt-resources</artifactId>
67-
<version>1.11.1</version>
6867
<scope>test</scope>
6968
</dependency>
7069
<dependency>
7170
<groupId>com.microsoft.azure</groupId>
7271
<artifactId>azure-arm-client-runtime</artifactId>
73-
<version>1.5.2</version>
7472
<type>test-jar</type>
7573
<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>
7676
</dependency>
7777
</dependencies>
7878
<build>

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/OperationDisplay.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class OperationDisplay {
3939
private String description;
4040

4141
/**
42-
* Get the provider value.
42+
* Get resource provider name.
4343
*
4444
* @return the provider value
4545
*/
@@ -48,7 +48,7 @@ public String provider() {
4848
}
4949

5050
/**
51-
* Set the provider value.
51+
* Set resource provider name.
5252
*
5353
* @param provider the provider value to set
5454
* @return the OperationDisplay object itself.
@@ -59,7 +59,7 @@ public OperationDisplay withProvider(String provider) {
5959
}
6060

6161
/**
62-
* Get the resource value.
62+
* Get resource name on which the operation is performed.
6363
*
6464
* @return the resource value
6565
*/
@@ -68,7 +68,7 @@ public String resource() {
6868
}
6969

7070
/**
71-
* Set the resource value.
71+
* Set resource name on which the operation is performed.
7272
*
7373
* @param resource the resource value to set
7474
* @return the OperationDisplay object itself.
@@ -79,7 +79,7 @@ public OperationDisplay withResource(String resource) {
7979
}
8080

8181
/**
82-
* Get the operation value.
82+
* Get operation name.
8383
*
8484
* @return the operation value
8585
*/
@@ -88,7 +88,7 @@ public String operation() {
8888
}
8989

9090
/**
91-
* Set the operation value.
91+
* Set operation name.
9292
*
9393
* @param operation the operation value to set
9494
* @return the OperationDisplay object itself.
@@ -99,7 +99,7 @@ public OperationDisplay withOperation(String operation) {
9999
}
100100

101101
/**
102-
* Get the description value.
102+
* Get operation description.
103103
*
104104
* @return the description value
105105
*/
@@ -108,7 +108,7 @@ public String description() {
108108
}
109109

110110
/**
111-
* Set the description value.
111+
* Set operation description.
112112
*
113113
* @param description the description value to set
114114
* @return the OperationDisplay object itself.

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/PolicyAssignmentSummary.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class PolicyAssignmentSummary {
4040
private List<PolicyDefinitionSummary> policyDefinitions;
4141

4242
/**
43-
* Get the policyAssignmentId value.
43+
* Get policy assignment ID.
4444
*
4545
* @return the policyAssignmentId value
4646
*/
@@ -49,7 +49,7 @@ public String policyAssignmentId() {
4949
}
5050

5151
/**
52-
* Set the policyAssignmentId value.
52+
* Set policy assignment ID.
5353
*
5454
* @param policyAssignmentId the policyAssignmentId value to set
5555
* @return the PolicyAssignmentSummary object itself.
@@ -60,7 +60,7 @@ public PolicyAssignmentSummary withPolicyAssignmentId(String policyAssignmentId)
6060
}
6161

6262
/**
63-
* Get the policySetDefinitionId value.
63+
* Get policy set definition ID, if the policy assignment is for a policy set.
6464
*
6565
* @return the policySetDefinitionId value
6666
*/
@@ -69,7 +69,7 @@ public String policySetDefinitionId() {
6969
}
7070

7171
/**
72-
* Set the policySetDefinitionId value.
72+
* Set policy set definition ID, if the policy assignment is for a policy set.
7373
*
7474
* @param policySetDefinitionId the policySetDefinitionId value to set
7575
* @return the PolicyAssignmentSummary object itself.
@@ -80,7 +80,7 @@ public PolicyAssignmentSummary withPolicySetDefinitionId(String policySetDefinit
8080
}
8181

8282
/**
83-
* Get the results value.
83+
* Get non-compliance summary for the policy assignment.
8484
*
8585
* @return the results value
8686
*/
@@ -89,7 +89,7 @@ public SummaryResults results() {
8989
}
9090

9191
/**
92-
* Set the results value.
92+
* Set non-compliance summary for the policy assignment.
9393
*
9494
* @param results the results value to set
9595
* @return the PolicyAssignmentSummary object itself.
@@ -100,7 +100,7 @@ public PolicyAssignmentSummary withResults(SummaryResults results) {
100100
}
101101

102102
/**
103-
* Get the policyDefinitions value.
103+
* Get policy definitions summary.
104104
*
105105
* @return the policyDefinitions value
106106
*/
@@ -109,7 +109,7 @@ public List<PolicyDefinitionSummary> policyDefinitions() {
109109
}
110110

111111
/**
112-
* Set the policyDefinitions value.
112+
* Set policy definitions summary.
113113
*
114114
* @param policyDefinitions the policyDefinitions value to set
115115
* @return the PolicyAssignmentSummary object itself.

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/PolicyDefinitionSummary.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class PolicyDefinitionSummary {
3939
private SummaryResults results;
4040

4141
/**
42-
* Get the policyDefinitionId value.
42+
* Get policy definition ID.
4343
*
4444
* @return the policyDefinitionId value
4545
*/
@@ -48,7 +48,7 @@ public String policyDefinitionId() {
4848
}
4949

5050
/**
51-
* Set the policyDefinitionId value.
51+
* Set policy definition ID.
5252
*
5353
* @param policyDefinitionId the policyDefinitionId value to set
5454
* @return the PolicyDefinitionSummary object itself.
@@ -59,7 +59,7 @@ public PolicyDefinitionSummary withPolicyDefinitionId(String policyDefinitionId)
5959
}
6060

6161
/**
62-
* Get the policyDefinitionReferenceId value.
62+
* Get policy definition reference ID.
6363
*
6464
* @return the policyDefinitionReferenceId value
6565
*/
@@ -68,7 +68,7 @@ public String policyDefinitionReferenceId() {
6868
}
6969

7070
/**
71-
* Set the policyDefinitionReferenceId value.
71+
* Set policy definition reference ID.
7272
*
7373
* @param policyDefinitionReferenceId the policyDefinitionReferenceId value to set
7474
* @return the PolicyDefinitionSummary object itself.
@@ -79,7 +79,7 @@ public PolicyDefinitionSummary withPolicyDefinitionReferenceId(String policyDefi
7979
}
8080

8181
/**
82-
* Get the effect value.
82+
* Get policy effect, i.e. policy definition action.
8383
*
8484
* @return the effect value
8585
*/
@@ -88,7 +88,7 @@ public String effect() {
8888
}
8989

9090
/**
91-
* Set the effect value.
91+
* Set policy effect, i.e. policy definition action.
9292
*
9393
* @param effect the effect value to set
9494
* @return the PolicyDefinitionSummary object itself.
@@ -99,7 +99,7 @@ public PolicyDefinitionSummary withEffect(String effect) {
9999
}
100100

101101
/**
102-
* Get the results value.
102+
* Get non-compliance summary for the policy definition.
103103
*
104104
* @return the results value
105105
*/
@@ -108,7 +108,7 @@ public SummaryResults results() {
108108
}
109109

110110
/**
111-
* Set the results value.
111+
* Set non-compliance summary for the policy definition.
112112
*
113113
* @param results the results value to set
114114
* @return the PolicyDefinitionSummary object itself.

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/PolicyEvents.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
package com.microsoft.azure.management.policyinsights.v2018_04_04;
1010

11-
import rx.Completable;
1211
import rx.Observable;
1312

1413
/**
@@ -100,6 +99,6 @@ public interface PolicyEvents {
10099
* @throws IllegalArgumentException thrown if parameters fail the validation
101100
* @return the observable for the request
102101
*/
103-
Completable getMetadataAsync(String scope);
102+
Observable<String> getMetadataAsync(String scope);
104103

105104
}

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/PolicyStates.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
package com.microsoft.azure.management.policyinsights.v2018_04_04;
1010

11-
import rx.Completable;
1211
import rx.Observable;
1312

1413
/**
@@ -186,6 +185,6 @@ public interface PolicyStates {
186185
* @throws IllegalArgumentException thrown if parameters fail the validation
187186
* @return the observable for the request
188187
*/
189-
Completable getMetadataAsync(String scope);
188+
Observable<String> getMetadataAsync(String scope);
190189

191190
}

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/QueryFailure.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class QueryFailure {
2121
private QueryFailureError error;
2222

2323
/**
24-
* Get the error value.
24+
* Get error definition.
2525
*
2626
* @return the error value
2727
*/
@@ -30,7 +30,7 @@ public QueryFailureError error() {
3030
}
3131

3232
/**
33-
* Set the error value.
33+
* Set error definition.
3434
*
3535
* @param error the error value to set
3636
* @return the QueryFailure object itself.

sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/QueryFailureError.java

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ public class QueryFailureError {
1818
* Service specific error code which serves as the substatus for the HTTP
1919
* error code.
2020
*/
21-
@JsonProperty(value = "code")
21+
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
2222
private String code;
2323

2424
/**
2525
* Description of the error.
2626
*/
27-
@JsonProperty(value = "message")
27+
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
2828
private String message;
2929

3030
/**
31-
* Get the code value.
31+
* Get service specific error code which serves as the substatus for the HTTP error code.
3232
*
3333
* @return the code value
3434
*/
@@ -37,34 +37,12 @@ public String code() {
3737
}
3838

3939
/**
40-
* Set the code value.
41-
*
42-
* @param code the code value to set
43-
* @return the QueryFailureError object itself.
44-
*/
45-
public QueryFailureError withCode(String code) {
46-
this.code = code;
47-
return this;
48-
}
49-
50-
/**
51-
* Get the message value.
40+
* Get description of the error.
5241
*
5342
* @return the message value
5443
*/
5544
public String message() {
5645
return this.message;
5746
}
5847

59-
/**
60-
* Set the message value.
61-
*
62-
* @param message the message value to set
63-
* @return the QueryFailureError object itself.
64-
*/
65-
public QueryFailureError withMessage(String message) {
66-
this.message = message;
67-
return this;
68-
}
69-
7048
}

0 commit comments

Comments
 (0)