diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/CHANGELOG.md b/sdk/policyinsights/azure-resourcemanager-policyinsights/CHANGELOG.md
index 6a2aea56a3f7..2cb5cbfc7271 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/CHANGELOG.md
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-02-24)
+
+- Azure Resource Manager PolicyInsights client library for Java. This package contains Microsoft Azure SDK for PolicyInsights Management SDK. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/README.md b/sdk/policyinsights/azure-resourcemanager-policyinsights/README.md
index ca1dcf849346..7d24755f1424 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/README.md
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-policyinsights
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/SAMPLE.md b/sdk/policyinsights/azure-resourcemanager-policyinsights/SAMPLE.md
index 5592e4996b65..16a89ec32251 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/SAMPLE.md
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/SAMPLE.md
@@ -554,6 +554,7 @@ public final class OperationsListSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForManagementGroup. */
public final class PolicyEventsListQueryResultsForManagementGroupSamples {
@@ -570,7 +571,17 @@ public final class PolicyEventsListQueryResultsForManagementGroupSamples {
manager
.policyEvents()
.listQueryResultsForManagementGroup(
- "myManagementGroup", null, null, null, null, null, null, null, "WpmWfBSvPhkAK6QD", Context.NONE);
+ PolicyEventsResourceType.DEFAULT,
+ "myManagementGroup",
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ "WpmWfBSvPhkAK6QD",
+ Context.NONE);
}
/*
@@ -586,7 +597,17 @@ public final class PolicyEventsListQueryResultsForManagementGroupSamples {
manager
.policyEvents()
.listQueryResultsForManagementGroup(
- "myManagementGroup", null, null, null, null, null, null, null, null, Context.NONE);
+ PolicyEventsResourceType.DEFAULT,
+ "myManagementGroup",
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ Context.NONE);
}
}
```
@@ -595,6 +616,7 @@ public final class PolicyEventsListQueryResultsForManagementGroupSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForPolicyDefinition. */
public final class PolicyEventsListQueryResultsForPolicyDefinitionSamples {
@@ -611,6 +633,7 @@ public final class PolicyEventsListQueryResultsForPolicyDefinitionSamples {
manager
.policyEvents()
.listQueryResultsForPolicyDefinition(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"24813039-7534-408a-9842-eb99f45721b1",
null,
@@ -637,6 +660,7 @@ public final class PolicyEventsListQueryResultsForPolicyDefinitionSamples {
manager
.policyEvents()
.listQueryResultsForPolicyDefinition(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"24813039-7534-408a-9842-eb99f45721b1",
null,
@@ -656,6 +680,7 @@ public final class PolicyEventsListQueryResultsForPolicyDefinitionSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForPolicySetDefinition. */
public final class PolicyEventsListQueryResultsForPolicySetDefinitionSamples {
@@ -672,6 +697,7 @@ public final class PolicyEventsListQueryResultsForPolicySetDefinitionSamples {
manager
.policyEvents()
.listQueryResultsForPolicySetDefinition(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"3e3807c1-65c9-49e0-a406-82d8ae3e338c",
null,
@@ -698,6 +724,7 @@ public final class PolicyEventsListQueryResultsForPolicySetDefinitionSamples {
manager
.policyEvents()
.listQueryResultsForPolicySetDefinition(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"3e3807c1-65c9-49e0-a406-82d8ae3e338c",
null,
@@ -717,6 +744,7 @@ public final class PolicyEventsListQueryResultsForPolicySetDefinitionSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForResource. */
public final class PolicyEventsListQueryResultsForResourceSamples {
@@ -733,6 +761,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName",
null,
null,
@@ -759,6 +788,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
null,
null,
@@ -785,6 +815,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource",
null,
null,
@@ -810,6 +841,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
null,
null,
@@ -836,6 +868,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/e78961ba-36fe-4739-9212-e3031b4c8db7/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/Vaults/myKVName",
null,
null,
@@ -865,6 +898,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/e78961ba-36fe-4739-9212-e3031b4c8db7/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/Vaults/myKVName",
null,
null,
@@ -893,6 +927,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
manager
.policyEvents()
.listQueryResultsForResource(
+ PolicyEventsResourceType.DEFAULT,
"subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
null,
null,
@@ -912,6 +947,7 @@ public final class PolicyEventsListQueryResultsForResourceSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForResourceGroup. */
public final class PolicyEventsListQueryResultsForResourceGroupSamples {
@@ -928,6 +964,7 @@ public final class PolicyEventsListQueryResultsForResourceGroupSamples {
manager
.policyEvents()
.listQueryResultsForResourceGroup(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"myResourceGroup",
null,
@@ -954,6 +991,7 @@ public final class PolicyEventsListQueryResultsForResourceGroupSamples {
manager
.policyEvents()
.listQueryResultsForResourceGroup(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"myResourceGroup",
null,
@@ -973,6 +1011,7 @@ public final class PolicyEventsListQueryResultsForResourceGroupSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForResourceGroupLevelPolicyAssignment. */
public final class PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentSamples {
@@ -989,6 +1028,7 @@ public final class PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssign
manager
.policyEvents()
.listQueryResultsForResourceGroupLevelPolicyAssignment(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"myResourceGroup",
"myPolicyAssignment",
@@ -1016,6 +1056,7 @@ public final class PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssign
manager
.policyEvents()
.listQueryResultsForResourceGroupLevelPolicyAssignment(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"myResourceGroup",
"myPolicyAssignment",
@@ -1036,6 +1077,7 @@ public final class PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssign
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
import java.time.OffsetDateTime;
/** Samples for PolicyEvents ListQueryResultsForSubscription. */
@@ -1053,6 +1095,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
2,
"Timestamp desc, PolicyAssignmentId asc, SubscriptionId asc, ResourceGroup asc, ResourceId",
@@ -1077,6 +1120,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
null,
null,
@@ -1102,6 +1146,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
2,
null,
@@ -1127,6 +1172,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
null,
null,
@@ -1151,6 +1197,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
10,
"NumDeniedResources desc",
@@ -1177,6 +1224,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
2,
null,
@@ -1203,7 +1251,17 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
manager
.policyEvents()
.listQueryResultsForSubscription(
- "fffedd8f-ffff-fffd-fffd-fffed2f84852", null, null, null, null, null, null, null, null, Context.NONE);
+ PolicyEventsResourceType.DEFAULT,
+ "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ Context.NONE);
}
}
```
@@ -1212,6 +1270,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
/** Samples for PolicyEvents ListQueryResultsForSubscriptionLevelPolicyAssignment. */
public final class PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentSamples {
@@ -1228,6 +1287,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignm
manager
.policyEvents()
.listQueryResultsForSubscriptionLevelPolicyAssignment(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
null,
@@ -1254,6 +1314,7 @@ public final class PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignm
manager
.policyEvents()
.listQueryResultsForSubscriptionLevelPolicyAssignment(
+ PolicyEventsResourceType.DEFAULT,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
null,
@@ -2243,6 +2304,7 @@ public final class PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignm
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
import java.time.OffsetDateTime;
/** Samples for PolicyStates SummarizeForManagementGroup. */
@@ -2260,6 +2322,7 @@ public final class PolicyStatesSummarizeForManagementGroupSamples {
manager
.policyStates()
.summarizeForManagementGroupWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"myManagementGroup",
0,
OffsetDateTime.parse("2019-10-05T18:00:00Z"),
@@ -2274,6 +2337,7 @@ public final class PolicyStatesSummarizeForManagementGroupSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
/** Samples for PolicyStates SummarizeForPolicyDefinition. */
public final class PolicyStatesSummarizeForPolicyDefinitionSamples {
@@ -2290,6 +2354,7 @@ public final class PolicyStatesSummarizeForPolicyDefinitionSamples {
manager
.policyStates()
.summarizeForPolicyDefinitionWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"24813039-7534-408a-9842-eb99f45721b1",
null,
@@ -2305,6 +2370,7 @@ public final class PolicyStatesSummarizeForPolicyDefinitionSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
import java.time.OffsetDateTime;
/** Samples for PolicyStates SummarizeForPolicySetDefinition. */
@@ -2322,6 +2388,7 @@ public final class PolicyStatesSummarizeForPolicySetDefinitionSamples {
manager
.policyStates()
.summarizeForPolicySetDefinitionWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"3e3807c1-65c9-49e0-a406-82d8ae3e338c",
1,
@@ -2337,6 +2404,7 @@ public final class PolicyStatesSummarizeForPolicySetDefinitionSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
/** Samples for PolicyStates SummarizeForResource. */
public final class PolicyStatesSummarizeForResourceSamples {
@@ -2353,6 +2421,7 @@ public final class PolicyStatesSummarizeForResourceSamples {
manager
.policyStates()
.summarizeForResourceWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/my-vault",
2,
null,
@@ -2367,6 +2436,7 @@ public final class PolicyStatesSummarizeForResourceSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
/** Samples for PolicyStates SummarizeForResourceGroup. */
public final class PolicyStatesSummarizeForResourceGroupSamples {
@@ -2383,7 +2453,14 @@ public final class PolicyStatesSummarizeForResourceGroupSamples {
manager
.policyStates()
.summarizeForResourceGroupWithResponse(
- "fffedd8f-ffff-fffd-fffd-fffed2f84852", "myResourceGroup", null, null, null, null, Context.NONE);
+ PolicyStatesSummaryResourceType.LATEST,
+ "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "myResourceGroup",
+ null,
+ null,
+ null,
+ null,
+ Context.NONE);
}
}
```
@@ -2392,6 +2469,7 @@ public final class PolicyStatesSummarizeForResourceGroupSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
/** Samples for PolicyStates SummarizeForResourceGroupLevelPolicyAssignment. */
public final class PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentSamples {
@@ -2408,6 +2486,7 @@ public final class PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentSam
manager
.policyStates()
.summarizeForResourceGroupLevelPolicyAssignmentWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"myResourceGroup",
"b7a1ca2596524e3ab19597f2",
@@ -2424,6 +2503,7 @@ public final class PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentSam
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
/** Samples for PolicyStates SummarizeForSubscription. */
public final class PolicyStatesSummarizeForSubscriptionSamples {
@@ -2440,6 +2520,7 @@ public final class PolicyStatesSummarizeForSubscriptionSamples {
manager
.policyStates()
.summarizeForSubscriptionWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
1,
null,
@@ -2461,7 +2542,13 @@ public final class PolicyStatesSummarizeForSubscriptionSamples {
manager
.policyStates()
.summarizeForSubscriptionWithResponse(
- "fffedd8f-ffff-fffd-fffd-fffed2f84852", 5, null, null, null, Context.NONE);
+ PolicyStatesSummaryResourceType.LATEST,
+ "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ 5,
+ null,
+ null,
+ null,
+ Context.NONE);
}
}
```
@@ -2470,6 +2557,7 @@ public final class PolicyStatesSummarizeForSubscriptionSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
/** Samples for PolicyStates SummarizeForSubscriptionLevelPolicyAssignment. */
public final class PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentSamples {
@@ -2486,6 +2574,7 @@ public final class PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentSamp
manager
.policyStates()
.summarizeForSubscriptionLevelPolicyAssignmentWithResponse(
+ PolicyStatesSummaryResourceType.LATEST,
"fffedd8f-ffff-fffd-fffd-fffed2f84852",
"ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
null,
@@ -2547,6 +2636,7 @@ public final class PolicyStatesTriggerSubscriptionEvaluationSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyTrackedResourcesResourceType;
/** Samples for PolicyTrackedResources ListQueryResultsForManagementGroup. */
public final class PolicyTrackedResourcesListQueryResultsForManagementGroupSamples {
@@ -2564,6 +2654,7 @@ public final class PolicyTrackedResourcesListQueryResultsForManagementGroupSampl
.policyTrackedResources()
.listQueryResultsForManagementGroup(
"myManagementGroup",
+ PolicyTrackedResourcesResourceType.DEFAULT,
1,
"PolicyAssignmentId eq"
+ " '/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment'"
@@ -2584,7 +2675,8 @@ public final class PolicyTrackedResourcesListQueryResultsForManagementGroupSampl
com.azure.resourcemanager.policyinsights.PolicyInsightsManager manager) {
manager
.policyTrackedResources()
- .listQueryResultsForManagementGroup("myManagementGroup", null, null, Context.NONE);
+ .listQueryResultsForManagementGroup(
+ "myManagementGroup", PolicyTrackedResourcesResourceType.DEFAULT, null, null, Context.NONE);
}
}
```
@@ -2593,6 +2685,7 @@ public final class PolicyTrackedResourcesListQueryResultsForManagementGroupSampl
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyTrackedResourcesResourceType;
/** Samples for PolicyTrackedResources ListQueryResultsForResource. */
public final class PolicyTrackedResourcesListQueryResultsForResourceSamples {
@@ -2610,6 +2703,7 @@ public final class PolicyTrackedResourcesListQueryResultsForResourceSamples {
.policyTrackedResources()
.listQueryResultsForResource(
"subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myResourceGroup/providers/Microsoft.Example/exampleResourceType/myResource",
+ PolicyTrackedResourcesResourceType.DEFAULT,
1,
"PolicyAssignmentId eq"
+ " '/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment'"
@@ -2631,6 +2725,7 @@ public final class PolicyTrackedResourcesListQueryResultsForResourceSamples {
.policyTrackedResources()
.listQueryResultsForResource(
"subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myResourceGroup/providers/Microsoft.Example/exampleResourceType/myResource",
+ PolicyTrackedResourcesResourceType.DEFAULT,
null,
null,
Context.NONE);
@@ -2642,6 +2737,7 @@ public final class PolicyTrackedResourcesListQueryResultsForResourceSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyTrackedResourcesResourceType;
/** Samples for PolicyTrackedResources ListQueryResultsForResourceGroup. */
public final class PolicyTrackedResourcesListQueryResultsForResourceGroupSamples {
@@ -2659,6 +2755,7 @@ public final class PolicyTrackedResourcesListQueryResultsForResourceGroupSamples
.policyTrackedResources()
.listQueryResultsForResourceGroup(
"myResourceGroup",
+ PolicyTrackedResourcesResourceType.DEFAULT,
1,
"PolicyAssignmentId eq"
+ " '/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment'"
@@ -2677,7 +2774,10 @@ public final class PolicyTrackedResourcesListQueryResultsForResourceGroupSamples
*/
public static void queryAtResourceGroupScope(
com.azure.resourcemanager.policyinsights.PolicyInsightsManager manager) {
- manager.policyTrackedResources().listQueryResultsForResourceGroup("myResourceGroup", null, null, Context.NONE);
+ manager
+ .policyTrackedResources()
+ .listQueryResultsForResourceGroup(
+ "myResourceGroup", PolicyTrackedResourcesResourceType.DEFAULT, null, null, Context.NONE);
}
}
```
@@ -2686,6 +2786,7 @@ public final class PolicyTrackedResourcesListQueryResultsForResourceGroupSamples
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.policyinsights.models.PolicyTrackedResourcesResourceType;
/** Samples for PolicyTrackedResources ListQueryResultsForSubscription. */
public final class PolicyTrackedResourcesListQueryResultsForSubscriptionSamples {
@@ -2702,6 +2803,7 @@ public final class PolicyTrackedResourcesListQueryResultsForSubscriptionSamples
manager
.policyTrackedResources()
.listQueryResultsForSubscription(
+ PolicyTrackedResourcesResourceType.DEFAULT,
1,
"PolicyAssignmentId eq"
+ " '/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment'"
@@ -2720,7 +2822,9 @@ public final class PolicyTrackedResourcesListQueryResultsForSubscriptionSamples
*/
public static void queryAtSubscriptionScope(
com.azure.resourcemanager.policyinsights.PolicyInsightsManager manager) {
- manager.policyTrackedResources().listQueryResultsForSubscription(null, null, Context.NONE);
+ manager
+ .policyTrackedResources()
+ .listQueryResultsForSubscription(PolicyTrackedResourcesResourceType.DEFAULT, null, null, Context.NONE);
}
}
```
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/PolicyInsightsManager.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/PolicyInsightsManager.java
index 118878241144..8773a9b8a70b 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/PolicyInsightsManager.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/PolicyInsightsManager.java
@@ -200,7 +200,7 @@ public PolicyInsightsManager authenticate(TokenCredential credential, AzureProfi
.append("-")
.append("com.azure.resourcemanager.policyinsights")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/AttestationsClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/AttestationsClient.java
index 27762cb0732b..2d8e3958436d 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/AttestationsClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/AttestationsClient.java
@@ -20,7 +20,7 @@ public interface AttestationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -34,7 +34,7 @@ public interface AttestationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, String filter, Context context);
@@ -47,7 +47,7 @@ public interface AttestationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AttestationInner> beginCreateOrUpdateAtSubscription(
@@ -62,7 +62,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AttestationInner> beginCreateOrUpdateAtSubscription(
@@ -115,7 +115,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at subscription scope.
+ * @return an existing attestation at subscription scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getAtSubscriptionWithResponse(String attestationName, Context context);
@@ -139,7 +139,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteAtSubscriptionWithResponse(String attestationName, Context context);
@@ -151,7 +151,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the resource group.
+ * @return all attestations for the resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -166,7 +166,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the resource group.
+ * @return all attestations for the resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -181,7 +181,7 @@ PagedIterable listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AttestationInner> beginCreateOrUpdateAtResourceGroup(
@@ -197,7 +197,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AttestationInner> beginCreateOrUpdateAtResourceGroup(
@@ -256,7 +256,7 @@ AttestationInner createOrUpdateAtResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at resource group scope.
+ * @return an existing attestation at resource group scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -283,7 +283,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String attestationName, Context context);
@@ -295,7 +295,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for a resource.
+ * @return all attestations for a resource as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listForResource(String resourceId);
@@ -310,7 +310,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for a resource.
+ * @return all attestations for a resource as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listForResource(String resourceId, Integer top, String filter, Context context);
@@ -324,7 +324,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AttestationInner> beginCreateOrUpdateAtResource(
@@ -340,7 +340,7 @@ SyncPoller, AttestationInner> beginCreateOrUpdateAt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AttestationInner> beginCreateOrUpdateAtResource(
@@ -398,7 +398,7 @@ AttestationInner createOrUpdateAtResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at resource scope.
+ * @return an existing attestation at resource scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getAtResourceWithResponse(String resourceId, String attestationName, Context context);
@@ -424,7 +424,7 @@ AttestationInner createOrUpdateAtResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteAtResourceWithResponse(String resourceId, String attestationName, Context context);
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/OperationsClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/OperationsClient.java
index fd08a116756e..eee9909301ad 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/OperationsClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/OperationsClient.java
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of available operations.
+ * @return list of available operations along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(Context context);
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyEventsClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyEventsClient.java
index 3d264be6c247..4375008175a2 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyEventsClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyEventsClient.java
@@ -9,6 +9,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.policyinsights.fluent.models.PolicyEventInner;
+import com.azure.resourcemanager.policyinsights.models.PolicyEventsResourceType;
import java.time.OffsetDateTime;
/** An instance of this class provides access to all the operations defined in PolicyEventsClient. */
@@ -16,18 +17,23 @@ public interface PolicyEventsClient {
/**
* Queries policy events for the resources under the management group.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param managementGroupName Management group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForManagementGroup(String managementGroupName);
+ PagedIterable listQueryResultsForManagementGroup(
+ PolicyEventsResourceType policyEventsResource, String managementGroupName);
/**
* Queries policy events for the resources under the management group.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param managementGroupName Management group name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
@@ -46,10 +52,11 @@ public interface PolicyEventsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForManagementGroup(
+ PolicyEventsResourceType policyEventsResource,
String managementGroupName,
Integer top,
String orderBy,
@@ -64,18 +71,23 @@ PagedIterable listQueryResultsForManagementGroup(
/**
* Queries policy events for the resources under the subscription.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForSubscription(String subscriptionId);
+ PagedIterable listQueryResultsForSubscription(
+ PolicyEventsResourceType policyEventsResource, String subscriptionId);
/**
* Queries policy events for the resources under the subscription.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
@@ -94,10 +106,11 @@ PagedIterable listQueryResultsForManagementGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscription(
+ PolicyEventsResourceType policyEventsResource,
String subscriptionId,
Integer top,
String orderBy,
@@ -112,19 +125,24 @@ PagedIterable listQueryResultsForSubscription(
/**
* Queries policy events for the resources under the resource group.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForResourceGroup(String subscriptionId, String resourceGroupName);
+ PagedIterable listQueryResultsForResourceGroup(
+ PolicyEventsResourceType policyEventsResource, String subscriptionId, String resourceGroupName);
/**
* Queries policy events for the resources under the resource group.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param top Maximum number of records to return.
@@ -144,10 +162,11 @@ PagedIterable listQueryResultsForSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroup(
+ PolicyEventsResourceType policyEventsResource,
String subscriptionId,
String resourceGroupName,
Integer top,
@@ -163,18 +182,23 @@ PagedIterable listQueryResultsForResourceGroup(
/**
* Queries policy events for the resource.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param resourceId Resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForResource(String resourceId);
+ PagedIterable listQueryResultsForResource(
+ PolicyEventsResourceType policyEventsResource, String resourceId);
/**
* Queries policy events for the resource.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param resourceId Resource ID.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
@@ -194,10 +218,11 @@ PagedIterable listQueryResultsForResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResource(
+ PolicyEventsResourceType policyEventsResource,
String resourceId,
Integer top,
String orderBy,
@@ -213,20 +238,24 @@ PagedIterable listQueryResultsForResource(
/**
* Queries policy events for the subscription level policy set definition.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicySetDefinition(
- String subscriptionId, String policySetDefinitionName);
+ PolicyEventsResourceType policyEventsResource, String subscriptionId, String policySetDefinitionName);
/**
* Queries policy events for the subscription level policy set definition.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @param top Maximum number of records to return.
@@ -246,10 +275,11 @@ PagedIterable listQueryResultsForPolicySetDefinition(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicySetDefinition(
+ PolicyEventsResourceType policyEventsResource,
String subscriptionId,
String policySetDefinitionName,
Integer top,
@@ -265,20 +295,24 @@ PagedIterable listQueryResultsForPolicySetDefinition(
/**
* Queries policy events for the subscription level policy definition.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicyDefinition(
- String subscriptionId, String policyDefinitionName);
+ PolicyEventsResourceType policyEventsResource, String subscriptionId, String policyDefinitionName);
/**
* Queries policy events for the subscription level policy definition.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @param top Maximum number of records to return.
@@ -298,10 +332,11 @@ PagedIterable listQueryResultsForPolicyDefinition(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicyDefinition(
+ PolicyEventsResourceType policyEventsResource,
String subscriptionId,
String policyDefinitionName,
Integer top,
@@ -317,20 +352,24 @@ PagedIterable listQueryResultsForPolicyDefinition(
/**
* Queries policy events for the subscription level policy assignment.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscriptionLevelPolicyAssignment(
- String subscriptionId, String policyAssignmentName);
+ PolicyEventsResourceType policyEventsResource, String subscriptionId, String policyAssignmentName);
/**
* Queries policy events for the subscription level policy assignment.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @param top Maximum number of records to return.
@@ -350,10 +389,11 @@ PagedIterable listQueryResultsForSubscriptionLevelPolicyAssign
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscriptionLevelPolicyAssignment(
+ PolicyEventsResourceType policyEventsResource,
String subscriptionId,
String policyAssignmentName,
Integer top,
@@ -369,21 +409,28 @@ PagedIterable listQueryResultsForSubscriptionLevelPolicyAssign
/**
* Queries policy events for the resource group level policy assignment.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroupLevelPolicyAssignment(
- String subscriptionId, String resourceGroupName, String policyAssignmentName);
+ PolicyEventsResourceType policyEventsResource,
+ String subscriptionId,
+ String resourceGroupName,
+ String policyAssignmentName);
/**
* Queries policy events for the resource group level policy assignment.
*
+ * @param policyEventsResource The name of the virtual resource under PolicyEvents resource type; only "default" is
+ * allowed.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
@@ -404,10 +451,11 @@ PagedIterable listQueryResultsForResourceGroupLevelPolicyAssig
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroupLevelPolicyAssignment(
+ PolicyEventsResourceType policyEventsResource,
String subscriptionId,
String resourceGroupName,
String policyAssignmentName,
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyMetadatasClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyMetadatasClient.java
index 9a2b70311eaa..50215392d46b 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyMetadatasClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyMetadatasClient.java
@@ -34,7 +34,7 @@ public interface PolicyMetadatasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy metadata resource.
+ * @return policy metadata resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getResourceWithResponse(String resourceName, Context context);
@@ -44,7 +44,7 @@ public interface PolicyMetadatasClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of the policy metadata resources.
+ * @return a list of the policy metadata resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -57,7 +57,7 @@ public interface PolicyMetadatasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of the policy metadata resources.
+ * @return a list of the policy metadata resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, Context context);
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyRestrictionsClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyRestrictionsClient.java
index a08ccecbf477..4e90065f73ea 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyRestrictionsClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyRestrictionsClient.java
@@ -33,7 +33,7 @@ public interface PolicyRestrictionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of a check policy restrictions evaluation on a resource.
+ * @return the result of a check policy restrictions evaluation on a resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkAtSubscriptionScopeWithResponse(
@@ -64,7 +64,7 @@ CheckRestrictionsResultInner checkAtResourceGroupScope(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of a check policy restrictions evaluation on a resource.
+ * @return the result of a check policy restrictions evaluation on a resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkAtResourceGroupScopeWithResponse(
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyStatesClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyStatesClient.java
index 174231c66d88..0225dda114a6 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyStatesClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyStatesClient.java
@@ -14,6 +14,7 @@
import com.azure.resourcemanager.policyinsights.fluent.models.PolicyStateInner;
import com.azure.resourcemanager.policyinsights.fluent.models.SummarizeResultsInner;
import com.azure.resourcemanager.policyinsights.models.PolicyStatesResource;
+import com.azure.resourcemanager.policyinsights.models.PolicyStatesSummaryResourceType;
import java.time.OffsetDateTime;
/** An instance of this class provides access to all the operations defined in PolicyStatesClient. */
@@ -27,7 +28,7 @@ public interface PolicyStatesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForManagementGroup(
@@ -56,7 +57,7 @@ PagedIterable listQueryResultsForManagementGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForManagementGroup(
@@ -75,6 +76,8 @@ PagedIterable listQueryResultsForManagementGroup(
/**
* Summarizes policy states for the resources under the management group.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param managementGroupName Management group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -82,11 +85,14 @@ PagedIterable listQueryResultsForManagementGroup(
* @return summarize action results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SummarizeResultsInner summarizeForManagementGroup(String managementGroupName);
+ SummarizeResultsInner summarizeForManagementGroup(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource, String managementGroupName);
/**
* Summarizes policy states for the resources under the management group.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param managementGroupName Management group name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
@@ -98,10 +104,11 @@ PagedIterable listQueryResultsForManagementGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForManagementGroupWithResponse(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
String managementGroupName,
Integer top,
OffsetDateTime from,
@@ -118,7 +125,7 @@ Response summarizeForManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscription(
@@ -147,7 +154,7 @@ PagedIterable listQueryResultsForSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscription(
@@ -166,6 +173,8 @@ PagedIterable listQueryResultsForSubscription(
/**
* Summarizes policy states for the resources under the subscription.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -173,11 +182,14 @@ PagedIterable listQueryResultsForSubscription(
* @return summarize action results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SummarizeResultsInner summarizeForSubscription(String subscriptionId);
+ SummarizeResultsInner summarizeForSubscription(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId);
/**
* Summarizes policy states for the resources under the subscription.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
@@ -189,11 +201,17 @@ PagedIterable listQueryResultsForSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForSubscriptionWithResponse(
- String subscriptionId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
+ String subscriptionId,
+ Integer top,
+ OffsetDateTime from,
+ OffsetDateTime to,
+ String filter,
+ Context context);
/**
* Queries policy states for the resources under the resource group.
@@ -205,7 +223,7 @@ Response summarizeForSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroup(
@@ -235,7 +253,7 @@ PagedIterable listQueryResultsForResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroup(
@@ -255,6 +273,8 @@ PagedIterable listQueryResultsForResourceGroup(
/**
* Summarizes policy states for the resources under the resource group.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -263,11 +283,14 @@ PagedIterable listQueryResultsForResourceGroup(
* @return summarize action results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SummarizeResultsInner summarizeForResourceGroup(String subscriptionId, String resourceGroupName);
+ SummarizeResultsInner summarizeForResourceGroup(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName);
/**
* Summarizes policy states for the resources under the resource group.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param top Maximum number of records to return.
@@ -280,10 +303,11 @@ PagedIterable listQueryResultsForResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForResourceGroupWithResponse(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId,
String resourceGroupName,
Integer top,
@@ -301,7 +325,7 @@ Response summarizeForResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResource(
@@ -331,7 +355,7 @@ PagedIterable listQueryResultsForResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResource(
@@ -351,6 +375,8 @@ PagedIterable listQueryResultsForResource(
/**
* Summarizes policy states for the resource.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param resourceId Resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -358,11 +384,14 @@ PagedIterable listQueryResultsForResource(
* @return summarize action results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SummarizeResultsInner summarizeForResource(String resourceId);
+ SummarizeResultsInner summarizeForResource(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource, String resourceId);
/**
* Summarizes policy states for the resource.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param resourceId Resource ID.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
@@ -374,11 +403,17 @@ PagedIterable listQueryResultsForResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForResourceWithResponse(
- String resourceId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
+ String resourceId,
+ Integer top,
+ OffsetDateTime from,
+ OffsetDateTime to,
+ String filter,
+ Context context);
/**
* Triggers a policy evaluation scan for all the resources under the subscription.
@@ -387,7 +422,7 @@ Response summarizeForResourceWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerSubscriptionEvaluation(String subscriptionId);
@@ -400,7 +435,7 @@ Response summarizeForResourceWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerSubscriptionEvaluation(String subscriptionId, Context context);
@@ -436,7 +471,7 @@ Response summarizeForResourceWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerResourceGroupEvaluation(
@@ -451,7 +486,7 @@ SyncPoller, Void> beginTriggerResourceGroupEvaluation(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerResourceGroupEvaluation(
@@ -492,7 +527,7 @@ SyncPoller, Void> beginTriggerResourceGroupEvaluation(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicySetDefinition(
@@ -522,7 +557,7 @@ PagedIterable listQueryResultsForPolicySetDefinition(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicySetDefinition(
@@ -542,6 +577,8 @@ PagedIterable listQueryResultsForPolicySetDefinition(
/**
* Summarizes policy states for the subscription level policy set definition.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -550,11 +587,16 @@ PagedIterable listQueryResultsForPolicySetDefinition(
* @return summarize action results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SummarizeResultsInner summarizeForPolicySetDefinition(String subscriptionId, String policySetDefinitionName);
+ SummarizeResultsInner summarizeForPolicySetDefinition(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
+ String subscriptionId,
+ String policySetDefinitionName);
/**
* Summarizes policy states for the subscription level policy set definition.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @param top Maximum number of records to return.
@@ -567,10 +609,11 @@ PagedIterable listQueryResultsForPolicySetDefinition(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForPolicySetDefinitionWithResponse(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId,
String policySetDefinitionName,
Integer top,
@@ -589,7 +632,7 @@ Response summarizeForPolicySetDefinitionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicyDefinition(
@@ -619,7 +662,7 @@ PagedIterable listQueryResultsForPolicyDefinition(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForPolicyDefinition(
@@ -639,6 +682,8 @@ PagedIterable listQueryResultsForPolicyDefinition(
/**
* Summarizes policy states for the subscription level policy definition.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -647,11 +692,16 @@ PagedIterable listQueryResultsForPolicyDefinition(
* @return summarize action results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SummarizeResultsInner summarizeForPolicyDefinition(String subscriptionId, String policyDefinitionName);
+ SummarizeResultsInner summarizeForPolicyDefinition(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
+ String subscriptionId,
+ String policyDefinitionName);
/**
* Summarizes policy states for the subscription level policy definition.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @param top Maximum number of records to return.
@@ -664,10 +714,11 @@ PagedIterable listQueryResultsForPolicyDefinition(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForPolicyDefinitionWithResponse(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId,
String policyDefinitionName,
Integer top,
@@ -686,7 +737,7 @@ Response summarizeForPolicyDefinitionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscriptionLevelPolicyAssignment(
@@ -716,7 +767,7 @@ PagedIterable listQueryResultsForSubscriptionLevelPolicyAssign
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscriptionLevelPolicyAssignment(
@@ -736,6 +787,8 @@ PagedIterable listQueryResultsForSubscriptionLevelPolicyAssign
/**
* Summarizes policy states for the subscription level policy assignment.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -745,11 +798,15 @@ PagedIterable listQueryResultsForSubscriptionLevelPolicyAssign
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SummarizeResultsInner summarizeForSubscriptionLevelPolicyAssignment(
- String subscriptionId, String policyAssignmentName);
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
+ String subscriptionId,
+ String policyAssignmentName);
/**
* Summarizes policy states for the subscription level policy assignment.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @param top Maximum number of records to return.
@@ -762,10 +819,11 @@ SummarizeResultsInner summarizeForSubscriptionLevelPolicyAssignment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForSubscriptionLevelPolicyAssignmentWithResponse(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId,
String policyAssignmentName,
Integer top,
@@ -785,7 +843,7 @@ Response summarizeForSubscriptionLevelPolicyAssignmentWit
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroupLevelPolicyAssignment(
@@ -819,7 +877,7 @@ PagedIterable listQueryResultsForResourceGroupLevelPolicyAssig
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroupLevelPolicyAssignment(
@@ -840,6 +898,8 @@ PagedIterable listQueryResultsForResourceGroupLevelPolicyAssig
/**
* Summarizes policy states for the resource group level policy assignment.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
@@ -850,11 +910,16 @@ PagedIterable listQueryResultsForResourceGroupLevelPolicyAssig
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SummarizeResultsInner summarizeForResourceGroupLevelPolicyAssignment(
- String subscriptionId, String resourceGroupName, String policyAssignmentName);
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
+ String subscriptionId,
+ String resourceGroupName,
+ String policyAssignmentName);
/**
* Summarizes policy states for the resource group level policy assignment.
*
+ * @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
+ * a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
@@ -868,10 +933,11 @@ SummarizeResultsInner summarizeForResourceGroupLevelPolicyAssignment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summarize action results.
+ * @return summarize action results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response summarizeForResourceGroupLevelPolicyAssignmentWithResponse(
+ PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId,
String resourceGroupName,
String policyAssignmentName,
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyTrackedResourcesClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyTrackedResourcesClient.java
index b5d666030045..4c2fde558440 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyTrackedResourcesClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/PolicyTrackedResourcesClient.java
@@ -9,6 +9,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.policyinsights.fluent.models.PolicyTrackedResourceInner;
+import com.azure.resourcemanager.policyinsights.models.PolicyTrackedResourcesResourceType;
/** An instance of this class provides access to all the operations defined in PolicyTrackedResourcesClient. */
public interface PolicyTrackedResourcesClient {
@@ -16,108 +17,141 @@ public interface PolicyTrackedResourcesClient {
* Queries policy tracked resources under the management group.
*
* @param managementGroupName Management group name.
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForManagementGroup(String managementGroupName);
+ PagedIterable listQueryResultsForManagementGroup(
+ String managementGroupName, PolicyTrackedResourcesResourceType policyTrackedResourcesResource);
/**
* Queries policy tracked resources under the management group.
*
* @param managementGroupName Management group name.
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @param top Maximum number of records to return.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForManagementGroup(
- String managementGroupName, Integer top, String filter, Context context);
+ String managementGroupName,
+ PolicyTrackedResourcesResourceType policyTrackedResourcesResource,
+ Integer top,
+ String filter,
+ Context context);
/**
* Queries policy tracked resources under the subscription.
*
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForSubscription();
+ PagedIterable listQueryResultsForSubscription(
+ PolicyTrackedResourcesResourceType policyTrackedResourcesResource);
/**
* Queries policy tracked resources under the subscription.
*
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @param top Maximum number of records to return.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForSubscription(
- Integer top, String filter, Context context);
+ PolicyTrackedResourcesResourceType policyTrackedResourcesResource, Integer top, String filter, Context context);
/**
* Queries policy tracked resources under the resource group.
*
* @param resourceGroupName Resource group name.
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForResourceGroup(String resourceGroupName);
+ PagedIterable listQueryResultsForResourceGroup(
+ String resourceGroupName, PolicyTrackedResourcesResourceType policyTrackedResourcesResource);
/**
* Queries policy tracked resources under the resource group.
*
* @param resourceGroupName Resource group name.
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @param top Maximum number of records to return.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResourceGroup(
- String resourceGroupName, Integer top, String filter, Context context);
+ String resourceGroupName,
+ PolicyTrackedResourcesResourceType policyTrackedResourcesResource,
+ Integer top,
+ String filter,
+ Context context);
/**
* Queries policy tracked resources under the resource.
*
* @param resourceId Resource ID.
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listQueryResultsForResource(String resourceId);
+ PagedIterable listQueryResultsForResource(
+ String resourceId, PolicyTrackedResourcesResourceType policyTrackedResourcesResource);
/**
* Queries policy tracked resources under the resource.
*
* @param resourceId Resource ID.
+ * @param policyTrackedResourcesResource The name of the virtual resource under PolicyTrackedResources resource
+ * type; only "default" is allowed.
* @param top Maximum number of records to return.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return query results.
+ * @return query results as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listQueryResultsForResource(
- String resourceId, Integer top, String filter, Context context);
+ String resourceId,
+ PolicyTrackedResourcesResourceType policyTrackedResourcesResource,
+ Integer top,
+ String filter,
+ Context context);
}
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/RemediationsClient.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/RemediationsClient.java
index 9e0e7fcaf5b8..14fc4d02baac 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/RemediationsClient.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/RemediationsClient.java
@@ -22,7 +22,8 @@ public interface RemediationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at management group scope.
+ * @return all deployments for a remediation at management group scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtManagementGroup(
@@ -38,7 +39,8 @@ PagedIterable listDeploymentsAtManagementGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at management group scope.
+ * @return all deployments for a remediation at management group scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtManagementGroup(
@@ -66,7 +68,7 @@ PagedIterable listDeploymentsAtManagementGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response cancelAtManagementGroupWithResponse(
@@ -79,7 +81,7 @@ Response cancelAtManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for the management group.
+ * @return all remediations for the management group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listForManagementGroup(String managementGroupId);
@@ -94,7 +96,7 @@ Response cancelAtManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for the management group.
+ * @return all remediations for the management group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listForManagementGroup(
@@ -125,7 +127,7 @@ RemediationInner createOrUpdateAtManagementGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateAtManagementGroupWithResponse(
@@ -153,7 +155,7 @@ Response createOrUpdateAtManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing remediation at management group scope.
+ * @return an existing remediation at management group scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getAtManagementGroupWithResponse(
@@ -181,7 +183,7 @@ Response getAtManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteAtManagementGroupWithResponse(
@@ -194,7 +196,7 @@ Response deleteAtManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at subscription scope.
+ * @return all deployments for a remediation at subscription scope as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtSubscription(String remediationName);
@@ -208,7 +210,7 @@ Response deleteAtManagementGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at subscription scope.
+ * @return all deployments for a remediation at subscription scope as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtSubscription(
@@ -234,7 +236,7 @@ PagedIterable listDeploymentsAtSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response cancelAtSubscriptionWithResponse(String remediationName, Context context);
@@ -244,7 +246,7 @@ PagedIterable listDeploymentsAtSubscription(
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for the subscription.
+ * @return all remediations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -258,7 +260,7 @@ PagedIterable listDeploymentsAtSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for the subscription.
+ * @return all remediations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Integer top, String filter, Context context);
@@ -285,7 +287,7 @@ PagedIterable listDeploymentsAtSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateAtSubscriptionWithResponse(
@@ -311,7 +313,7 @@ Response createOrUpdateAtSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing remediation at subscription scope.
+ * @return an existing remediation at subscription scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getAtSubscriptionWithResponse(String remediationName, Context context);
@@ -336,7 +338,7 @@ Response createOrUpdateAtSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteAtSubscriptionWithResponse(String remediationName, Context context);
@@ -349,7 +351,8 @@ Response createOrUpdateAtSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at resource group scope.
+ * @return all deployments for a remediation at resource group scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtResourceGroup(
@@ -365,7 +368,8 @@ PagedIterable listDeploymentsAtResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at resource group scope.
+ * @return all deployments for a remediation at resource group scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtResourceGroup(
@@ -393,7 +397,7 @@ PagedIterable listDeploymentsAtResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response cancelAtResourceGroupWithResponse(
@@ -406,7 +410,7 @@ Response cancelAtResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for the subscription.
+ * @return all remediations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -421,7 +425,7 @@ Response cancelAtResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for the subscription.
+ * @return all remediations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -452,7 +456,7 @@ RemediationInner createOrUpdateAtResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateAtResourceGroupWithResponse(
@@ -480,7 +484,7 @@ Response createOrUpdateAtResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing remediation at resource group scope.
+ * @return an existing remediation at resource group scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -508,7 +512,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String remediationName, Context context);
@@ -521,7 +525,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at resource scope.
+ * @return all deployments for a remediation at resource scope as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtResource(String resourceId, String remediationName);
@@ -536,7 +540,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all deployments for a remediation at resource scope.
+ * @return all deployments for a remediation at resource scope as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeploymentsAtResource(
@@ -564,7 +568,7 @@ PagedIterable listDeploymentsAtResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response cancelAtResourceWithResponse(String resourceId, String remediationName, Context context);
@@ -576,7 +580,7 @@ PagedIterable listDeploymentsAtResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for a resource.
+ * @return all remediations for a resource as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listForResource(String resourceId);
@@ -591,7 +595,7 @@ PagedIterable listDeploymentsAtResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all remediations for a resource.
+ * @return all remediations for a resource as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listForResource(String resourceId, Integer top, String filter, Context context);
@@ -620,7 +624,7 @@ PagedIterable listDeploymentsAtResource(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateAtResourceWithResponse(
@@ -648,7 +652,7 @@ Response createOrUpdateAtResourceWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing remediation at resource scope.
+ * @return an existing remediation at resource scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getAtResourceWithResponse(String resourceId, String remediationName, Context context);
@@ -675,7 +679,7 @@ Response createOrUpdateAtResourceWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the remediation definition.
+ * @return the remediation definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteAtResourceWithResponse(String resourceId, String remediationName, Context context);
diff --git a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/implementation/AttestationsClientImpl.java b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/implementation/AttestationsClientImpl.java
index 0d8ac5a09c73..5ea371c59bbe 100644
--- a/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/implementation/AttestationsClientImpl.java
+++ b/sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/implementation/AttestationsClientImpl.java
@@ -268,7 +268,8 @@ Mono> listForResourceNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Integer top, String filter) {
@@ -319,7 +320,8 @@ private Mono> listSinglePageAsync(Integer top, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Integer top, String filter, Context context) {
@@ -359,7 +361,7 @@ private Mono> listSinglePageAsync(Integer top, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Integer top, String filter) {
@@ -372,7 +374,7 @@ private PagedFlux listAsync(Integer top, String filter) {
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -391,7 +393,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Integer top, String filter, Context context) {
@@ -405,7 +407,7 @@ private PagedFlux listAsync(Integer top, String filter, Contex
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -423,7 +425,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all attestations for the subscription.
+ * @return all attestations for the subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Integer top, String filter, Context context) {
@@ -438,7 +440,7 @@ public PagedIterable list(Integer top, String filter, Context
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return an attestation resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateAtSubscriptionWithResponseAsync(
@@ -490,7 +492,7 @@ private Mono>> createOrUpdateAtSubscriptionWithRespons
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return an attestation resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateAtSubscriptionWithResponseAsync(
@@ -538,7 +540,7 @@ private Mono>> createOrUpdateAtSubscriptionWithRespons
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link PollerFlux} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, AttestationInner> beginCreateOrUpdateAtSubscriptionAsync(
@@ -564,7 +566,7 @@ private PollerFlux, AttestationInner> beginCreateOr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link PollerFlux} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, AttestationInner> beginCreateOrUpdateAtSubscriptionAsync(
@@ -586,7 +588,7 @@ private PollerFlux, AttestationInner> beginCreateOr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, AttestationInner> beginCreateOrUpdateAtSubscription(
@@ -603,7 +605,7 @@ public SyncPoller, AttestationInner> beginCreateOrU
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return the {@link SyncPoller} for polling of an attestation resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, AttestationInner> beginCreateOrUpdateAtSubscription(
@@ -619,7 +621,7 @@ public SyncPoller, AttestationInner> beginCreateOrU
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return an attestation resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAtSubscriptionAsync(
@@ -638,7 +640,7 @@ private Mono createOrUpdateAtSubscriptionAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an attestation resource.
+ * @return an attestation resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAtSubscriptionAsync(
@@ -687,7 +689,8 @@ public AttestationInner createOrUpdateAtSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at subscription scope.
+ * @return an existing attestation at subscription scope along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getAtSubscriptionWithResponseAsync(String attestationName) {
@@ -731,7 +734,8 @@ private Mono> getAtSubscriptionWithResponseAsync(Stri
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at subscription scope.
+ * @return an existing attestation at subscription scope along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getAtSubscriptionWithResponseAsync(
@@ -772,7 +776,7 @@ private Mono> getAtSubscriptionWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at subscription scope.
+ * @return an existing attestation at subscription scope on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAtSubscriptionAsync(String attestationName) {
@@ -809,7 +813,7 @@ public AttestationInner getAtSubscription(String attestationName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an existing attestation at subscription scope.
+ * @return an existing attestation at subscription scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getAtSubscriptionWithResponse(String attestationName, Context context) {
@@ -823,7 +827,7 @@ public Response getAtSubscriptionWithResponse(String attestati
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteAtSubscriptionWithResponseAsync(String attestationName) {
@@ -867,7 +871,7 @@ private Mono> deleteAtSubscriptionWithResponseAsync(String attest
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteAtSubscriptionWithResponseAsync(String attestationName, Context context) {
@@ -907,7 +911,7 @@ private Mono> deleteAtSubscriptionWithResponseAsync(String attest
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAtSubscriptionAsync(String attestationName) {
@@ -935,7 +939,7 @@ public void deleteAtSubscription(String attestationName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response