Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Evaluation details of policy language expressions.
*/
public class ExpressionEvaluationDetails {
/**
* Evaluation result.
*/
@JsonProperty(value = "result")
private String result;

/**
* Expression evaluated.
*/
@JsonProperty(value = "expression")
private String expression;

/**
* Property path if the expression is a field or an aliase.
*/
@JsonProperty(value = "path")
private String path;

/**
* Value of the expression.
*/
@JsonProperty(value = "expressionValue")
private String expressionValue;

/**
* Target value to be compared with the expression value.
*/
@JsonProperty(value = "targetValue")
private String targetValue;

/**
* Operator to compare the expression value and the target value.
*/
@JsonProperty(value = "operator")
private String operator;

/**
* Get evaluation result.
*
* @return the result value
*/
public String result() {
return this.result;
}

/**
* Set evaluation result.
*
* @param result the result value to set
* @return the ExpressionEvaluationDetails object itself.
*/
public ExpressionEvaluationDetails withResult(String result) {
this.result = result;
return this;
}

/**
* Get expression evaluated.
*
* @return the expression value
*/
public String expression() {
return this.expression;
}

/**
* Set expression evaluated.
*
* @param expression the expression value to set
* @return the ExpressionEvaluationDetails object itself.
*/
public ExpressionEvaluationDetails withExpression(String expression) {
this.expression = expression;
return this;
}

/**
* Get property path if the expression is a field or an aliase.
*
* @return the path value
*/
public String path() {
return this.path;
}

/**
* Set property path if the expression is a field or an aliase.
*
* @param path the path value to set
* @return the ExpressionEvaluationDetails object itself.
*/
public ExpressionEvaluationDetails withPath(String path) {
this.path = path;
return this;
}

/**
* Get value of the expression.
*
* @return the expressionValue value
*/
public String expressionValue() {
return this.expressionValue;
}

/**
* Set value of the expression.
*
* @param expressionValue the expressionValue value to set
* @return the ExpressionEvaluationDetails object itself.
*/
public ExpressionEvaluationDetails withExpressionValue(String expressionValue) {
this.expressionValue = expressionValue;
return this;
}

/**
* Get target value to be compared with the expression value.
*
* @return the targetValue value
*/
public String targetValue() {
return this.targetValue;
}

/**
* Set target value to be compared with the expression value.
*
* @param targetValue the targetValue value to set
* @return the ExpressionEvaluationDetails object itself.
*/
public ExpressionEvaluationDetails withTargetValue(String targetValue) {
this.targetValue = targetValue;
return this;
}

/**
* Get operator to compare the expression value and the target value.
*
* @return the operator value
*/
public String operator() {
return this.operator;
}

/**
* Set operator to compare the expression value and the target value.
*
* @param operator the operator value to set
* @return the ExpressionEvaluationDetails object itself.
*/
public ExpressionEvaluationDetails withOperator(String operator) {
this.operator = operator;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Evaluation details of IfNotExists effect.
*/
public class IfNotExistsEvaluationDetails {
/**
* ID of the last evaluated resource for IfNotExists effect.
*/
@JsonProperty(value = "resourceId")
private String resourceId;

/**
* Total number of resources to which the existence condition is
* applicable.
*/
@JsonProperty(value = "totalResources")
private Integer totalResources;

/**
* Get iD of the last evaluated resource for IfNotExists effect.
*
* @return the resourceId value
*/
public String resourceId() {
return this.resourceId;
}

/**
* Set iD of the last evaluated resource for IfNotExists effect.
*
* @param resourceId the resourceId value to set
* @return the IfNotExistsEvaluationDetails object itself.
*/
public IfNotExistsEvaluationDetails withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}

/**
* Get total number of resources to which the existence condition is applicable.
*
* @return the totalResources value
*/
public Integer totalResources() {
return this.totalResources;
}

/**
* Set total number of resources to which the existence condition is applicable.
*
* @param totalResources the totalResources value to set
* @return the IfNotExistsEvaluationDetails object itself.
*/
public IfNotExistsEvaluationDetails withTotalResources(Integer totalResources) {
this.totalResources = totalResources;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Policy evaluation details.
*/
public class PolicyEvaluationDetails {
/**
* Details of the evaluated expressions.
*/
@JsonProperty(value = "evaluatedExpressions")
private List<ExpressionEvaluationDetails> evaluatedExpressions;

/**
* Evaluation details of IfNotExists effect.
*/
@JsonProperty(value = "ifNotExistsDetails")
private IfNotExistsEvaluationDetails ifNotExistsDetails;

/**
* Get details of the evaluated expressions.
*
* @return the evaluatedExpressions value
*/
public List<ExpressionEvaluationDetails> evaluatedExpressions() {
return this.evaluatedExpressions;
}

/**
* Set details of the evaluated expressions.
*
* @param evaluatedExpressions the evaluatedExpressions value to set
* @return the PolicyEvaluationDetails object itself.
*/
public PolicyEvaluationDetails withEvaluatedExpressions(List<ExpressionEvaluationDetails> evaluatedExpressions) {
this.evaluatedExpressions = evaluatedExpressions;
return this;
}

/**
* Get evaluation details of IfNotExists effect.
*
* @return the ifNotExistsDetails value
*/
public IfNotExistsEvaluationDetails ifNotExistsDetails() {
return this.ifNotExistsDetails;
}

/**
* Set evaluation details of IfNotExists effect.
*
* @param ifNotExistsDetails the ifNotExistsDetails value to set
* @return the PolicyEvaluationDetails object itself.
*/
public PolicyEvaluationDetails withIfNotExistsDetails(IfNotExistsEvaluationDetails ifNotExistsDetails) {
this.ifNotExistsDetails = ifNotExistsDetails;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ public class QueryOptions {
@JsonProperty(value = "")
private String apply;

/**
* The $expand query parameter. For example, to expand
* policyEvaluationDetails, use $expand=policyEvaluationDetails.
*/
@JsonProperty(value = "")
private String expand;

/**
* Get maximum number of records to return.
*
Expand Down Expand Up @@ -203,4 +210,24 @@ public QueryOptions withApply(String apply) {
return this;
}

/**
* Get the $expand query parameter. For example, to expand policyEvaluationDetails, use $expand=policyEvaluationDetails.
*
* @return the expand value
*/
public String expand() {
return this.expand;
}

/**
* Set the $expand query parameter. For example, to expand policyEvaluationDetails, use $expand=policyEvaluationDetails.
*
* @param expand the expand value to set
* @return the QueryOptions object itself.
*/
public QueryOptions withExpand(String expand) {
this.expand = expand;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public OperationsListResultsInner call(ServiceResponse<OperationsListResultsInne
* @return the observable to the OperationsListResultsInner object
*/
public Observable<ServiceResponse<OperationsListResultsInner>> listWithServiceResponseAsync() {
final String apiVersion = "2018-04-04";
final String apiVersion = "2018-07-01-preview";
return service.list(apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OperationsListResultsInner>>>() {
@Override
Expand Down
Loading