Skip to content

Commit

Permalink
Generated from f10ea592929dbbb5b3467a1b01fdff7ff86f1f70 (#3116)
Browse files Browse the repository at this point in the history
Fix PolicyInsights code generation issue
  • Loading branch information
AutorestCI authored Mar 14, 2019
1 parent c511e00 commit bcd6c3c
Show file tree
Hide file tree
Showing 89 changed files with 18,609 additions and 253 deletions.
12 changes: 5 additions & 7 deletions policyinsights/resource-manager/v2018_04_04/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.0.0</version>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-policyinsights</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for PolicyInsights Management</name>
<description>This package contains Microsoft PolicyInsights Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down Expand Up @@ -64,13 +64,11 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-mgmt-resources</artifactId>
<version>1.11.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
<version>1.5.2</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class OperationDisplay {
private String description;

/**
* Get the provider value.
* Get resource provider name.
*
* @return the provider value
*/
Expand All @@ -48,7 +48,7 @@ public String provider() {
}

/**
* Set the provider value.
* Set resource provider name.
*
* @param provider the provider value to set
* @return the OperationDisplay object itself.
Expand All @@ -59,7 +59,7 @@ public OperationDisplay withProvider(String provider) {
}

/**
* Get the resource value.
* Get resource name on which the operation is performed.
*
* @return the resource value
*/
Expand All @@ -68,7 +68,7 @@ public String resource() {
}

/**
* Set the resource value.
* Set resource name on which the operation is performed.
*
* @param resource the resource value to set
* @return the OperationDisplay object itself.
Expand All @@ -79,7 +79,7 @@ public OperationDisplay withResource(String resource) {
}

/**
* Get the operation value.
* Get operation name.
*
* @return the operation value
*/
Expand All @@ -88,7 +88,7 @@ public String operation() {
}

/**
* Set the operation value.
* Set operation name.
*
* @param operation the operation value to set
* @return the OperationDisplay object itself.
Expand All @@ -99,7 +99,7 @@ public OperationDisplay withOperation(String operation) {
}

/**
* Get the description value.
* Get operation description.
*
* @return the description value
*/
Expand All @@ -108,7 +108,7 @@ public String description() {
}

/**
* Set the description value.
* Set operation description.
*
* @param description the description value to set
* @return the OperationDisplay object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class PolicyAssignmentSummary {
private List<PolicyDefinitionSummary> policyDefinitions;

/**
* Get the policyAssignmentId value.
* Get policy assignment ID.
*
* @return the policyAssignmentId value
*/
Expand All @@ -49,7 +49,7 @@ public String policyAssignmentId() {
}

/**
* Set the policyAssignmentId value.
* Set policy assignment ID.
*
* @param policyAssignmentId the policyAssignmentId value to set
* @return the PolicyAssignmentSummary object itself.
Expand All @@ -60,7 +60,7 @@ public PolicyAssignmentSummary withPolicyAssignmentId(String policyAssignmentId)
}

/**
* Get the policySetDefinitionId value.
* Get policy set definition ID, if the policy assignment is for a policy set.
*
* @return the policySetDefinitionId value
*/
Expand All @@ -69,7 +69,7 @@ public String policySetDefinitionId() {
}

/**
* Set the policySetDefinitionId value.
* Set policy set definition ID, if the policy assignment is for a policy set.
*
* @param policySetDefinitionId the policySetDefinitionId value to set
* @return the PolicyAssignmentSummary object itself.
Expand All @@ -80,7 +80,7 @@ public PolicyAssignmentSummary withPolicySetDefinitionId(String policySetDefinit
}

/**
* Get the results value.
* Get non-compliance summary for the policy assignment.
*
* @return the results value
*/
Expand All @@ -89,7 +89,7 @@ public SummaryResults results() {
}

/**
* Set the results value.
* Set non-compliance summary for the policy assignment.
*
* @param results the results value to set
* @return the PolicyAssignmentSummary object itself.
Expand All @@ -100,7 +100,7 @@ public PolicyAssignmentSummary withResults(SummaryResults results) {
}

/**
* Get the policyDefinitions value.
* Get policy definitions summary.
*
* @return the policyDefinitions value
*/
Expand All @@ -109,7 +109,7 @@ public List<PolicyDefinitionSummary> policyDefinitions() {
}

/**
* Set the policyDefinitions value.
* Set policy definitions summary.
*
* @param policyDefinitions the policyDefinitions value to set
* @return the PolicyAssignmentSummary object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class PolicyDefinitionSummary {
private SummaryResults results;

/**
* Get the policyDefinitionId value.
* Get policy definition ID.
*
* @return the policyDefinitionId value
*/
Expand All @@ -48,7 +48,7 @@ public String policyDefinitionId() {
}

/**
* Set the policyDefinitionId value.
* Set policy definition ID.
*
* @param policyDefinitionId the policyDefinitionId value to set
* @return the PolicyDefinitionSummary object itself.
Expand All @@ -59,7 +59,7 @@ public PolicyDefinitionSummary withPolicyDefinitionId(String policyDefinitionId)
}

/**
* Get the policyDefinitionReferenceId value.
* Get policy definition reference ID.
*
* @return the policyDefinitionReferenceId value
*/
Expand All @@ -68,7 +68,7 @@ public String policyDefinitionReferenceId() {
}

/**
* Set the policyDefinitionReferenceId value.
* Set policy definition reference ID.
*
* @param policyDefinitionReferenceId the policyDefinitionReferenceId value to set
* @return the PolicyDefinitionSummary object itself.
Expand All @@ -79,7 +79,7 @@ public PolicyDefinitionSummary withPolicyDefinitionReferenceId(String policyDefi
}

/**
* Get the effect value.
* Get policy effect, i.e. policy definition action.
*
* @return the effect value
*/
Expand All @@ -88,7 +88,7 @@ public String effect() {
}

/**
* Set the effect value.
* Set policy effect, i.e. policy definition action.
*
* @param effect the effect value to set
* @return the PolicyDefinitionSummary object itself.
Expand All @@ -99,7 +99,7 @@ public PolicyDefinitionSummary withEffect(String effect) {
}

/**
* Get the results value.
* Get non-compliance summary for the policy definition.
*
* @return the results value
*/
Expand All @@ -108,7 +108,7 @@ public SummaryResults results() {
}

/**
* Set the results value.
* Set non-compliance summary for the policy definition.
*
* @param results the results value to set
* @return the PolicyDefinitionSummary object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

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

import rx.Completable;
import rx.Observable;

/**
Expand Down Expand Up @@ -100,6 +99,6 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable getMetadataAsync(String scope);
Observable<String> getMetadataAsync(String scope);

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

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

import rx.Completable;
import rx.Observable;

/**
Expand Down Expand Up @@ -186,6 +185,6 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable getMetadataAsync(String scope);
Observable<String> getMetadataAsync(String scope);

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class QueryFailure {
private QueryFailureError error;

/**
* Get the error value.
* Get error definition.
*
* @return the error value
*/
Expand All @@ -30,7 +30,7 @@ public QueryFailureError error() {
}

/**
* Set the error value.
* Set error definition.
*
* @param error the error value to set
* @return the QueryFailure object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ public class QueryFailureError {
* Service specific error code which serves as the substatus for the HTTP
* error code.
*/
@JsonProperty(value = "code")
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

/**
* Description of the error.
*/
@JsonProperty(value = "message")
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;

/**
* Get the code value.
* Get service specific error code which serves as the substatus for the HTTP error code.
*
* @return the code value
*/
Expand All @@ -37,34 +37,12 @@ public String code() {
}

/**
* Set the code value.
*
* @param code the code value to set
* @return the QueryFailureError object itself.
*/
public QueryFailureError withCode(String code) {
this.code = code;
return this;
}

/**
* Get the message value.
* Get description of the error.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set the message value.
*
* @param message the message value to set
* @return the QueryFailureError object itself.
*/
public QueryFailureError withMessage(String message) {
this.message = message;
return this;
}

}
Loading

0 comments on commit bcd6c3c

Please sign in to comment.