diff --git a/sdk/policyinsights/mgmt-v2019_10_01/pom.xml b/sdk/policyinsights/mgmt-v2019_10_01/pom.xml
index 1b09c2954250..025cea421db0 100644
--- a/sdk/policyinsights/mgmt-v2019_10_01/pom.xml
+++ b/sdk/policyinsights/mgmt-v2019_10_01/pom.xml
@@ -12,7 +12,7 @@
com.microsoft.azure
azure-arm-parent
1.1.0
- ../../parents/azure-arm-parent
+ ../../../pom.management.xml
azure-mgmt-policyinsights
1.0.0-beta
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Attestation.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Attestation.java
new file mode 100644
index 000000000000..38bf8e8dbdad
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Attestation.java
@@ -0,0 +1,306 @@
+/**
+ * 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.v2019_10_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.AttestationInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.PolicyInsightsManager;
+import org.joda.time.DateTime;
+import java.util.List;
+
+/**
+ * Type representing Attestation.
+ */
+public interface Attestation extends HasInner, Indexable, Updatable, HasManager {
+ /**
+ * @return the comments value.
+ */
+ String comments();
+
+ /**
+ * @return the complianceState value.
+ */
+ ComplianceState complianceState();
+
+ /**
+ * @return the evidence value.
+ */
+ List evidence();
+
+ /**
+ * @return the expiresOn value.
+ */
+ DateTime expiresOn();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the lastComplianceStateChangeAt value.
+ */
+ DateTime lastComplianceStateChangeAt();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the owner value.
+ */
+ String owner();
+
+ /**
+ * @return the policyAssignmentId value.
+ */
+ String policyAssignmentId();
+
+ /**
+ * @return the policyDefinitionReferenceId value.
+ */
+ String policyDefinitionReferenceId();
+
+ /**
+ * @return the provisioningState value.
+ */
+ String provisioningState();
+
+ /**
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the Attestation definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSubscriptionId, DefinitionStages.WithResourceGroupName, DefinitionStages.WithPolicyAssignmentId, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Attestation definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Attestation definition.
+ */
+ interface Blank extends WithSubscriptionId {
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify SubscriptionId.
+ */
+ interface WithSubscriptionId {
+ /**
+ * Specifies subscriptionId.
+ * @param subscriptionId The ID of the target subscription
+ * @return the next definition stage
+ */
+ WithResourceGroupName withSubscriptionId(String subscriptionId);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify ResourceGroupName.
+ */
+ interface WithResourceGroupName {
+ /**
+ * Specifies resourceGroupName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @return the next definition stage
+ */
+ WithPolicyAssignmentId withResourceGroupName(String resourceGroupName);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify PolicyAssignmentId.
+ */
+ interface WithPolicyAssignmentId {
+ /**
+ * Specifies policyAssignmentId.
+ * @param policyAssignmentId The resource ID of the policy assignment that the attestation is setting the state for
+ * @return the next definition stage
+ */
+ WithCreate withPolicyAssignmentId(String policyAssignmentId);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify Comments.
+ */
+ interface WithComments {
+ /**
+ * Specifies comments.
+ * @param comments Comments describing why this attestation was created
+ * @return the next definition stage
+ */
+ WithCreate withComments(String comments);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify ComplianceState.
+ */
+ interface WithComplianceState {
+ /**
+ * Specifies complianceState.
+ * @param complianceState The compliance state that should be set on the resource. Possible values include: 'Compliant', 'NonCompliant', 'Unknown'
+ * @return the next definition stage
+ */
+ WithCreate withComplianceState(ComplianceState complianceState);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify Evidence.
+ */
+ interface WithEvidence {
+ /**
+ * Specifies evidence.
+ * @param evidence The evidence supporting the compliance state set in this attestation
+ * @return the next definition stage
+ */
+ WithCreate withEvidence(List evidence);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify ExpiresOn.
+ */
+ interface WithExpiresOn {
+ /**
+ * Specifies expiresOn.
+ * @param expiresOn The time the compliance state should expire
+ * @return the next definition stage
+ */
+ WithCreate withExpiresOn(DateTime expiresOn);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify Owner.
+ */
+ interface WithOwner {
+ /**
+ * Specifies owner.
+ * @param owner The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID
+ * @return the next definition stage
+ */
+ WithCreate withOwner(String owner);
+ }
+
+ /**
+ * The stage of the attestation definition allowing to specify PolicyDefinitionReferenceId.
+ */
+ interface WithPolicyDefinitionReferenceId {
+ /**
+ * Specifies policyDefinitionReferenceId.
+ * @param policyDefinitionReferenceId The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition
+ * @return the next definition stage
+ */
+ WithCreate withPolicyDefinitionReferenceId(String policyDefinitionReferenceId);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithComments, DefinitionStages.WithComplianceState, DefinitionStages.WithEvidence, DefinitionStages.WithExpiresOn, DefinitionStages.WithOwner, DefinitionStages.WithPolicyDefinitionReferenceId {
+ }
+ }
+ /**
+ * The template for a Attestation update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithComments, UpdateStages.WithComplianceState, UpdateStages.WithEvidence, UpdateStages.WithExpiresOn, UpdateStages.WithOwner, UpdateStages.WithPolicyDefinitionReferenceId {
+ }
+
+ /**
+ * Grouping of Attestation update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the attestation update allowing to specify Comments.
+ */
+ interface WithComments {
+ /**
+ * Specifies comments.
+ * @param comments Comments describing why this attestation was created
+ * @return the next update stage
+ */
+ Update withComments(String comments);
+ }
+
+ /**
+ * The stage of the attestation update allowing to specify ComplianceState.
+ */
+ interface WithComplianceState {
+ /**
+ * Specifies complianceState.
+ * @param complianceState The compliance state that should be set on the resource. Possible values include: 'Compliant', 'NonCompliant', 'Unknown'
+ * @return the next update stage
+ */
+ Update withComplianceState(ComplianceState complianceState);
+ }
+
+ /**
+ * The stage of the attestation update allowing to specify Evidence.
+ */
+ interface WithEvidence {
+ /**
+ * Specifies evidence.
+ * @param evidence The evidence supporting the compliance state set in this attestation
+ * @return the next update stage
+ */
+ Update withEvidence(List evidence);
+ }
+
+ /**
+ * The stage of the attestation update allowing to specify ExpiresOn.
+ */
+ interface WithExpiresOn {
+ /**
+ * Specifies expiresOn.
+ * @param expiresOn The time the compliance state should expire
+ * @return the next update stage
+ */
+ Update withExpiresOn(DateTime expiresOn);
+ }
+
+ /**
+ * The stage of the attestation update allowing to specify Owner.
+ */
+ interface WithOwner {
+ /**
+ * Specifies owner.
+ * @param owner The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID
+ * @return the next update stage
+ */
+ Update withOwner(String owner);
+ }
+
+ /**
+ * The stage of the attestation update allowing to specify PolicyDefinitionReferenceId.
+ */
+ interface WithPolicyDefinitionReferenceId {
+ /**
+ * Specifies policyDefinitionReferenceId.
+ * @param policyDefinitionReferenceId The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition
+ * @return the next update stage
+ */
+ Update withPolicyDefinitionReferenceId(String policyDefinitionReferenceId);
+ }
+
+ }
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/AttestationEvidence.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/AttestationEvidence.java
new file mode 100644
index 000000000000..4e70bc1d7ebf
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/AttestationEvidence.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_10_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * A piece of evidence supporting the compliance state set in the attestation.
+ */
+public class AttestationEvidence {
+ /**
+ * The description for this piece of evidence.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * The URI location of the evidence.
+ */
+ @JsonProperty(value = "sourceUri")
+ private String sourceUri;
+
+ /**
+ * Get the description for this piece of evidence.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description for this piece of evidence.
+ *
+ * @param description the description value to set
+ * @return the AttestationEvidence object itself.
+ */
+ public AttestationEvidence withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the URI location of the evidence.
+ *
+ * @return the sourceUri value
+ */
+ public String sourceUri() {
+ return this.sourceUri;
+ }
+
+ /**
+ * Set the URI location of the evidence.
+ *
+ * @param sourceUri the sourceUri value to set
+ * @return the AttestationEvidence object itself.
+ */
+ public AttestationEvidence withSourceUri(String sourceUri) {
+ this.sourceUri = sourceUri;
+ return this;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Attestations.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Attestations.java
new file mode 100644
index 000000000000..f91ea6cd51e6
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Attestations.java
@@ -0,0 +1,134 @@
+/**
+ * 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.v2019_10_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.AttestationInner;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.AttestationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Attestations.
+ */
+public interface Attestations extends SupportsCreating, HasInner {
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateAtSubscriptionAsync(String subscriptionId, String attestationName, AttestationInner parameters);
+
+ /**
+ * Gets an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtSubscriptionAsync(String subscriptionId, String attestationName);
+
+ /**
+ * Deletes an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAtSubscriptionAsync(String subscriptionId, String attestationName);
+
+ /**
+ * Gets an existing attestation at resource group scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getByResourceGroupAsync(String subscriptionId, String resourceGroupName, String attestationName);
+
+ /**
+ * Deletes an existing attestation at resource group scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAtResourceGroupAsync(String subscriptionId, String resourceGroupName, String attestationName);
+
+ /**
+ * Creates or updates an attestation at resource scope.
+ *
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createOrUpdateAtResourceAsync(String resourceId, String attestationName, AttestationInner parameters);
+
+ /**
+ * Gets an existing attestation at resource scope.
+ *
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAtResourceAsync(String resourceId, String attestationName);
+
+ /**
+ * Deletes an existing attestation at individual resource scope.
+ *
+ * @param resourceId Resource ID.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAtResourceAsync(String resourceId, String attestationName);
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String subscriptionId);
+
+ /**
+ * Gets all attestations for the resource group.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByResourceGroupAsync(final String subscriptionId, final String resourceGroupName);
+
+ /**
+ * Gets all attestations for a resource.
+ *
+ * @param resourceId Resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listForResourceAsync(final String resourceId);
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/AzureEntityResource.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/AzureEntityResource.java
new file mode 100644
index 000000000000..396567212b6f
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/AzureEntityResource.java
@@ -0,0 +1,34 @@
+/**
+ * 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.v2019_10_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * The resource model definition for a Azure Resource Manager resource with an
+ * etag.
+ */
+public class AzureEntityResource extends ProxyResource {
+ /**
+ * Resource Etag.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * Get resource Etag.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComplianceState.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComplianceState.java
new file mode 100644
index 000000000000..9434121cb446
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComplianceState.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ComplianceState.
+ */
+public final class ComplianceState extends ExpandableStringEnum {
+ /** Static value Compliant for ComplianceState. */
+ public static final ComplianceState COMPLIANT = fromString("Compliant");
+
+ /** Static value NonCompliant for ComplianceState. */
+ public static final ComplianceState NON_COMPLIANT = fromString("NonCompliant");
+
+ /** Static value Unknown for ComplianceState. */
+ public static final ComplianceState UNKNOWN = fromString("Unknown");
+
+ /**
+ * Creates or finds a ComplianceState from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ComplianceState
+ */
+ @JsonCreator
+ public static ComplianceState fromString(String name) {
+ return fromString(name, ComplianceState.class);
+ }
+
+ /**
+ * @return known ComplianceState values
+ */
+ public static Collection values() {
+ return values(ComplianceState.class);
+ }
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComponentEventDetails.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComponentEventDetails.java
new file mode 100644
index 000000000000..e6863e8515f0
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComponentEventDetails.java
@@ -0,0 +1,228 @@
+/**
+ * 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.v2019_10_01;
+
+import java.util.Map;
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Component event details.
+ */
+public class ComponentEventDetails {
+ /**
+ * Unmatched properties from the message are deserialized this collection.
+ */
+ @JsonProperty(value = "")
+ private Map additionalProperties;
+
+ /**
+ * Component Id.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Component type.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /**
+ * Component name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Timestamp for component policy event record.
+ */
+ @JsonProperty(value = "timestamp")
+ private DateTime timestamp;
+
+ /**
+ * Tenant ID for the policy event record.
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /**
+ * Principal object ID for the user who initiated the resource component
+ * operation that triggered the policy event.
+ */
+ @JsonProperty(value = "principalOid")
+ private String principalOid;
+
+ /**
+ * Policy definition action, i.e. effect.
+ */
+ @JsonProperty(value = "policyDefinitionAction")
+ private String policyDefinitionAction;
+
+ /**
+ * Get unmatched properties from the message are deserialized this collection.
+ *
+ * @return the additionalProperties value
+ */
+ public Map additionalProperties() {
+ return this.additionalProperties;
+ }
+
+ /**
+ * Set unmatched properties from the message are deserialized this collection.
+ *
+ * @param additionalProperties the additionalProperties value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withAdditionalProperties(Map additionalProperties) {
+ this.additionalProperties = additionalProperties;
+ return this;
+ }
+
+ /**
+ * Get component Id.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set component Id.
+ *
+ * @param id the id value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get component type.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set component type.
+ *
+ * @param type the type value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get component name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set component name.
+ *
+ * @param name the name value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get timestamp for component policy event record.
+ *
+ * @return the timestamp value
+ */
+ public DateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Set timestamp for component policy event record.
+ *
+ * @param timestamp the timestamp value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withTimestamp(DateTime timestamp) {
+ this.timestamp = timestamp;
+ return this;
+ }
+
+ /**
+ * Get tenant ID for the policy event record.
+ *
+ * @return the tenantId value
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set tenant ID for the policy event record.
+ *
+ * @param tenantId the tenantId value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get principal object ID for the user who initiated the resource component operation that triggered the policy event.
+ *
+ * @return the principalOid value
+ */
+ public String principalOid() {
+ return this.principalOid;
+ }
+
+ /**
+ * Set principal object ID for the user who initiated the resource component operation that triggered the policy event.
+ *
+ * @param principalOid the principalOid value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withPrincipalOid(String principalOid) {
+ this.principalOid = principalOid;
+ return this;
+ }
+
+ /**
+ * Get policy definition action, i.e. effect.
+ *
+ * @return the policyDefinitionAction value
+ */
+ public String policyDefinitionAction() {
+ return this.policyDefinitionAction;
+ }
+
+ /**
+ * Set policy definition action, i.e. effect.
+ *
+ * @param policyDefinitionAction the policyDefinitionAction value to set
+ * @return the ComponentEventDetails object itself.
+ */
+ public ComponentEventDetails withPolicyDefinitionAction(String policyDefinitionAction) {
+ this.policyDefinitionAction = policyDefinitionAction;
+ return this;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComponentStateDetails.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComponentStateDetails.java
new file mode 100644
index 000000000000..c85a7ea16103
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/ComponentStateDetails.java
@@ -0,0 +1,175 @@
+/**
+ * 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.v2019_10_01;
+
+import java.util.Map;
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Component state details.
+ */
+public class ComponentStateDetails {
+ /**
+ * Unmatched properties from the message are deserialized this collection.
+ */
+ @JsonProperty(value = "")
+ private Map additionalProperties;
+
+ /**
+ * Component Id.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Component type.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /**
+ * Component name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Component compliance evaluation timestamp.
+ */
+ @JsonProperty(value = "timestamp")
+ private DateTime timestamp;
+
+ /**
+ * Component compliance state.
+ */
+ @JsonProperty(value = "complianceState")
+ private String complianceState;
+
+ /**
+ * Get unmatched properties from the message are deserialized this collection.
+ *
+ * @return the additionalProperties value
+ */
+ public Map additionalProperties() {
+ return this.additionalProperties;
+ }
+
+ /**
+ * Set unmatched properties from the message are deserialized this collection.
+ *
+ * @param additionalProperties the additionalProperties value to set
+ * @return the ComponentStateDetails object itself.
+ */
+ public ComponentStateDetails withAdditionalProperties(Map additionalProperties) {
+ this.additionalProperties = additionalProperties;
+ return this;
+ }
+
+ /**
+ * Get component Id.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set component Id.
+ *
+ * @param id the id value to set
+ * @return the ComponentStateDetails object itself.
+ */
+ public ComponentStateDetails withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get component type.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set component type.
+ *
+ * @param type the type value to set
+ * @return the ComponentStateDetails object itself.
+ */
+ public ComponentStateDetails withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get component name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set component name.
+ *
+ * @param name the name value to set
+ * @return the ComponentStateDetails object itself.
+ */
+ public ComponentStateDetails withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get component compliance evaluation timestamp.
+ *
+ * @return the timestamp value
+ */
+ public DateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Set component compliance evaluation timestamp.
+ *
+ * @param timestamp the timestamp value to set
+ * @return the ComponentStateDetails object itself.
+ */
+ public ComponentStateDetails withTimestamp(DateTime timestamp) {
+ this.timestamp = timestamp;
+ return this;
+ }
+
+ /**
+ * Get component compliance state.
+ *
+ * @return the complianceState value
+ */
+ public String complianceState() {
+ return this.complianceState;
+ }
+
+ /**
+ * Set component compliance state.
+ *
+ * @param complianceState the complianceState value to set
+ * @return the ComponentStateDetails object itself.
+ */
+ public ComponentStateDetails withComplianceState(String complianceState) {
+ this.complianceState = complianceState;
+ return this;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/CreatedByType.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/CreatedByType.java
new file mode 100644
index 000000000000..5809f9bf1d2b
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/CreatedByType.java
@@ -0,0 +1,47 @@
+/**
+ * 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.v2019_10_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for CreatedByType.
+ */
+public final class CreatedByType extends ExpandableStringEnum {
+ /** Static value User for CreatedByType. */
+ public static final CreatedByType USER = fromString("User");
+
+ /** Static value Application for CreatedByType. */
+ public static final CreatedByType APPLICATION = fromString("Application");
+
+ /** Static value ManagedIdentity for CreatedByType. */
+ public static final CreatedByType MANAGED_IDENTITY = fromString("ManagedIdentity");
+
+ /** Static value Key for CreatedByType. */
+ public static final CreatedByType KEY = fromString("Key");
+
+ /**
+ * Creates or finds a CreatedByType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding CreatedByType
+ */
+ @JsonCreator
+ public static CreatedByType fromString(String name) {
+ return fromString(name, CreatedByType.class);
+ }
+
+ /**
+ * @return known CreatedByType values
+ */
+ public static Collection values() {
+ return values(CreatedByType.class);
+ }
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvent.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvent.java
new file mode 100644
index 000000000000..87049467a64a
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvent.java
@@ -0,0 +1,183 @@
+/**
+ * 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.v2019_10_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.PolicyInsightsManager;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.PolicyEventInner;
+import java.util.Map;
+import java.util.List;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing PolicyEvent.
+ */
+public interface PolicyEvent extends HasInner, HasManager {
+ /**
+ * @return the additionalProperties value.
+ */
+ Map additionalProperties();
+
+ /**
+ * @return the complianceState value.
+ */
+ String complianceState();
+
+ /**
+ * @return the components value.
+ */
+ List components();
+
+ /**
+ * @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 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 principalOid value.
+ */
+ String principalOid();
+
+ /**
+ * @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 tenantId value.
+ */
+ String tenantId();
+
+ /**
+ * @return the timestamp value.
+ */
+ DateTime timestamp();
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvents.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvents.java
index 1d788d1cddad..2198ba63a4bc 100644
--- a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvents.java
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyEvents.java
@@ -21,7 +21,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForManagementGroupAsync(String managementGroupName);
+ Observable listQueryResultsForManagementGroupAsync(final String managementGroupName);
/**
* Queries policy events for the resources under the subscription.
@@ -30,7 +30,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForSubscriptionAsync(String subscriptionId);
+ Observable listQueryResultsForSubscriptionAsync(final String subscriptionId);
/**
* Queries policy events for the resources under the resource group.
@@ -40,7 +40,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForResourceGroupAsync(String subscriptionId, String resourceGroupName);
+ Observable listQueryResultsForResourceGroupAsync(final String subscriptionId, final String resourceGroupName);
/**
* Queries policy events for the resource.
@@ -49,7 +49,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForResourceAsync(String resourceId);
+ Observable listQueryResultsForResourceAsync(final String resourceId);
/**
* Queries policy events for the subscription level policy set definition.
@@ -59,7 +59,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForPolicySetDefinitionAsync(String subscriptionId, String policySetDefinitionName);
+ Observable listQueryResultsForPolicySetDefinitionAsync(final String subscriptionId, final String policySetDefinitionName);
/**
* Queries policy events for the subscription level policy definition.
@@ -69,7 +69,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForPolicyDefinitionAsync(String subscriptionId, String policyDefinitionName);
+ Observable listQueryResultsForPolicyDefinitionAsync(final String subscriptionId, final String policyDefinitionName);
/**
* Queries policy events for the subscription level policy assignment.
@@ -79,7 +79,7 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForSubscriptionLevelPolicyAssignmentAsync(String subscriptionId, String policyAssignmentName);
+ Observable listQueryResultsForSubscriptionLevelPolicyAssignmentAsync(final String subscriptionId, final String policyAssignmentName);
/**
* Queries policy events for the resource group level policy assignment.
@@ -90,15 +90,6 @@ public interface PolicyEvents {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForResourceGroupLevelPolicyAssignmentAsync(String subscriptionId, String resourceGroupName, String policyAssignmentName);
-
- /**
- * Gets OData metadata XML document.
- *
- * @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID. Scope used has no effect on metadata returned.
- * @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the observable for the request
- */
- Observable getMetadataAsync(String scope);
+ Observable listQueryResultsForResourceGroupLevelPolicyAssignmentAsync(final String subscriptionId, final String resourceGroupName, final String policyAssignmentName);
}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyState.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyState.java
new file mode 100644
index 000000000000..0f50580abc7f
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyState.java
@@ -0,0 +1,198 @@
+/**
+ * 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.v2019_10_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.PolicyInsightsManager;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.PolicyStateInner;
+import java.util.Map;
+import java.util.List;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing PolicyState.
+ */
+public interface PolicyState extends HasInner, HasManager {
+ /**
+ * @return the additionalProperties value.
+ */
+ Map additionalProperties();
+
+ /**
+ * @return the complianceState value.
+ */
+ String complianceState();
+
+ /**
+ * @return the components value.
+ */
+ List components();
+
+ /**
+ * @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 policyAssignmentVersion value.
+ */
+ String policyAssignmentVersion();
+
+ /**
+ * @return the policyDefinitionAction value.
+ */
+ String policyDefinitionAction();
+
+ /**
+ * @return the policyDefinitionCategory value.
+ */
+ String policyDefinitionCategory();
+
+ /**
+ * @return the policyDefinitionGroupNames value.
+ */
+ List policyDefinitionGroupNames();
+
+ /**
+ * @return the policyDefinitionId value.
+ */
+ String policyDefinitionId();
+
+ /**
+ * @return the policyDefinitionName value.
+ */
+ String policyDefinitionName();
+
+ /**
+ * @return the policyDefinitionReferenceId value.
+ */
+ String policyDefinitionReferenceId();
+
+ /**
+ * @return the policyDefinitionVersion value.
+ */
+ String policyDefinitionVersion();
+
+ /**
+ * @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 policySetDefinitionVersion value.
+ */
+ String policySetDefinitionVersion();
+
+ /**
+ * @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();
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyStates.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyStates.java
index 91c835ae3b6f..916ddac40338 100644
--- a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyStates.java
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/PolicyStates.java
@@ -8,6 +8,7 @@
package com.microsoft.azure.management.policyinsights.v2019_10_01;
+import rx.Completable;
import rx.Observable;
/**
@@ -22,7 +23,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForManagementGroupAsync(PolicyStatesResource policyStatesResource, String managementGroupName);
+ Observable listQueryResultsForManagementGroupAsync(final PolicyStatesResource policyStatesResource, final String managementGroupName);
/**
* Summarizes policy states for the resources under the management group.
@@ -41,7 +42,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForSubscriptionAsync(PolicyStatesResource policyStatesResource, String subscriptionId);
+ Observable listQueryResultsForSubscriptionAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId);
/**
* Summarizes policy states for the resources under the subscription.
@@ -61,7 +62,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForResourceGroupAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName);
+ Observable listQueryResultsForResourceGroupAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String resourceGroupName);
/**
* Summarizes policy states for the resources under the resource group.
@@ -81,7 +82,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForResourceAsync(PolicyStatesResource policyStatesResource, String resourceId);
+ Observable listQueryResultsForResourceAsync(final PolicyStatesResource policyStatesResource, final String resourceId);
/**
* Summarizes policy states for the resource.
@@ -92,6 +93,25 @@ public interface PolicyStates {
*/
Observable summarizeForResourceAsync(String resourceId);
+ /**
+ * Triggers a policy evaluation scan for all the resources under the subscription.
+ *
+ * @param subscriptionId Microsoft Azure subscription ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable triggerSubscriptionEvaluationAsync(String subscriptionId);
+
+ /**
+ * Triggers a policy evaluation scan for all the resources under the resource group.
+ *
+ * @param subscriptionId Microsoft Azure subscription ID.
+ * @param resourceGroupName Resource group name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable triggerResourceGroupEvaluationAsync(String subscriptionId, String resourceGroupName);
+
/**
* Queries policy states for the subscription level policy set definition.
*
@@ -101,7 +121,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForPolicySetDefinitionAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName);
+ Observable listQueryResultsForPolicySetDefinitionAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String policySetDefinitionName);
/**
* Summarizes policy states for the subscription level policy set definition.
@@ -122,7 +142,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForPolicyDefinitionAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policyDefinitionName);
+ Observable listQueryResultsForPolicyDefinitionAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String policyDefinitionName);
/**
* Summarizes policy states for the subscription level policy definition.
@@ -143,7 +163,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForSubscriptionLevelPolicyAssignmentAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName);
+ Observable listQueryResultsForSubscriptionLevelPolicyAssignmentAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String policyAssignmentName);
/**
* Summarizes policy states for the subscription level policy assignment.
@@ -165,7 +185,7 @@ public interface PolicyStates {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Observable listQueryResultsForResourceGroupLevelPolicyAssignmentAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName);
+ Observable listQueryResultsForResourceGroupLevelPolicyAssignmentAsync(final PolicyStatesResource policyStatesResource, final String subscriptionId, final String resourceGroupName, final String policyAssignmentName);
/**
* Summarizes policy states for the resource group level policy assignment.
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/QueryOptions.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/QueryOptions.java
index 5289127854c7..caeccbd74410 100644
--- a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/QueryOptions.java
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/QueryOptions.java
@@ -64,8 +64,15 @@ public class QueryOptions {
private String apply;
/**
- * The $expand query parameter. For example, to expand
- * policyEvaluationDetails, use $expand=policyEvaluationDetails.
+ * Skiptoken is only provided if a previous response returned a partial
+ * result as a part of nextLink element.
+ */
+ @JsonProperty(value = "")
+ private String skipToken;
+
+ /**
+ * The $expand query parameter. For example, to expand components use
+ * $expand=components.
*/
@JsonProperty(value = "")
private String expand;
@@ -211,7 +218,27 @@ public QueryOptions withApply(String apply) {
}
/**
- * Get the $expand query parameter. For example, to expand policyEvaluationDetails, use $expand=policyEvaluationDetails.
+ * Get skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.
+ *
+ * @return the skipToken value
+ */
+ public String skipToken() {
+ return this.skipToken;
+ }
+
+ /**
+ * Set skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.
+ *
+ * @param skipToken the skipToken value to set
+ * @return the QueryOptions object itself.
+ */
+ public QueryOptions withSkipToken(String skipToken) {
+ this.skipToken = skipToken;
+ return this;
+ }
+
+ /**
+ * Get the $expand query parameter. For example, to expand components use $expand=components.
*
* @return the expand value
*/
@@ -220,7 +247,7 @@ public String expand() {
}
/**
- * Set the $expand query parameter. For example, to expand policyEvaluationDetails, use $expand=policyEvaluationDetails.
+ * Set the $expand query parameter. For example, to expand components use $expand=components.
*
* @param expand the expand value to set
* @return the QueryOptions object itself.
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Remediation.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Remediation.java
index 2cb39df9700f..11e7d513d28f 100644
--- a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Remediation.java
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/Remediation.java
@@ -80,7 +80,7 @@ public interface Remediation extends HasInner, Indexable, Upda
/**
* The entirety of the Remediation definition.
*/
- interface Definition extends DefinitionStages.Blank, DefinitionStages.WithManagementGroupId, DefinitionStages.WithCreate {
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoft.PolicyInsight, DefinitionStages.WithCreate {
}
/**
@@ -90,19 +90,19 @@ interface DefinitionStages {
/**
* The first stage of a Remediation definition.
*/
- interface Blank extends WithManagementGroupId {
+ interface Blank extends WithMicrosoft.PolicyInsight {
}
/**
- * The stage of the remediation definition allowing to specify ManagementGroupId.
+ * The stage of the remediation definition allowing to specify Microsoft.PolicyInsight.
*/
- interface WithManagementGroupId {
+ interface WithMicrosoft.PolicyInsight {
/**
* Specifies managementGroupId.
* @param managementGroupId Management group ID
* @return the next definition stage
*/
- WithCreate withExistingManagementGroupId(String managementGroupId);
+ WithCreate withExistingMicrosoft.PolicyInsight(String managementGroupId);
}
/**
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/SystemData.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/SystemData.java
new file mode 100644
index 000000000000..43a0c1e01800
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/SystemData.java
@@ -0,0 +1,176 @@
+/**
+ * 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.v2019_10_01;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+public class SystemData {
+ /**
+ * The identity that created the resource.
+ */
+ @JsonProperty(value = "createdBy")
+ private String createdBy;
+
+ /**
+ * The type of identity that created the resource. Possible values include:
+ * 'User', 'Application', 'ManagedIdentity', 'Key'.
+ */
+ @JsonProperty(value = "createdByType")
+ private CreatedByType createdByType;
+
+ /**
+ * The timestamp of resource creation (UTC).
+ */
+ @JsonProperty(value = "createdAt")
+ private DateTime createdAt;
+
+ /**
+ * The identity that last modified the resource.
+ */
+ @JsonProperty(value = "lastModifiedBy")
+ private String lastModifiedBy;
+
+ /**
+ * The type of identity that last modified the resource. Possible values
+ * include: 'User', 'Application', 'ManagedIdentity', 'Key'.
+ */
+ @JsonProperty(value = "lastModifiedByType")
+ private CreatedByType lastModifiedByType;
+
+ /**
+ * The type of identity that last modified the resource.
+ */
+ @JsonProperty(value = "lastModifiedAt")
+ private DateTime lastModifiedAt;
+
+ /**
+ * Get the identity that created the resource.
+ *
+ * @return the createdBy value
+ */
+ public String createdBy() {
+ return this.createdBy;
+ }
+
+ /**
+ * Set the identity that created the resource.
+ *
+ * @param createdBy the createdBy value to set
+ * @return the SystemData object itself.
+ */
+ public SystemData withCreatedBy(String createdBy) {
+ this.createdBy = createdBy;
+ return this;
+ }
+
+ /**
+ * Get the type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'.
+ *
+ * @return the createdByType value
+ */
+ public CreatedByType createdByType() {
+ return this.createdByType;
+ }
+
+ /**
+ * Set the type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'.
+ *
+ * @param createdByType the createdByType value to set
+ * @return the SystemData object itself.
+ */
+ public SystemData withCreatedByType(CreatedByType createdByType) {
+ this.createdByType = createdByType;
+ return this;
+ }
+
+ /**
+ * Get the timestamp of resource creation (UTC).
+ *
+ * @return the createdAt value
+ */
+ public DateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Set the timestamp of resource creation (UTC).
+ *
+ * @param createdAt the createdAt value to set
+ * @return the SystemData object itself.
+ */
+ public SystemData withCreatedAt(DateTime createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get the identity that last modified the resource.
+ *
+ * @return the lastModifiedBy value
+ */
+ public String lastModifiedBy() {
+ return this.lastModifiedBy;
+ }
+
+ /**
+ * Set the identity that last modified the resource.
+ *
+ * @param lastModifiedBy the lastModifiedBy value to set
+ * @return the SystemData object itself.
+ */
+ public SystemData withLastModifiedBy(String lastModifiedBy) {
+ this.lastModifiedBy = lastModifiedBy;
+ return this;
+ }
+
+ /**
+ * Get the type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'.
+ *
+ * @return the lastModifiedByType value
+ */
+ public CreatedByType lastModifiedByType() {
+ return this.lastModifiedByType;
+ }
+
+ /**
+ * Set the type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'.
+ *
+ * @param lastModifiedByType the lastModifiedByType value to set
+ * @return the SystemData object itself.
+ */
+ public SystemData withLastModifiedByType(CreatedByType lastModifiedByType) {
+ this.lastModifiedByType = lastModifiedByType;
+ return this;
+ }
+
+ /**
+ * Get the type of identity that last modified the resource.
+ *
+ * @return the lastModifiedAt value
+ */
+ public DateTime lastModifiedAt() {
+ return this.lastModifiedAt;
+ }
+
+ /**
+ * Set the type of identity that last modified the resource.
+ *
+ * @param lastModifiedAt the lastModifiedAt value to set
+ * @return the SystemData object itself.
+ */
+ public SystemData withLastModifiedAt(DateTime lastModifiedAt) {
+ this.lastModifiedAt = lastModifiedAt;
+ return this;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationImpl.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationImpl.java
new file mode 100644
index 000000000000..4bc63e666794
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationImpl.java
@@ -0,0 +1,197 @@
+/**
+ * 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.v2019_10_01.implementation;
+
+import com.microsoft.azure.management.policyinsights.v2019_10_01.Attestation;
+import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
+import rx.Observable;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.ComplianceState;
+import org.joda.time.DateTime;
+import java.util.List;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.AttestationEvidence;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.SystemData;
+
+class AttestationImpl extends CreatableUpdatableImpl implements Attestation, Attestation.Definition, Attestation.Update {
+ private String subscriptionId;
+ private String resourceGroupName;
+ private String attestationName;
+ private final PolicyInsightsManager manager;
+
+ AttestationImpl(String name, PolicyInsightsManager manager) {
+ super(name, new AttestationInner());
+ this.manager = manager;
+ // Set resource name
+ this.attestationName = name;
+ //
+ }
+
+ AttestationImpl(AttestationInner inner, PolicyInsightsManager manager) {
+ super(inner.name(), inner);
+ this.manager = manager;
+ // Set resource name
+ this.attestationName = inner.name();
+ // set resource ancestor and positional variables
+ this.subscriptionId = IdParsingUtils.getValueFromIdByName(inner.id(), "subscriptions");
+ this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
+ this.attestationName = IdParsingUtils.getValueFromIdByName(inner.id(), "attestations");
+ // set other parameters for create and update
+ }
+
+ @Override
+ public PolicyInsightsManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable createResourceAsync() {
+ AttestationsInner client = this.manager().inner().attestations();
+ return client.createOrUpdateAtResourceGroupAsync(this.subscriptionId, this.resourceGroupName, this.attestationName, this.inner())
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ public Observable updateResourceAsync() {
+ AttestationsInner client = this.manager().inner().attestations();
+ return client.createOrUpdateAtResourceGroupAsync(this.subscriptionId, this.resourceGroupName, this.attestationName, this.inner())
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ AttestationsInner client = this.manager().inner().attestations();
+ return client.getAtResourceAsync(this.subscriptionId, this.resourceGroupName, this.attestationName);
+ }
+
+ @Override
+ public boolean isInCreateMode() {
+ return this.inner().id() == null;
+ }
+
+
+ @Override
+ public String comments() {
+ return this.inner().comments();
+ }
+
+ @Override
+ public ComplianceState complianceState() {
+ return this.inner().complianceState();
+ }
+
+ @Override
+ public List evidence() {
+ return this.inner().evidence();
+ }
+
+ @Override
+ public DateTime expiresOn() {
+ return this.inner().expiresOn();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public DateTime lastComplianceStateChangeAt() {
+ return this.inner().lastComplianceStateChangeAt();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public String owner() {
+ return this.inner().owner();
+ }
+
+ @Override
+ public String policyAssignmentId() {
+ return this.inner().policyAssignmentId();
+ }
+
+ @Override
+ public String policyDefinitionReferenceId() {
+ return this.inner().policyDefinitionReferenceId();
+ }
+
+ @Override
+ public String provisioningState() {
+ return this.inner().provisioningState();
+ }
+
+ @Override
+ public SystemData systemData() {
+ return this.inner().systemData();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+ @Override
+ public AttestationImpl withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withResourceGroupName(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withPolicyAssignmentId(String policyAssignmentId) {
+ this.inner().withPolicyAssignmentId(policyAssignmentId);
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withComments(String comments) {
+ this.inner().withComments(comments);
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withComplianceState(ComplianceState complianceState) {
+ this.inner().withComplianceState(complianceState);
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withEvidence(List evidence) {
+ this.inner().withEvidence(evidence);
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withExpiresOn(DateTime expiresOn) {
+ this.inner().withExpiresOn(expiresOn);
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withOwner(String owner) {
+ this.inner().withOwner(owner);
+ return this;
+ }
+
+ @Override
+ public AttestationImpl withPolicyDefinitionReferenceId(String policyDefinitionReferenceId) {
+ this.inner().withPolicyDefinitionReferenceId(policyDefinitionReferenceId);
+ return this;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationInner.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationInner.java
new file mode 100644
index 000000000000..7972edef20b3
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationInner.java
@@ -0,0 +1,260 @@
+/**
+ * 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.v2019_10_01.implementation;
+
+import com.microsoft.azure.management.policyinsights.v2019_10_01.ComplianceState;
+import org.joda.time.DateTime;
+import java.util.List;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.AttestationEvidence;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * An attestation resource.
+ */
+@JsonFlatten
+public class AttestationInner extends ProxyResource {
+ /**
+ * The resource ID of the policy assignment that the attestation is setting
+ * the state for.
+ */
+ @JsonProperty(value = "properties.policyAssignmentId", required = true)
+ private String policyAssignmentId;
+
+ /**
+ * The policy definition reference ID from a policy set definition that the
+ * attestation is setting the state for. If the policy assignment assigns a
+ * policy set definition the attestation can choose a definition within the
+ * set definition with this property or omit this and set the state for the
+ * entire set definition.
+ */
+ @JsonProperty(value = "properties.policyDefinitionReferenceId")
+ private String policyDefinitionReferenceId;
+
+ /**
+ * The compliance state that should be set on the resource. Possible values
+ * include: 'Compliant', 'NonCompliant', 'Unknown'.
+ */
+ @JsonProperty(value = "properties.complianceState")
+ private ComplianceState complianceState;
+
+ /**
+ * The time the compliance state should expire.
+ */
+ @JsonProperty(value = "properties.expiresOn")
+ private DateTime expiresOn;
+
+ /**
+ * The person responsible for setting the state of the resource. This value
+ * is typically an Azure Active Directory object ID.
+ */
+ @JsonProperty(value = "properties.owner")
+ private String owner;
+
+ /**
+ * Comments describing why this attestation was created.
+ */
+ @JsonProperty(value = "properties.comments")
+ private String comments;
+
+ /**
+ * The evidence supporting the compliance state set in this attestation.
+ */
+ @JsonProperty(value = "properties.evidence")
+ private List evidence;
+
+ /**
+ * The status of the attestation.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * The time the compliance state was last changed in this attestation.
+ */
+ @JsonProperty(value = "properties.lastComplianceStateChangeAt", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime lastComplianceStateChangeAt;
+
+ /**
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the resource ID of the policy assignment that the attestation is setting the state for.
+ *
+ * @return the policyAssignmentId value
+ */
+ public String policyAssignmentId() {
+ return this.policyAssignmentId;
+ }
+
+ /**
+ * Set the resource ID of the policy assignment that the attestation is setting the state for.
+ *
+ * @param policyAssignmentId the policyAssignmentId value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withPolicyAssignmentId(String policyAssignmentId) {
+ this.policyAssignmentId = policyAssignmentId;
+ return this;
+ }
+
+ /**
+ * Get the policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.
+ *
+ * @return the policyDefinitionReferenceId value
+ */
+ public String policyDefinitionReferenceId() {
+ return this.policyDefinitionReferenceId;
+ }
+
+ /**
+ * Set the policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.
+ *
+ * @param policyDefinitionReferenceId the policyDefinitionReferenceId value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withPolicyDefinitionReferenceId(String policyDefinitionReferenceId) {
+ this.policyDefinitionReferenceId = policyDefinitionReferenceId;
+ return this;
+ }
+
+ /**
+ * Get the compliance state that should be set on the resource. Possible values include: 'Compliant', 'NonCompliant', 'Unknown'.
+ *
+ * @return the complianceState value
+ */
+ public ComplianceState complianceState() {
+ return this.complianceState;
+ }
+
+ /**
+ * Set the compliance state that should be set on the resource. Possible values include: 'Compliant', 'NonCompliant', 'Unknown'.
+ *
+ * @param complianceState the complianceState value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withComplianceState(ComplianceState complianceState) {
+ this.complianceState = complianceState;
+ return this;
+ }
+
+ /**
+ * Get the time the compliance state should expire.
+ *
+ * @return the expiresOn value
+ */
+ public DateTime expiresOn() {
+ return this.expiresOn;
+ }
+
+ /**
+ * Set the time the compliance state should expire.
+ *
+ * @param expiresOn the expiresOn value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withExpiresOn(DateTime expiresOn) {
+ this.expiresOn = expiresOn;
+ return this;
+ }
+
+ /**
+ * Get the person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
+ *
+ * @return the owner value
+ */
+ public String owner() {
+ return this.owner;
+ }
+
+ /**
+ * Set the person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
+ *
+ * @param owner the owner value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withOwner(String owner) {
+ this.owner = owner;
+ return this;
+ }
+
+ /**
+ * Get comments describing why this attestation was created.
+ *
+ * @return the comments value
+ */
+ public String comments() {
+ return this.comments;
+ }
+
+ /**
+ * Set comments describing why this attestation was created.
+ *
+ * @param comments the comments value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withComments(String comments) {
+ this.comments = comments;
+ return this;
+ }
+
+ /**
+ * Get the evidence supporting the compliance state set in this attestation.
+ *
+ * @return the evidence value
+ */
+ public List evidence() {
+ return this.evidence;
+ }
+
+ /**
+ * Set the evidence supporting the compliance state set in this attestation.
+ *
+ * @param evidence the evidence value to set
+ * @return the AttestationInner object itself.
+ */
+ public AttestationInner withEvidence(List evidence) {
+ this.evidence = evidence;
+ return this;
+ }
+
+ /**
+ * Get the status of the attestation.
+ *
+ * @return the provisioningState value
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the time the compliance state was last changed in this attestation.
+ *
+ * @return the lastComplianceStateChangeAt value
+ */
+ public DateTime lastComplianceStateChangeAt() {
+ return this.lastComplianceStateChangeAt;
+ }
+
+ /**
+ * Get azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationsImpl.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationsImpl.java
new file mode 100644
index 000000000000..757703ce3743
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationsImpl.java
@@ -0,0 +1,177 @@
+/**
+ * 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.
+ * jkl
+ */
+
+package com.microsoft.azure.management.policyinsights.v2019_10_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations;
+import rx.Completable;
+import rx.functions.Func1;
+import rx.Observable;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.Attestation;
+
+class AttestationsImpl extends WrapperImpl implements Attestations {
+ private final PolicyInsightsManager manager;
+
+ AttestationsImpl(PolicyInsightsManager manager) {
+ super(manager.inner().attestations());
+ this.manager = manager;
+ }
+
+ public PolicyInsightsManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public AttestationImpl define(String name) {
+ return wrapModel(name);
+ }
+
+ private AttestationImpl wrapModel(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+
+ private AttestationImpl wrapModel(String name) {
+ return new AttestationImpl(name, this.manager());
+ }
+
+ @Override
+ public Observable createOrUpdateAtSubscriptionAsync(String subscriptionId, String attestationName, AttestationInner parameters) {
+ AttestationsInner client = this.inner();
+ return client.createOrUpdateAtSubscriptionAsync(subscriptionId, attestationName, parameters)
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable getAtSubscriptionAsync(String subscriptionId, String attestationName) {
+ AttestationsInner client = this.inner();
+ return client.getAtSubscriptionAsync(subscriptionId, attestationName)
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Completable deleteAtSubscriptionAsync(String subscriptionId, String attestationName) {
+ AttestationsInner client = this.inner();
+ return client.deleteAtSubscriptionAsync(subscriptionId, attestationName).toCompletable();
+ }
+
+ @Override
+ public Observable getByResourceGroupAsync(String subscriptionId, String resourceGroupName, String attestationName) {
+ AttestationsInner client = this.inner();
+ return client.getByResourceGroupAsync(subscriptionId, resourceGroupName, attestationName)
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Completable deleteAtResourceGroupAsync(String subscriptionId, String resourceGroupName, String attestationName) {
+ AttestationsInner client = this.inner();
+ return client.deleteAtResourceGroupAsync(subscriptionId, resourceGroupName, attestationName).toCompletable();
+ }
+
+ @Override
+ public Observable createOrUpdateAtResourceAsync(String resourceId, String attestationName, AttestationInner parameters) {
+ AttestationsInner client = this.inner();
+ return client.createOrUpdateAtResourceAsync(resourceId, attestationName, parameters)
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable getAtResourceAsync(String resourceId, String attestationName) {
+ AttestationsInner client = this.inner();
+ return client.getAtResourceAsync(resourceId, attestationName)
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Completable deleteAtResourceAsync(String resourceId, String attestationName) {
+ AttestationsInner client = this.inner();
+ return client.deleteAtResourceAsync(resourceId, attestationName).toCompletable();
+ }
+
+ @Override
+ public Observable listAsync(final String subscriptionId) {
+ AttestationsInner client = this.inner();
+ return client.listAsync(subscriptionId)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listByResourceGroupAsync(final String subscriptionId, final String resourceGroupName) {
+ AttestationsInner client = this.inner();
+ return client.listByResourceGroupAsync(subscriptionId, resourceGroupName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listForResourceAsync(final String resourceId) {
+ AttestationsInner client = this.inner();
+ return client.listForResourceAsync(resourceId)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Attestation call(AttestationInner inner) {
+ return new AttestationImpl(inner, manager());
+ }
+ });
+ }
+
+}
diff --git a/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationsInner.java b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationsInner.java
new file mode 100644
index 000000000000..597bc9627dc4
--- /dev/null
+++ b/sdk/policyinsights/mgmt-v2019_10_01/src/main/java/com/microsoft/azure/management/policyinsights/v2019_10_01/implementation/AttestationsInner.java
@@ -0,0 +1,2178 @@
+/**
+ * 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.v2019_10_01.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.AzureServiceFuture;
+import com.microsoft.azure.ListOperationCallback;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.ErrorResponseException;
+import com.microsoft.azure.management.policyinsights.v2019_10_01.QueryOptions;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import com.microsoft.rest.Validator;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.Body;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.HTTP;
+import retrofit2.http.Path;
+import retrofit2.http.PUT;
+import retrofit2.http.Query;
+import retrofit2.http.Url;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in Attestations.
+ */
+public class AttestationsInner {
+ /** The Retrofit service to perform REST calls. */
+ private AttestationsService service;
+ /** The service client containing this operation class. */
+ private PolicyInsightsClientImpl client;
+
+ /**
+ * Initializes an instance of AttestationsInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public AttestationsInner(Retrofit retrofit, PolicyInsightsClientImpl client) {
+ this.service = retrofit.create(AttestationsService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for Attestations to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface AttestationsService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations list" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations")
+ Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("$top") Integer top, @Query("$filter") String filter, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations createOrUpdateAtSubscription" })
+ @PUT("subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> createOrUpdateAtSubscription(@Path("subscriptionId") String subscriptionId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Body AttestationInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations beginCreateOrUpdateAtSubscription" })
+ @PUT("subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> beginCreateOrUpdateAtSubscription(@Path("subscriptionId") String subscriptionId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Body AttestationInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations getAtSubscription" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> getAtSubscription(@Path("subscriptionId") String subscriptionId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations deleteAtSubscription" })
+ @HTTP(path = "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}", method = "DELETE", hasBody = true)
+ Observable> deleteAtSubscription(@Path("subscriptionId") String subscriptionId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations listByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations")
+ Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("$top") Integer top, @Query("$filter") String filter, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations createOrUpdateAtResourceGroup" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> createOrUpdateAtResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Body AttestationInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations beginCreateOrUpdateAtResourceGroup" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> beginCreateOrUpdateAtResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Body AttestationInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations getByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations deleteAtResourceGroup" })
+ @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}", method = "DELETE", hasBody = true)
+ Observable> deleteAtResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations listForResource" })
+ @GET("{resourceId}/providers/Microsoft.PolicyInsights/attestations")
+ Observable> listForResource(@Path(value = "resourceId", encoded = true) String resourceId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Query("$top") Integer top, @Query("$filter") String filter, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations createOrUpdateAtResource" })
+ @PUT("{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> createOrUpdateAtResource(@Path(value = "resourceId", encoded = true) String resourceId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Body AttestationInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations beginCreateOrUpdateAtResource" })
+ @PUT("{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> beginCreateOrUpdateAtResource(@Path(value = "resourceId", encoded = true) String resourceId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Body AttestationInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations getAtResource" })
+ @GET("{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}")
+ Observable> getAtResource(@Path(value = "resourceId", encoded = true) String resourceId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations deleteAtResource" })
+ @HTTP(path = "{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}", method = "DELETE", hasBody = true)
+ Observable> deleteAtResource(@Path(value = "resourceId", encoded = true) String resourceId, @Path("attestationName") String attestationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations listNext" })
+ @GET
+ Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations listByResourceGroupNext" })
+ @GET
+ Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policyinsights.v2019_10_01.Attestations listForResourceNext" })
+ @GET
+ Observable> listForResourceNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<AttestationInner> object if successful.
+ */
+ public PagedList list(final String subscriptionId) {
+ ServiceResponse> response = listSinglePageAsync(subscriptionId).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listAsync(final String subscriptionId, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listSinglePageAsync(subscriptionId),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AttestationInner> object
+ */
+ public Observable> listAsync(final String subscriptionId) {
+ return listWithServiceResponseAsync(subscriptionId)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AttestationInner> object
+ */
+ public Observable>> listWithServiceResponseAsync(final String subscriptionId) {
+ return listSinglePageAsync(subscriptionId)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<AttestationInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listSinglePageAsync(final String subscriptionId) {
+ if (subscriptionId == null) {
+ throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null.");
+ }
+ final String apiVersion = "2019-10-01";
+ final QueryOptions queryOptions = null;
+ Integer top = null;
+ String filter = null;
+ return service.list(subscriptionId, apiVersion, this.client.acceptLanguage(), top, filter, this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param queryOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<AttestationInner> object if successful.
+ */
+ public PagedList list(final String subscriptionId, final QueryOptions queryOptions) {
+ ServiceResponse> response = listSinglePageAsync(subscriptionId, queryOptions).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param queryOptions Additional parameters for the operation
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listAsync(final String subscriptionId, final QueryOptions queryOptions, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listSinglePageAsync(subscriptionId, queryOptions),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param queryOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AttestationInner> object
+ */
+ public Observable> listAsync(final String subscriptionId, final QueryOptions queryOptions) {
+ return listWithServiceResponseAsync(subscriptionId, queryOptions)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param queryOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AttestationInner> object
+ */
+ public Observable>> listWithServiceResponseAsync(final String subscriptionId, final QueryOptions queryOptions) {
+ return listSinglePageAsync(subscriptionId, queryOptions)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Gets all attestations for the subscription.
+ *
+ ServiceResponse> * @param subscriptionId The ID of the target subscription.
+ ServiceResponse> * @param queryOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<AttestationInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listSinglePageAsync(final String subscriptionId, final QueryOptions queryOptions) {
+ if (subscriptionId == null) {
+ throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null.");
+ }
+ Validator.validate(queryOptions);
+ final String apiVersion = "2019-10-01";
+ Integer top = null;
+ if (queryOptions != null) {
+ top = queryOptions.top();
+ }
+ String filter = null;
+ if (queryOptions != null) {
+ filter = queryOptions.filter();
+ }
+ return service.list(subscriptionId, apiVersion, this.client.acceptLanguage(), top, filter, this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(ErrorResponseException.class)
+ .build(response);
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AttestationInner object if successful.
+ */
+ public AttestationInner createOrUpdateAtSubscription(String subscriptionId, String attestationName, AttestationInner parameters) {
+ return createOrUpdateAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName, parameters).toBlocking().last().body();
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture createOrUpdateAtSubscriptionAsync(String subscriptionId, String attestationName, AttestationInner parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(createOrUpdateAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName, parameters), serviceCallback);
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable createOrUpdateAtSubscriptionAsync(String subscriptionId, String attestationName, AttestationInner parameters) {
+ return createOrUpdateAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName, parameters).map(new Func1, AttestationInner>() {
+ @Override
+ public AttestationInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> createOrUpdateAtSubscriptionWithServiceResponseAsync(String subscriptionId, String attestationName, AttestationInner parameters) {
+ if (subscriptionId == null) {
+ throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null.");
+ }
+ if (attestationName == null) {
+ throw new IllegalArgumentException("Parameter attestationName is required and cannot be null.");
+ }
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
+ }
+ Validator.validate(parameters);
+ final String apiVersion = "2019-10-01";
+ Observable> observable = service.createOrUpdateAtSubscription(subscriptionId, attestationName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AttestationInner object if successful.
+ */
+ public AttestationInner beginCreateOrUpdateAtSubscription(String subscriptionId, String attestationName, AttestationInner parameters) {
+ return beginCreateOrUpdateAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName, parameters).toBlocking().single().body();
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginCreateOrUpdateAtSubscriptionAsync(String subscriptionId, String attestationName, AttestationInner parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCreateOrUpdateAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName, parameters), serviceCallback);
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AttestationInner object
+ */
+ public Observable beginCreateOrUpdateAtSubscriptionAsync(String subscriptionId, String attestationName, AttestationInner parameters) {
+ return beginCreateOrUpdateAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName, parameters).map(new Func1, AttestationInner>() {
+ @Override
+ public AttestationInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Creates or updates an attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param parameters The attestation parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AttestationInner object
+ */
+ public Observable> beginCreateOrUpdateAtSubscriptionWithServiceResponseAsync(String subscriptionId, String attestationName, AttestationInner parameters) {
+ if (subscriptionId == null) {
+ throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null.");
+ }
+ if (attestationName == null) {
+ throw new IllegalArgumentException("Parameter attestationName is required and cannot be null.");
+ }
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
+ }
+ Validator.validate(parameters);
+ final String apiVersion = "2019-10-01";
+ return service.beginCreateOrUpdateAtSubscription(subscriptionId, attestationName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = beginCreateOrUpdateAtSubscriptionDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginCreateOrUpdateAtSubscriptionDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(201, new TypeToken() { }.getType())
+ .registerError(ErrorResponseException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AttestationInner object if successful.
+ */
+ public AttestationInner getAtSubscription(String subscriptionId, String attestationName) {
+ return getAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName).toBlocking().single().body();
+ }
+
+ /**
+ * Gets an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAtSubscriptionAsync(String subscriptionId, String attestationName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName), serviceCallback);
+ }
+
+ /**
+ * Gets an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AttestationInner object
+ */
+ public Observable getAtSubscriptionAsync(String subscriptionId, String attestationName) {
+ return getAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName).map(new Func1, AttestationInner>() {
+ @Override
+ public AttestationInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AttestationInner object
+ */
+ public Observable> getAtSubscriptionWithServiceResponseAsync(String subscriptionId, String attestationName) {
+ if (subscriptionId == null) {
+ throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null.");
+ }
+ if (attestationName == null) {
+ throw new IllegalArgumentException("Parameter attestationName is required and cannot be null.");
+ }
+ final String apiVersion = "2019-10-01";
+ return service.getAtSubscription(subscriptionId, attestationName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getAtSubscriptionDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getAtSubscriptionDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(ErrorResponseException.class)
+ .build(response);
+ }
+
+ /**
+ * Deletes an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ */
+ public void deleteAtSubscription(String subscriptionId, String attestationName) {
+ deleteAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName).toBlocking().single().body();
+ }
+
+ /**
+ * Deletes an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture deleteAtSubscriptionAsync(String subscriptionId, String attestationName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(deleteAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName), serviceCallback);
+ }
+
+ /**
+ * Deletes an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable deleteAtSubscriptionAsync(String subscriptionId, String attestationName) {
+ return deleteAtSubscriptionWithServiceResponseAsync(subscriptionId, attestationName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Deletes an existing attestation at subscription scope.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param attestationName The name of the attestation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable> deleteAtSubscriptionWithServiceResponseAsync(String subscriptionId, String attestationName) {
+ if (subscriptionId == null) {
+ throw new IllegalArgumentException("Parameter subscriptionId is required and cannot be null.");
+ }
+ if (attestationName == null) {
+ throw new IllegalArgumentException("Parameter attestationName is required and cannot be null.");
+ }
+ final String apiVersion = "2019-10-01";
+ return service.deleteAtSubscription(subscriptionId, attestationName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = deleteAtSubscriptionDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse deleteAtSubscriptionDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(204, new TypeToken() { }.getType())
+ .registerError(ErrorResponseException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets all attestations for the resource group.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorResponseException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<AttestationInner> object if successful.
+ */
+ public PagedList listByResourceGroup(final String subscriptionId, final String resourceGroupName) {
+ ServiceResponse> response = listByResourceGroupSinglePageAsync(subscriptionId, resourceGroupName).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets all attestations for the resource group.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listByResourceGroupAsync(final String subscriptionId, final String resourceGroupName, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByResourceGroupSinglePageAsync(subscriptionId, resourceGroupName),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets all attestations for the resource group.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AttestationInner> object
+ */
+ public Observable> listByResourceGroupAsync(final String subscriptionId, final String resourceGroupName) {
+ return listByResourceGroupWithServiceResponseAsync(subscriptionId, resourceGroupName)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets all attestations for the resource group.
+ *
+ * @param subscriptionId The ID of the target subscription.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AttestationInner> object
+ */
+ public Observable>> listByResourceGroupWithServiceResponseAsync(final String subscriptionId, final String resourceGroupName) {
+ return listByResourceGroupSinglePageAsync(subscriptionId, resourceGroupName)
+ .concatMap(new Func1>, Observable