diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/ExpressionEvaluationDetails.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/ExpressionEvaluationDetails.java new file mode 100644 index 000000000000..ed9f8805e2a3 --- /dev/null +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/ExpressionEvaluationDetails.java @@ -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; + } + +} diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/IfNotExistsEvaluationDetails.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/IfNotExistsEvaluationDetails.java new file mode 100644 index 000000000000..e8090479b098 --- /dev/null +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/IfNotExistsEvaluationDetails.java @@ -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; + } + +} diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/PolicyEvaluationDetails.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/PolicyEvaluationDetails.java new file mode 100644 index 000000000000..3f5c418e2c37 --- /dev/null +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/PolicyEvaluationDetails.java @@ -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 evaluatedExpressions; + + /** + * Evaluation details of IfNotExists effect. + */ + @JsonProperty(value = "ifNotExistsDetails") + private IfNotExistsEvaluationDetails ifNotExistsDetails; + + /** + * Get details of the evaluated expressions. + * + * @return the evaluatedExpressions value + */ + public List 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 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; + } + +} diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/QueryOptions.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/QueryOptions.java index 60a5bd9a52af..3e39597de692 100644 --- a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/QueryOptions.java +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/QueryOptions.java @@ -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. * @@ -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; + } + } diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/OperationsInner.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/OperationsInner.java index 9707d0aa73d8..7473be30a39d 100644 --- a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/OperationsInner.java +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/OperationsInner.java @@ -101,7 +101,7 @@ public OperationsListResultsInner call(ServiceResponse> 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, Observable>>() { @Override diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStateInner.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStateInner.java index ba58bda2f2ce..face05b5eb27 100644 --- a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStateInner.java +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStateInner.java @@ -10,6 +10,7 @@ import java.util.Map; import org.joda.time.DateTime; +import com.microsoft.azure.management.policyinsights.v2018_07_01_preview.PolicyEvaluationDetails; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -193,6 +194,18 @@ public class PolicyStateInner { @JsonProperty(value = "policyDefinitionReferenceId") private String policyDefinitionReferenceId; + /** + * Compliance state of the resource. + */ + @JsonProperty(value = "complianceState") + private String complianceState; + + /** + * Policy evaluation details. + */ + @JsonProperty(value = "policyEvaluationDetails") + private PolicyEvaluationDetails policyEvaluationDetails; + /** * Get unmatched properties from the message are deserialized this collection. * @@ -753,4 +766,44 @@ public PolicyStateInner withPolicyDefinitionReferenceId(String policyDefinitionR return this; } + /** + * Get compliance state of the resource. + * + * @return the complianceState value + */ + public String complianceState() { + return this.complianceState; + } + + /** + * Set compliance state of the resource. + * + * @param complianceState the complianceState value to set + * @return the PolicyStateInner object itself. + */ + public PolicyStateInner withComplianceState(String complianceState) { + this.complianceState = complianceState; + return this; + } + + /** + * Get policy evaluation details. + * + * @return the policyEvaluationDetails value + */ + public PolicyEvaluationDetails policyEvaluationDetails() { + return this.policyEvaluationDetails; + } + + /** + * Set policy evaluation details. + * + * @param policyEvaluationDetails the policyEvaluationDetails value to set + * @return the PolicyStateInner object itself. + */ + public PolicyStateInner withPolicyEvaluationDetails(PolicyEvaluationDetails policyEvaluationDetails) { + this.policyEvaluationDetails = policyEvaluationDetails; + return this; + } + } diff --git a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStatesInner.java b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStatesInner.java index d8a95be5e50a..f52804758294 100644 --- a/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStatesInner.java +++ b/policyinsights/resource-manager/v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/PolicyStatesInner.java @@ -82,7 +82,7 @@ interface PolicyStatesService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2018_07_01_preview.PolicyStates listQueryResultsForResource" }) @POST("{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults") - Observable> listQueryResultsForResource(@Path("policyStatesResource") PolicyStatesResource policyStatesResource1, @Path(value = "resourceId", encoded = true) String resourceId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("$top") Integer top, @Query("$orderby") String orderBy, @Query("$select") String select, @Query("$from") DateTime from, @Query("$to") DateTime to, @Query("$filter") String filter, @Query("$apply") String apply, @Header("User-Agent") String userAgent); + Observable> listQueryResultsForResource(@Path("policyStatesResource") PolicyStatesResource policyStatesResource1, @Path(value = "resourceId", encoded = true) String resourceId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("$top") Integer top, @Query("$orderby") String orderBy, @Query("$select") String select, @Query("$from") DateTime from, @Query("$to") DateTime to, @Query("$filter") String filter, @Query("$apply") String apply, @Query("$expand") String expand, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2018_07_01_preview.PolicyStates summarizeForResource" }) @POST("{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize") @@ -186,7 +186,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter managementGroupName is required and cannot be null."); } final String managementGroupsNamespace = "Microsoft.Management"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -274,7 +274,7 @@ public Observable> listQueryResul } Validator.validate(queryOptions); final String managementGroupsNamespace = "Microsoft.Management"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -378,7 +378,7 @@ public Observable> summarizeForManagement } final String policyStatesSummaryResource = "latest"; final String managementGroupsNamespace = "Microsoft.Management"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -457,7 +457,7 @@ public Observable> summarizeForManagement Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; final String managementGroupsNamespace = "Microsoft.Management"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -554,7 +554,7 @@ public Observable> listQueryResul if (subscriptionId == null) { throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."); } - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -641,7 +641,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."); } Validator.validate(queryOptions); - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -744,7 +744,7 @@ public Observable> summarizeForSubscripti throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null."); } final String policyStatesSummaryResource = "latest"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -822,7 +822,7 @@ public Observable> summarizeForSubscripti } Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -926,7 +926,7 @@ public Observable> listQueryResul if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -1020,7 +1020,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } Validator.validate(queryOptions); - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -1130,7 +1130,7 @@ public Observable> summarizeForResourceGr throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } final String policyStatesSummaryResource = "latest"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -1215,7 +1215,7 @@ public Observable> summarizeForResourceGr } Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -1312,7 +1312,7 @@ public Observable> listQueryResul if (resourceId == null) { throw new IllegalArgumentException("Parameter resourceId is required and cannot be null."); } - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -1321,7 +1321,8 @@ public Observable> listQueryResul DateTime to = null; String filter = null; String apply = null; - return service.listQueryResultsForResource(policyStatesResource, resourceId, apiVersion, this.client.acceptLanguage(), top, orderBy, select, from, to, filter, apply, this.client.userAgent()) + String expand = null; + return service.listQueryResultsForResource(policyStatesResource, resourceId, apiVersion, this.client.acceptLanguage(), top, orderBy, select, from, to, filter, apply, expand, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1399,7 +1400,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter resourceId is required and cannot be null."); } Validator.validate(queryOptions); - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -1428,7 +1429,11 @@ public Observable> listQueryResul if (queryOptions != null) { apply = queryOptions.apply(); } - return service.listQueryResultsForResource(policyStatesResource, resourceId, apiVersion, this.client.acceptLanguage(), top, orderBy, select, from, to, filter, apply, this.client.userAgent()) + String expand = null; + if (queryOptions != null) { + expand = queryOptions.expand(); + } + return service.listQueryResultsForResource(policyStatesResource, resourceId, apiVersion, this.client.acceptLanguage(), top, orderBy, select, from, to, filter, apply, expand, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1502,7 +1507,7 @@ public Observable> summarizeForResourceWi throw new IllegalArgumentException("Parameter resourceId is required and cannot be null."); } final String policyStatesSummaryResource = "latest"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -1580,7 +1585,7 @@ public Observable> summarizeForResourceWi } Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -1685,7 +1690,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter policySetDefinitionName is required and cannot be null."); } final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -1780,7 +1785,7 @@ public Observable> listQueryResul } Validator.validate(queryOptions); final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -1891,7 +1896,7 @@ public Observable> summarizeForPolicySetD } final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -1977,7 +1982,7 @@ public Observable> summarizeForPolicySetD Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -2082,7 +2087,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter policyDefinitionName is required and cannot be null."); } final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -2177,7 +2182,7 @@ public Observable> listQueryResul } Validator.validate(queryOptions); final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -2288,7 +2293,7 @@ public Observable> summarizeForPolicyDefi } final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -2374,7 +2379,7 @@ public Observable> summarizeForPolicyDefi Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -2479,7 +2484,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter policyAssignmentName is required and cannot be null."); } final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -2574,7 +2579,7 @@ public Observable> listQueryResul } Validator.validate(queryOptions); final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -2685,7 +2690,7 @@ public Observable> summarizeForSubscripti } final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -2771,7 +2776,7 @@ public Observable> summarizeForSubscripti Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -2883,7 +2888,7 @@ public Observable> listQueryResul throw new IllegalArgumentException("Parameter policyAssignmentName is required and cannot be null."); } final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; String orderBy = null; @@ -2985,7 +2990,7 @@ public Observable> listQueryResul } Validator.validate(queryOptions); final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -3103,7 +3108,7 @@ public Observable> summarizeForResourceGr } final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; final QueryOptions queryOptions = null; Integer top = null; DateTime from = null; @@ -3196,7 +3201,7 @@ public Observable> summarizeForResourceGr Validator.validate(queryOptions); final String policyStatesSummaryResource = "latest"; final String authorizationNamespace = "Microsoft.Authorization"; - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; Integer top = null; if (queryOptions != null) { top = queryOptions.top(); @@ -3286,7 +3291,7 @@ public Observable> getMetadataWithServiceResponseAsync(S if (scope == null) { throw new IllegalArgumentException("Parameter scope is required and cannot be null."); } - final String apiVersion = "2018-04-04"; + final String apiVersion = "2018-07-01-preview"; return service.getMetadata(scope, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override