Skip to content
Closed
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
4 changes: 3 additions & 1 deletion sdk/policyinsights/mgmt-v2018_07_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-policyinsights</artifactId>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
/**
* 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.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.policyinsights.v2018_07_01_preview.implementation.PolicyInsightsManager;
import com.microsoft.azure.management.policyinsights.v2018_07_01_preview.implementation.PolicyStateInner;
import java.util.Map;
import org.joda.time.DateTime;

/**
* Type representing PolicyState.
*/
public interface PolicyState extends HasInner<PolicyStateInner>, HasManager<PolicyInsightsManager> {
/**
* @return the additionalProperties value.
*/
Map<String, Object> additionalProperties();

/**
* @return the complianceState value.
*/
String complianceState();

/**
* @return the effectiveParameters value.
*/
String effectiveParameters();

/**
* @return the isCompliant value.
*/
Boolean isCompliant();

/**
* @return the managementGroupIds value.
*/
String managementGroupIds();

/**
* @return the odatacontext value.
*/
String odatacontext();

/**
* @return the odataid value.
*/
String odataid();

/**
* @return the policyAssignmentId value.
*/
String policyAssignmentId();

/**
* @return the policyAssignmentName value.
*/
String policyAssignmentName();

/**
* @return the policyAssignmentOwner value.
*/
String policyAssignmentOwner();

/**
* @return the policyAssignmentParameters value.
*/
String policyAssignmentParameters();

/**
* @return the policyAssignmentScope value.
*/
String policyAssignmentScope();

/**
* @return the policyDefinitionAction value.
*/
String policyDefinitionAction();

/**
* @return the policyDefinitionCategory value.
*/
String policyDefinitionCategory();

/**
* @return the policyDefinitionId value.
*/
String policyDefinitionId();

/**
* @return the policyDefinitionName value.
*/
String policyDefinitionName();

/**
* @return the policyDefinitionReferenceId value.
*/
String policyDefinitionReferenceId();

/**
* @return the policyEvaluationDetails value.
*/
PolicyEvaluationDetails policyEvaluationDetails();

/**
* @return the policySetDefinitionCategory value.
*/
String policySetDefinitionCategory();

/**
* @return the policySetDefinitionId value.
*/
String policySetDefinitionId();

/**
* @return the policySetDefinitionName value.
*/
String policySetDefinitionName();

/**
* @return the policySetDefinitionOwner value.
*/
String policySetDefinitionOwner();

/**
* @return the policySetDefinitionParameters value.
*/
String policySetDefinitionParameters();

/**
* @return the resourceGroup value.
*/
String resourceGroup();

/**
* @return the resourceId value.
*/
String resourceId();

/**
* @return the resourceLocation value.
*/
String resourceLocation();

/**
* @return the resourceTags value.
*/
String resourceTags();

/**
* @return the resourceType value.
*/
String resourceType();

/**
* @return the subscriptionId value.
*/
String subscriptionId();

/**
* @return the timestamp value.
*/
DateTime timestamp();

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForManagementGroupAsync(PolicyStatesResource policyStatesResource, String managementGroupName);
Observable<PolicyState> listQueryResultsForManagementGroupAsync(final PolicyStatesResource policyStatesResource, final String managementGroupName);

/**
* Summarizes policy states for the resources under the management group.
Expand All @@ -41,7 +41,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForSubscriptionAsync(PolicyStatesResource policyStatesResource, String subscriptionId);
Observable<PolicyState> listQueryResultsForSubscriptionAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId);

/**
* Summarizes policy states for the resources under the subscription.
Expand All @@ -61,7 +61,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForResourceGroupAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName);
Observable<PolicyState> listQueryResultsForResourceGroupAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String resourceGroupName);

/**
* Summarizes policy states for the resources under the resource group.
Expand All @@ -81,7 +81,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForResourceAsync(PolicyStatesResource policyStatesResource, String resourceId);
Observable<PolicyState> listQueryResultsForResourceAsync(final PolicyStatesResource policyStatesResource, final String resourceId);

/**
* Summarizes policy states for the resource.
Expand All @@ -101,7 +101,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForPolicySetDefinitionAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName);
Observable<PolicyState> listQueryResultsForPolicySetDefinitionAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String policySetDefinitionName);

/**
* Summarizes policy states for the subscription level policy set definition.
Expand All @@ -122,7 +122,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForPolicyDefinitionAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policyDefinitionName);
Observable<PolicyState> listQueryResultsForPolicyDefinitionAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String policyDefinitionName);

/**
* Summarizes policy states for the subscription level policy definition.
Expand All @@ -143,7 +143,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForSubscriptionLevelPolicyAssignmentAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName);
Observable<PolicyState> listQueryResultsForSubscriptionLevelPolicyAssignmentAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String policyAssignmentName);

/**
* Summarizes policy states for the subscription level policy assignment.
Expand All @@ -165,7 +165,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PolicyStatesQueryResults> listQueryResultsForResourceGroupLevelPolicyAssignmentAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName);
Observable<PolicyState> listQueryResultsForResourceGroupLevelPolicyAssignmentAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String resourceGroupName, final String policyAssignmentName);

/**
* Summarizes policy states for the resource group level policy assignment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public interface Remediation extends HasInner<RemediationInner>, Indexable, Upda
/**
* The entirety of the Remediation definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithManagementGroup, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoft.PolicyInsight, DefinitionStages.WithCreate {
}

/**
Expand All @@ -85,19 +85,19 @@ interface DefinitionStages {
/**
* The first stage of a Remediation definition.
*/
interface Blank extends WithManagementGroup {
interface Blank extends WithMicrosoft.PolicyInsight {
}

/**
* The stage of the remediation definition allowing to specify Microsoft.PolicyInsight.
*/
interface WithManagementGroup {
interface WithMicrosoft.PolicyInsight {
/**
* Specifies managementGroupId.
* @param managementGroupId Management group ID
* @return the next definition stage
*/
WithCreate withManagementGroupId(String managementGroupId);
WithCreate withExistingMicrosoft.PolicyInsight(String managementGroupId);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**
* 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.implementation;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.Page;
import java.util.List;

/**
* An instance of this class defines a page of Azure resources and a link to
* get the next page of resources, if any.
*
* @param <T> type of Azure resource
*/
public class PageImpl1<T> implements Page<T> {
/**
* The link to the next page.
*/
@JsonProperty("@odata.nextLink")
private String nextPageLink;

/**
* The list of items.
*/
@JsonProperty("value")
private List<T> items;

/**
* Gets the link to the next page.
*
* @return the link to the next page.
*/
@Override
public String nextPageLink() {
return this.nextPageLink;
}

/**
* Gets the list of items.
*
* @return the list of items in {@link List}.
*/
@Override
public List<T> items() {
return items;
}

/**
* Sets the link to the next page.
*
* @param nextPageLink the link to the next page.
* @return this Page object itself.
*/
public PageImpl1<T> setNextPageLink(String nextPageLink) {
this.nextPageLink = nextPageLink;
return this;
}

/**
* Sets the list of items.
*
* @param items the list of items in {@link List}.
* @return this Page object itself.
*/
public PageImpl1<T> setItems(List<T> items) {
this.items = items;
return this;
}
}
Loading