diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md
index 57fc7db93bf5..5a7e6062d5db 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/CHANGELOG.md
@@ -1,14 +1,56 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-07-30)
-### Features Added
+- Azure Resource Manager App Compliance Automation client library for Java. This package contains Microsoft Azure SDK for App Compliance Automation Management SDK. App Compliance Automation Tool for Microsoft 365 API spec. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+* `models.ReportResourceListResult` was removed
+
+* `models.OperationListResult` was removed
+
+* `models.WebhookResourceListResult` was removed
+
+* `models.EvidenceResourceListResult` was removed
+
+* `models.ScopingConfigurationResourceListResult` was removed
+
+* `models.SnapshotResourceListResult` was removed
+
+#### `models.Reports` was modified
+
+* `nestedResourceCheckNameAvailabilityWithResponse(java.lang.String,models.CheckNameAvailabilityRequest,com.azure.core.util.Context)` was removed
+* `nestedResourceCheckNameAvailability(java.lang.String,models.CheckNameAvailabilityRequest)` was removed
+
+#### `models.ResponsibilityResource` was modified
+
+* `withRecommendationIds(java.util.List)` was removed
+
+#### `models.Responsibility` was modified
+
+* `withEvidenceFiles(java.util.List)` was removed
+* `withTotalResourceCount(java.lang.Integer)` was removed
+* `withFailedResourceCount(java.lang.Integer)` was removed
+
+### Features Added
+
+* `implementation.models.EvidenceResourceListResult` was added
+
+* `implementation.models.ReportResourceListResult` was added
+
+* `implementation.models.ScopingConfigurationResourceListResult` was added
+
+* `implementation.models.WebhookResourceListResult` was added
+
+* `implementation.models.SnapshotResourceListResult` was added
+
+* `implementation.models.OperationListResult` was added
+
+#### `models.Reports` was modified
-### Other Changes
+* `checkNameAvailabilityWithResponse(java.lang.String,models.CheckNameAvailabilityRequest,com.azure.core.util.Context)` was added
+* `checkNameAvailability(java.lang.String,models.CheckNameAvailabilityRequest)` was added
## 1.0.0 (2024-06-27)
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md
index 137018fb9503..1d8e7118c39c 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager App Compliance Automation client library for Java.
-This package contains Microsoft Azure SDK for App Compliance Automation Management SDK. App Compliance Automation Tool for Microsoft 365 API spec. Package tag package-2024-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for App Compliance Automation Management SDK. App Compliance Automation Tool for Microsoft 365 API spec. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-appcomplianceautomation
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/SAMPLE.md b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/SAMPLE.md
index 731d5245d26e..6053ef6e543c 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/SAMPLE.md
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/SAMPLE.md
@@ -24,13 +24,13 @@
## Report
+- [CheckNameAvailability](#report_checknameavailability)
- [CreateOrUpdate](#report_createorupdate)
- [Delete](#report_delete)
- [Fix](#report_fix)
- [Get](#report_get)
- [GetScopingQuestions](#report_getscopingquestions)
- [List](#report_list)
-- [NestedResourceCheckNameAvailability](#report_nestedresourcechecknameavailability)
- [SyncCertRecord](#report_synccertrecord)
- [Update](#report_update)
- [Verify](#report_verify)
@@ -58,15 +58,17 @@
### Evidence_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcomplianceautomation.fluent.models.EvidenceResourceInner;
+import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceProperties;
+import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType;
/**
* Samples for Evidence CreateOrUpdate.
*/
public final class EvidenceCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Evidence_CreateOrUpdate.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Evidence_CreateOrUpdate.json
*/
/**
* Sample code: Evidence_CreateOrUpdate.
@@ -76,8 +78,12 @@ public final class EvidenceCreateOrUpdateSamples {
public static void evidenceCreateOrUpdate(
com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
manager.evidences()
- .createOrUpdateWithResponse("testReportName", "evidence1", null, null, null,
- com.azure.core.util.Context.NONE);
+ .createOrUpdateWithResponse("testReportName", "evidence1",
+ new EvidenceResourceInner().withProperties(new EvidenceProperties().withEvidenceType(EvidenceType.FILE)
+ .withFilePath("/test-byos/evidence1.png")
+ .withControlId("Operational_Security_10")
+ .withResponsibilityId("authorized_ip_ranges_should_be_defined_on_kubernetes_services")),
+ null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -91,8 +97,7 @@ public final class EvidenceCreateOrUpdateSamples {
public final class EvidenceDeleteSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Evidence_Delete.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Delete.json
*/
/**
* Sample code: Evidence_Delete.
@@ -117,8 +122,8 @@ public final class EvidenceDeleteSamples {
public final class EvidenceDownloadSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Evidence_Download.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Download.
+ * json
*/
/**
* Sample code: Evidence_Download.
@@ -141,8 +146,7 @@ public final class EvidenceDownloadSamples {
public final class EvidenceGetSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Evidence_Get.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Get.json
*/
/**
* Sample code: Evidence_Get.
@@ -164,9 +168,8 @@ public final class EvidenceGetSamples {
*/
public final class EvidenceListByReportSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Evidence_ListByReport.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Evidence_ListByReport.json
*/
/**
* Sample code: Evidence_ListByReport.
@@ -190,8 +193,7 @@ public final class EvidenceListByReportSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Operations_List.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Operations_List.json
*/
/**
* Sample code: Operations_List.
@@ -214,9 +216,8 @@ public final class OperationsListSamples {
*/
public final class ProviderActionsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_CheckNameAvailability.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_CheckNameAvailability.json
*/
/**
* Sample code: Report_CheckNameAvailability.
@@ -239,9 +240,8 @@ public final class ProviderActionsCheckNameAvailabilitySamples {
*/
public final class ProviderActionsGetCollectionCountSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_GetCollectionCount.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_GetCollectionCount.json
*/
/**
* Sample code: Report_GetCollectionCount.
@@ -264,9 +264,8 @@ public final class ProviderActionsGetCollectionCountSamples {
*/
public final class ProviderActionsGetOverviewStatusSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_GetOverviewStatus.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_GetOverviewStatus.json
*/
/**
* Sample code: Report_GetOverviewStatus.
@@ -289,9 +288,8 @@ public final class ProviderActionsGetOverviewStatusSamples {
*/
public final class ProviderActionsListInUseStorageAccountsSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/ListInUseStorageAccountsWithSubscriptions.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * ListInUseStorageAccountsWithSubscriptions.json
*/
/**
* Sample code: ListInUseStorageAccountsWithSubscriptions.
@@ -302,21 +300,6 @@ public final class ProviderActionsListInUseStorageAccountsSamples {
com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
manager.providerActions().listInUseStorageAccountsWithResponse(null, com.azure.core.util.Context.NONE);
}
-
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/ListInUseStorageAccountsWithoutSubscriptions.json
- */
- /**
- * Sample code: ListInUseStorageAccountsWithoutSubscriptions.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void listInUseStorageAccountsWithoutSubscriptions(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.providerActions().listInUseStorageAccountsWithResponse(null, com.azure.core.util.Context.NONE);
- }
}
```
@@ -330,8 +313,7 @@ public final class ProviderActionsListInUseStorageAccountsSamples {
public final class ProviderActionsOnboardSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Onboard.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Onboard.json
*/
/**
* Sample code: Onboard.
@@ -355,8 +337,8 @@ public final class ProviderActionsOnboardSamples {
public final class ProviderActionsTriggerEvaluationSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/TriggerEvaluation.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/TriggerEvaluation.
+ * json
*/
/**
* Sample code: TriggerEvaluation.
@@ -370,18 +352,48 @@ public final class ProviderActionsTriggerEvaluationSamples {
}
```
+### Report_CheckNameAvailability
+
+```java
+
+/**
+ * Samples for Report CheckNameAvailability.
+ */
+public final class ReportCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_NestedResourceCheckNameAvailability_Report_Evidence_Check_Name_Availability.json
+ */
+ /**
+ * Sample code: Report_EvidenceCheckNameAvailability.
+ *
+ * @param manager Entry point to AppComplianceAutomationManager.
+ */
+ public static void reportEvidenceCheckNameAvailability(
+ com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
+ manager.reports().checkNameAvailabilityWithResponse("reportABC", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Report_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ReportResourceInner;
+import com.azure.resourcemanager.appcomplianceautomation.models.ReportProperties;
+import com.azure.resourcemanager.appcomplianceautomation.models.ResourceMetadata;
+import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin;
+import com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
/**
* Samples for Report CreateOrUpdate.
*/
public final class ReportCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_CreateOrUpdate.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_CreateOrUpdate.json
*/
/**
* Sample code: Report_CreateOrUpdate.
@@ -390,7 +402,20 @@ public final class ReportCreateOrUpdateSamples {
*/
public static void
reportCreateOrUpdate(com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.reports().createOrUpdate("testReportName", null, com.azure.core.util.Context.NONE);
+ manager.reports()
+ .createOrUpdate("testReportName", new ReportResourceInner().withProperties(new ReportProperties()
+ .withTriggerTime(OffsetDateTime.parse("2022-03-04T05:00:00.000Z"))
+ .withTimeZone("GMT Standard Time")
+ .withResources(Arrays.asList(new ResourceMetadata().withResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService")
+ .withResourceType("Microsoft.SignalRService/SignalR")
+ .withResourceOrigin(ResourceOrigin.AZURE)))
+ .withOfferGuid("00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002")
+ .withStorageInfo(new StorageInfo().withSubscriptionId("00000000-0000-0000-0000-000000000000")
+ .withResourceGroup("testResourceGroup")
+ .withAccountName("testStorageAccount")
+ .withLocation("East US"))),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -404,8 +429,7 @@ public final class ReportCreateOrUpdateSamples {
public final class ReportDeleteSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_Delete.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Report_Delete.json
*/
/**
* Sample code: Report_Delete.
@@ -428,8 +452,7 @@ public final class ReportDeleteSamples {
public final class ReportFixSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_Fix.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Report_Fix.json
*/
/**
* Sample code: Report_Fix.
@@ -452,8 +475,7 @@ public final class ReportFixSamples {
public final class ReportGetSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_Get.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Report_Get.json
*/
/**
* Sample code: Report_Get.
@@ -475,9 +497,8 @@ public final class ReportGetSamples {
*/
public final class ReportGetScopingQuestionsSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_GetScopingQuestions.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_GetScopingQuestions.json
*/
/**
* Sample code: Report_GetScopingQuestions.
@@ -500,8 +521,7 @@ public final class ReportGetScopingQuestionsSamples {
public final class ReportListSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_List.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Report_List.json
*/
/**
* Sample code: Report_List.
@@ -517,64 +537,6 @@ public final class ReportListSamples {
}
```
-### Report_NestedResourceCheckNameAvailability
-
-```java
-
-/**
- * Samples for Report NestedResourceCheckNameAvailability.
- */
-public final class ReportNestedResourceCheckNameAvailabilitySamples {
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_NestedResourceCheckNameAvailability_Report_Snapshot_Check_Name_Availability.json
- */
- /**
- * Sample code: Report_SnapshotCheckNameAvailability.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void reportSnapshotCheckNameAvailability(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.reports()
- .nestedResourceCheckNameAvailabilityWithResponse("reportABC", null, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_NestedResourceCheckNameAvailability_Report_Evidence_Check_Name_Availability.json
- */
- /**
- * Sample code: Report_EvidenceCheckNameAvailability.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void reportEvidenceCheckNameAvailability(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.reports()
- .nestedResourceCheckNameAvailabilityWithResponse("reportABC", null, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_NestedResourceCheckNameAvailability_Report_Webhook_Check_Name_Availability.json
- */
- /**
- * Sample code: Report_WebhookCheckNameAvailability.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void reportWebhookCheckNameAvailability(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.reports()
- .nestedResourceCheckNameAvailabilityWithResponse("reportABC", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Report_SyncCertRecord
```java
@@ -584,9 +546,8 @@ public final class ReportNestedResourceCheckNameAvailabilitySamples {
*/
public final class ReportSyncCertRecordSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_SyncCertRecord.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Report_SyncCertRecord.json
*/
/**
* Sample code: Report_SyncCertRecord.
@@ -610,8 +571,7 @@ public final class ReportSyncCertRecordSamples {
public final class ReportUpdateSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_Update.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Report_Update.json
*/
/**
* Sample code: Report_Update.
@@ -634,8 +594,7 @@ public final class ReportUpdateSamples {
public final class ReportVerifySamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Report_Verify.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Report_Verify.json
*/
/**
* Sample code: Report_Verify.
@@ -652,15 +611,18 @@ public final class ReportVerifySamples {
### ScopingConfiguration_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ScopingConfigurationResourceInner;
+import com.azure.resourcemanager.appcomplianceautomation.models.ScopingAnswer;
+import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationProperties;
+import java.util.Arrays;
/**
* Samples for ScopingConfiguration CreateOrUpdate.
*/
public final class ScopingConfigurationCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/ScopingConfiguration_CreateOrUpdate.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * ScopingConfiguration_CreateOrUpdate.json
*/
/**
* Sample code: ScopingConfiguration_CreateOrUpdate.
@@ -670,7 +632,13 @@ public final class ScopingConfigurationCreateOrUpdateSamples {
public static void scopingConfigurationCreateOrUpdate(
com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
manager.scopingConfigurations()
- .createOrUpdateWithResponse("testReportName", "default", null, com.azure.core.util.Context.NONE);
+ .createOrUpdateWithResponse("testReportName", "default", new ScopingConfigurationResourceInner()
+ .withProperties(new ScopingConfigurationProperties().withAnswers(Arrays.asList(
+ new ScopingAnswer().withQuestionId("GEN20_hostingEnvironment").withAnswers(Arrays.asList("Azure")),
+ new ScopingAnswer().withQuestionId("DHP_G07_customerDataProcess").withAnswers(Arrays.asList()),
+ new ScopingAnswer().withQuestionId("Tier2InitSub_serviceCommunicate")
+ .withAnswers(Arrays.asList())))),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -683,9 +651,8 @@ public final class ScopingConfigurationCreateOrUpdateSamples {
*/
public final class ScopingConfigurationDeleteSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/ScopingConfiguration_Delete.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * ScopingConfiguration_Delete.json
*/
/**
* Sample code: ScopingConfiguration_Delete.
@@ -708,9 +675,8 @@ public final class ScopingConfigurationDeleteSamples {
*/
public final class ScopingConfigurationGetSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/ScopingConfiguration_Get.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * ScopingConfiguration_Get.json
*/
/**
* Sample code: ScopingConfiguration.
@@ -732,9 +698,8 @@ public final class ScopingConfigurationGetSamples {
*/
public final class ScopingConfigurationListSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/ScopingConfiguration_List.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * ScopingConfiguration_List.json
*/
/**
* Sample code: ScopingConfiguration_List.
@@ -757,39 +722,8 @@ public final class ScopingConfigurationListSamples {
*/
public final class SnapshotDownloadSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Snapshot_Download_Snapshot_Download_Compliance_Report.json
- */
- /**
- * Sample code: Snapshot_Download_ComplianceReport.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void snapshotDownloadComplianceReport(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.snapshots().download("testReportName", "testSnapshotName", null, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Snapshot_Download_Snapshot_Download_Resource_List.json
- */
- /**
- * Sample code: Snapshot_Download_ResourceList.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void snapshotDownloadResourceList(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.snapshots().download("testReportName", "testSnapshotName", null, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Snapshot_Download_Snapshot_Download_Compliance_Detailed_Pdf_Report.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Snapshot_Download_Snapshot_Download_Compliance_Detailed_Pdf_Report.json
*/
/**
* Sample code: Snapshot_Download_ComplianceDetailedPdfReport.
@@ -800,21 +734,6 @@ public final class SnapshotDownloadSamples {
com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
manager.snapshots().download("testReportName", "testSnapshotName", null, com.azure.core.util.Context.NONE);
}
-
- /*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Snapshot_Download_Snapshot_Download_Compliance_Pdf_Report.json
- */
- /**
- * Sample code: Snapshot_Download_CompliancePdfReport.
- *
- * @param manager Entry point to AppComplianceAutomationManager.
- */
- public static void snapshotDownloadCompliancePdfReport(
- com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
- manager.snapshots().download("testReportName", "testSnapshotName", null, com.azure.core.util.Context.NONE);
- }
}
```
@@ -827,8 +746,7 @@ public final class SnapshotDownloadSamples {
public final class SnapshotGetSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Snapshot_Get.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Snapshot_Get.json
*/
/**
* Sample code: Snapshot_Get.
@@ -851,8 +769,7 @@ public final class SnapshotGetSamples {
public final class SnapshotListSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Snapshot_List.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Snapshot_List.json
*/
/**
* Sample code: Snapshot_List.
@@ -871,15 +788,23 @@ public final class SnapshotListSamples {
### Webhook_CreateOrUpdate
```java
+import com.azure.resourcemanager.appcomplianceautomation.fluent.models.WebhookResourceInner;
+import com.azure.resourcemanager.appcomplianceautomation.models.ContentType;
+import com.azure.resourcemanager.appcomplianceautomation.models.EnableSslVerification;
+import com.azure.resourcemanager.appcomplianceautomation.models.NotificationEvent;
+import com.azure.resourcemanager.appcomplianceautomation.models.SendAllEvents;
+import com.azure.resourcemanager.appcomplianceautomation.models.UpdateWebhookKey;
+import com.azure.resourcemanager.appcomplianceautomation.models.WebhookProperties;
+import com.azure.resourcemanager.appcomplianceautomation.models.WebhookStatus;
+import java.util.Arrays;
/**
* Samples for Webhook CreateOrUpdate.
*/
public final class WebhookCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Webhook_CreateOrUpdate.json
+ * x-ms-original-file: specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/
+ * Webhook_CreateOrUpdate.json
*/
/**
* Sample code: Webhook_CreateOrUpdate.
@@ -889,7 +814,16 @@ public final class WebhookCreateOrUpdateSamples {
public static void webhookCreateOrUpdate(
com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager manager) {
manager.webhooks()
- .createOrUpdateWithResponse("testReportName", "testWebhookName", null, com.azure.core.util.Context.NONE);
+ .createOrUpdateWithResponse("testReportName", "testWebhookName",
+ new WebhookResourceInner().withProperties(new WebhookProperties().withStatus(WebhookStatus.ENABLED)
+ .withSendAllEvents(SendAllEvents.FALSE)
+ .withEvents(Arrays.asList(NotificationEvent.GENERATE_SNAPSHOT_FAILED))
+ .withPayloadUrl("https://example.com")
+ .withContentType(ContentType.APPLICATION_JSON)
+ .withWebhookKey("fakeTokenPlaceholder")
+ .withUpdateWebhookKey(UpdateWebhookKey.TRUE)
+ .withEnableSslVerification(EnableSslVerification.TRUE)),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -903,8 +837,7 @@ public final class WebhookCreateOrUpdateSamples {
public final class WebhookDeleteSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Webhook_Delete.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Webhook_Delete.json
*/
/**
* Sample code: Webhook_Delete.
@@ -928,8 +861,7 @@ public final class WebhookDeleteSamples {
public final class WebhookGetSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Webhook_Get.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Webhook_Get.json
*/
/**
* Sample code: Webhook_Get.
@@ -952,8 +884,7 @@ public final class WebhookGetSamples {
public final class WebhookListSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Webhook_List.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Webhook_List.json
*/
/**
* Sample code: Webhook_List.
@@ -978,8 +909,7 @@ public final class WebhookListSamples {
public final class WebhookUpdateSamples {
/*
* x-ms-original-file:
- * specification/appcomplianceautomation/resource-manager/Microsoft.AppComplianceAutomation/stable/2024-06-27/
- * examples/Webhook_Update.json
+ * specification/appcomplianceautomation/AppComplianceAutomation.Management/examples/2024-06-27/Webhook_Update.json
*/
/**
* Sample code: Webhook_Update.
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml
index 02afe65d6cfa..670e3cbc1e8d 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for App Compliance Automation Management
- This package contains Microsoft Azure SDK for App Compliance Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. App Compliance Automation Tool for Microsoft 365 API spec. Package tag package-2024-06.
+ This package contains Microsoft Azure SDK for App Compliance Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. App Compliance Automation Tool for Microsoft 365 API spec.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java
index ac1c84c8bc5d..77dab9f9fd91 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/AppComplianceAutomationManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation;
@@ -51,19 +51,19 @@
* App Compliance Automation Tool for Microsoft 365 API spec.
*/
public final class AppComplianceAutomationManager {
- private ProviderActions providerActions;
-
- private Operations operations;
-
private Reports reports;
- private Evidences evidences;
+ private Webhooks webhooks;
+
+ private Snapshots snapshots;
private ScopingConfigurations scopingConfigurations;
- private Snapshots snapshots;
+ private Evidences evidences;
- private Webhooks webhooks;
+ private Operations operations;
+
+ private ProviderActions providerActions;
private final AppComplianceAutomationClient clientObject;
@@ -230,7 +230,7 @@ public AppComplianceAutomationManager authenticate(TokenCredential credential, A
.append("-")
.append("com.azure.resourcemanager.appcomplianceautomation")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -276,30 +276,6 @@ public AppComplianceAutomationManager authenticate(TokenCredential credential, A
}
}
- /**
- * Gets the resource collection API of ProviderActions.
- *
- * @return Resource collection API of ProviderActions.
- */
- public ProviderActions providerActions() {
- if (this.providerActions == null) {
- this.providerActions = new ProviderActionsImpl(clientObject.getProviderActions(), this);
- }
- return providerActions;
- }
-
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
/**
* Gets the resource collection API of Reports.
*
@@ -313,15 +289,27 @@ public Reports reports() {
}
/**
- * Gets the resource collection API of Evidences.
+ * Gets the resource collection API of Webhooks.
*
- * @return Resource collection API of Evidences.
+ * @return Resource collection API of Webhooks.
*/
- public Evidences evidences() {
- if (this.evidences == null) {
- this.evidences = new EvidencesImpl(clientObject.getEvidences(), this);
+ public Webhooks webhooks() {
+ if (this.webhooks == null) {
+ this.webhooks = new WebhooksImpl(clientObject.getWebhooks(), this);
}
- return evidences;
+ return webhooks;
+ }
+
+ /**
+ * Gets the resource collection API of Snapshots.
+ *
+ * @return Resource collection API of Snapshots.
+ */
+ public Snapshots snapshots() {
+ if (this.snapshots == null) {
+ this.snapshots = new SnapshotsImpl(clientObject.getSnapshots(), this);
+ }
+ return snapshots;
}
/**
@@ -337,27 +325,39 @@ public ScopingConfigurations scopingConfigurations() {
}
/**
- * Gets the resource collection API of Snapshots.
+ * Gets the resource collection API of Evidences.
*
- * @return Resource collection API of Snapshots.
+ * @return Resource collection API of Evidences.
*/
- public Snapshots snapshots() {
- if (this.snapshots == null) {
- this.snapshots = new SnapshotsImpl(clientObject.getSnapshots(), this);
+ public Evidences evidences() {
+ if (this.evidences == null) {
+ this.evidences = new EvidencesImpl(clientObject.getEvidences(), this);
}
- return snapshots;
+ return evidences;
}
/**
- * Gets the resource collection API of Webhooks.
+ * Gets the resource collection API of Operations.
*
- * @return Resource collection API of Webhooks.
+ * @return Resource collection API of Operations.
*/
- public Webhooks webhooks() {
- if (this.webhooks == null) {
- this.webhooks = new WebhooksImpl(clientObject.getWebhooks(), this);
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return webhooks;
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of ProviderActions.
+ *
+ * @return Resource collection API of ProviderActions.
+ */
+ public ProviderActions providerActions() {
+ if (this.providerActions == null) {
+ this.providerActions = new ProviderActionsImpl(clientObject.getProviderActions(), this);
+ }
+ return providerActions;
}
/**
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/AppComplianceAutomationClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/AppComplianceAutomationClient.java
index fcc0345eb8cd..f7d9632160c9 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/AppComplianceAutomationClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/AppComplianceAutomationClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -12,14 +12,14 @@
*/
public interface AppComplianceAutomationClient {
/**
- * Gets server parameter.
+ * Gets Server parameter.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
@@ -40,51 +40,51 @@ public interface AppComplianceAutomationClient {
Duration getDefaultPollInterval();
/**
- * Gets the ProviderActionsClient object to access its operations.
+ * Gets the ReportsClient object to access its operations.
*
- * @return the ProviderActionsClient object.
+ * @return the ReportsClient object.
*/
- ProviderActionsClient getProviderActions();
+ ReportsClient getReports();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the WebhooksClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the WebhooksClient object.
*/
- OperationsClient getOperations();
+ WebhooksClient getWebhooks();
/**
- * Gets the ReportsClient object to access its operations.
+ * Gets the SnapshotsClient object to access its operations.
*
- * @return the ReportsClient object.
+ * @return the SnapshotsClient object.
*/
- ReportsClient getReports();
+ SnapshotsClient getSnapshots();
/**
- * Gets the EvidencesClient object to access its operations.
+ * Gets the ScopingConfigurationsClient object to access its operations.
*
- * @return the EvidencesClient object.
+ * @return the ScopingConfigurationsClient object.
*/
- EvidencesClient getEvidences();
+ ScopingConfigurationsClient getScopingConfigurations();
/**
- * Gets the ScopingConfigurationsClient object to access its operations.
+ * Gets the EvidencesClient object to access its operations.
*
- * @return the ScopingConfigurationsClient object.
+ * @return the EvidencesClient object.
*/
- ScopingConfigurationsClient getScopingConfigurations();
+ EvidencesClient getEvidences();
/**
- * Gets the SnapshotsClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the SnapshotsClient object.
+ * @return the OperationsClient object.
*/
- SnapshotsClient getSnapshots();
+ OperationsClient getOperations();
/**
- * Gets the WebhooksClient object to access its operations.
+ * Gets the ProviderActionsClient object to access its operations.
*
- * @return the WebhooksClient object.
+ * @return the ProviderActionsClient object.
*/
- WebhooksClient getWebhooks();
+ ProviderActionsClient getProviderActions();
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/EvidencesClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/EvidencesClient.java
index a08996a4e13d..db320e55cd32 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/EvidencesClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/EvidencesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -17,40 +17,6 @@
* An instance of this class provides access to all the operations defined in EvidencesClient.
*/
public interface EvidencesClient {
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report 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 the response of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByReport(String reportName);
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 the response of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByReport(String reportName, String skipToken, Integer top, String select,
- String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context);
-
/**
* Get the evidence metadata.
*
@@ -83,7 +49,7 @@ PagedIterable listByReport(String reportName, String skip
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param offerGuid The offerGuid which mapping to the reports.
* @param reportCreatorTenantId The tenant id of the report creator.
* @param context The context to associate with this operation.
@@ -94,21 +60,21 @@ PagedIterable listByReport(String reportName, String skip
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String reportName, String evidenceName,
- EvidenceResourceInner properties, String offerGuid, String reportCreatorTenantId, Context context);
+ EvidenceResourceInner parameters, String offerGuid, String reportCreatorTenantId, Context context);
/**
* Create or Update an evidence a specified report.
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update 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 a class represent an AppComplianceAutomation evidence resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- EvidenceResourceInner createOrUpdate(String reportName, String evidenceName, EvidenceResourceInner properties);
+ EvidenceResourceInner createOrUpdate(String reportName, String evidenceName, EvidenceResourceInner parameters);
/**
* Delete an existent evidence from a specified report.
@@ -136,6 +102,40 @@ Response createOrUpdateWithResponse(String reportName, St
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String reportName, String evidenceName);
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report 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 the response of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByReport(String reportName);
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @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 the response of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByReport(String reportName, String skipToken, Integer top, String select,
+ String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context);
+
/**
* Download evidence file.
*
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/OperationsClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/OperationsClient.java
index 5b9f3eff61ac..2c7c6c0d1ed3 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/OperationsClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ProviderActionsClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ProviderActionsClient.java
index 109502155b87..04bfac8e47b2 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ProviderActionsClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ProviderActionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -105,32 +105,6 @@ Response getOverviewStatusWithResponse(GetOvervi
@ServiceMethod(returns = ReturnType.SINGLE)
GetOverviewStatusResponseInner getOverviewStatus(GetOverviewStatusRequest body);
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @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 parameters for listing in use storage accounts operation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response
- listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context);
-
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @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 parameters for listing in use storage accounts operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ListInUseStorageAccountsResponseInner listInUseStorageAccounts(ListInUseStorageAccountsRequest body);
-
/**
* Onboard given subscriptions to Microsoft.AppComplianceAutomation provider.
*
@@ -138,7 +112,7 @@ Response getOverviewStatusWithResponse(GetOvervi
* @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 {@link SyncPoller} for polling of success.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OnboardResponseInner> beginOnboard(OnboardRequest body);
@@ -151,7 +125,7 @@ Response getOverviewStatusWithResponse(GetOvervi
* @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 {@link SyncPoller} for polling of success.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OnboardResponseInner> beginOnboard(OnboardRequest body,
@@ -164,7 +138,7 @@ SyncPoller, OnboardResponseInner> beginOnboard(
* @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 success.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OnboardResponseInner onboard(OnboardRequest body);
@@ -177,7 +151,7 @@ SyncPoller, OnboardResponseInner> beginOnboard(
* @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 success.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OnboardResponseInner onboard(OnboardRequest body, Context context);
@@ -189,7 +163,7 @@ SyncPoller, OnboardResponseInner> beginOnboard(
* @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 {@link SyncPoller} for polling of trigger evaluation response.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, TriggerEvaluationResponseInner>
@@ -203,7 +177,7 @@ SyncPoller, OnboardResponseInner> beginOnboard(
* @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 {@link SyncPoller} for polling of trigger evaluation response.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, TriggerEvaluationResponseInner>
@@ -216,7 +190,7 @@ SyncPoller, OnboardResponseInner> beginOnboard(
* @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 trigger evaluation response.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TriggerEvaluationResponseInner triggerEvaluation(TriggerEvaluationRequest body);
@@ -229,8 +203,34 @@ SyncPoller, OnboardResponseInner> beginOnboard(
* @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 trigger evaluation response.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TriggerEvaluationResponseInner triggerEvaluation(TriggerEvaluationRequest body, Context context);
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @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 parameters for listing in use storage accounts operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response
+ listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context);
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @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 parameters for listing in use storage accounts operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListInUseStorageAccountsResponseInner listInUseStorageAccounts(ListInUseStorageAccountsRequest body);
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ReportsClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ReportsClient.java
index 72a181773f50..9a2e163072aa 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ReportsClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ReportsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -25,37 +25,6 @@
* An instance of this class provides access to all the operations defined in ReportsClient.
*/
public interface ReportsClient {
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @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 AppComplianceAutomation report list for the tenant as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 the AppComplianceAutomation report list for the tenant as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String skipToken, Integer top, String select, String filter, String orderby,
- String offerGuid, String reportCreatorTenantId, Context context);
-
/**
* Get the AppComplianceAutomation report and its properties.
*
@@ -85,7 +54,7 @@ PagedIterable list(String skipToken, Integer top, String se
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update 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.
@@ -93,13 +62,13 @@ PagedIterable list(String skipToken, Integer top, String se
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ReportResourceInner> beginCreateOrUpdate(String reportName,
- ReportResourceInner properties);
+ ReportResourceInner parameters);
/**
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -108,26 +77,26 @@ SyncPoller, ReportResourceInner> beginCreateOrUp
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ReportResourceInner> beginCreateOrUpdate(String reportName,
- ReportResourceInner properties, Context context);
+ ReportResourceInner parameters, Context context);
/**
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update 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 a class represent an AppComplianceAutomation report resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReportResourceInner createOrUpdate(String reportName, ReportResourceInner properties);
+ ReportResourceInner createOrUpdate(String reportName, ReportResourceInner parameters);
/**
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -135,7 +104,7 @@ SyncPoller, ReportResourceInner> beginCreateOrUp
* @return a class represent an AppComplianceAutomation report resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReportResourceInner createOrUpdate(String reportName, ReportResourceInner properties, Context context);
+ ReportResourceInner createOrUpdate(String reportName, ReportResourceInner parameters, Context context);
/**
* Update an exiting AppComplianceAutomation report.
@@ -242,170 +211,200 @@ SyncPoller, ReportResourceInner> beginUpdate(Str
void delete(String reportName, Context context);
/**
- * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots.
+ * Get the AppComplianceAutomation report list for the tenant.
*
- * @param reportName Report Name.
- * @param body NameAvailabilityRequest object.
- * @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 the check availability result along with {@link Response}.
+ * @return the AppComplianceAutomation report list for the tenant as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response nestedResourceCheckNameAvailabilityWithResponse(String reportName,
- CheckNameAvailabilityRequest body, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots.
+ * Get the AppComplianceAutomation report list for the tenant.
*
- * @param reportName Report Name.
- * @param body NameAvailabilityRequest object.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @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 the check availability result.
+ * @return the AppComplianceAutomation report list for the tenant as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- CheckNameAvailabilityResponseInner nestedResourceCheckNameAvailability(String reportName,
- CheckNameAvailabilityRequest body);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String skipToken, Integer top, String select, String filter, String orderby,
+ String offerGuid, String reportCreatorTenantId, Context context);
/**
- * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
- * automation removed.
+ * Synchronize attestation record from app compliance.
*
* @param reportName Report Name.
+ * @param body Parameters for synchronize certification record 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 the {@link SyncPoller} for polling of report fix result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ReportFixResultInner> beginFix(String reportName);
+ SyncPoller, SyncCertRecordResponseInner>
+ beginSyncCertRecord(String reportName, SyncCertRecordRequest body);
/**
- * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
- * automation removed.
+ * Synchronize attestation record from app compliance.
*
* @param reportName Report Name.
+ * @param body Parameters for synchronize certification record operation.
* @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 the {@link SyncPoller} for polling of report fix result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ReportFixResultInner> beginFix(String reportName, Context context);
+ SyncPoller, SyncCertRecordResponseInner>
+ beginSyncCertRecord(String reportName, SyncCertRecordRequest body, Context context);
/**
- * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
- * automation removed.
+ * Synchronize attestation record from app compliance.
*
* @param reportName Report Name.
+ * @param body Parameters for synchronize certification record 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 report fix result.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReportFixResultInner fix(String reportName);
+ SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body);
/**
- * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
- * automation removed.
+ * Synchronize attestation record from app compliance.
*
* @param reportName Report Name.
+ * @param body Parameters for synchronize certification record operation.
* @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 report fix result.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReportFixResultInner fix(String reportName, Context context);
+ SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body, Context context);
/**
- * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
- * automation removed.
+ * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots.
*
* @param reportName Report Name.
+ * @param body NameAvailabilityRequest object.
* @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 scoping question list along with {@link Response}.
+ * @return the check availability result along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getScopingQuestionsWithResponse(String reportName, Context context);
+ Response checkNameAvailabilityWithResponse(String reportName,
+ CheckNameAvailabilityRequest body, Context context);
/**
- * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
- * automation removed.
+ * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots.
*
* @param reportName Report Name.
+ * @param body NameAvailabilityRequest object.
* @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 scoping question list.
+ * @return the check availability result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScopingQuestionsInner getScopingQuestions(String reportName);
+ CheckNameAvailabilityResponseInner checkNameAvailability(String reportName, CheckNameAvailabilityRequest body);
/**
- * Synchronize attestation record from app compliance.
+ * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
+ * automation removed.
*
* @param reportName Report Name.
- * @param body Parameters for synchronize certification record 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 the {@link SyncPoller} for polling of synchronize certification record response.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, SyncCertRecordResponseInner>
- beginSyncCertRecord(String reportName, SyncCertRecordRequest body);
+ SyncPoller, ReportFixResultInner> beginFix(String reportName);
/**
- * Synchronize attestation record from app compliance.
+ * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
+ * automation removed.
*
* @param reportName Report Name.
- * @param body Parameters for synchronize certification record operation.
* @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 the {@link SyncPoller} for polling of synchronize certification record response.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, SyncCertRecordResponseInner>
- beginSyncCertRecord(String reportName, SyncCertRecordRequest body, Context context);
+ SyncPoller, ReportFixResultInner> beginFix(String reportName, Context context);
/**
- * Synchronize attestation record from app compliance.
+ * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
+ * automation removed.
*
* @param reportName Report Name.
- * @param body Parameters for synchronize certification record 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 synchronize certification record response.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body);
+ ReportFixResultInner fix(String reportName);
/**
- * Synchronize attestation record from app compliance.
+ * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
+ * automation removed.
*
* @param reportName Report Name.
- * @param body Parameters for synchronize certification record operation.
* @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 synchronize certification record response.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body, Context context);
+ ReportFixResultInner fix(String reportName, Context context);
+
+ /**
+ * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
+ * automation removed.
+ *
+ * @param reportName Report Name.
+ * @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 scoping question list along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getScopingQuestionsWithResponse(String reportName, Context context);
+
+ /**
+ * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered,
+ * automation removed.
+ *
+ * @param reportName Report 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 scoping question list.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopingQuestionsInner getScopingQuestions(String reportName);
/**
* Verify the AppComplianceAutomation report health status.
@@ -414,7 +413,7 @@ CheckNameAvailabilityResponseInner nestedResourceCheckNameAvailability(String re
* @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 {@link SyncPoller} for polling of report health status verification result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ReportVerificationResultInner> beginVerify(String reportName);
@@ -427,7 +426,7 @@ CheckNameAvailabilityResponseInner nestedResourceCheckNameAvailability(String re
* @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 {@link SyncPoller} for polling of report health status verification result.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ReportVerificationResultInner> beginVerify(String reportName,
@@ -440,7 +439,7 @@ SyncPoller, ReportVerificationResultIn
* @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 report health status verification result.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ReportVerificationResultInner verify(String reportName);
@@ -453,7 +452,7 @@ SyncPoller, ReportVerificationResultIn
* @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 report health status verification result.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ReportVerificationResultInner verify(String reportName, Context context);
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ScopingConfigurationsClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ScopingConfigurationsClient.java
index 2e4663a3fa88..85d3a20d6d5f 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ScopingConfigurationsClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/ScopingConfigurationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -15,33 +15,6 @@
* An instance of this class provides access to all the operations defined in ScopingConfigurationsClient.
*/
public interface ScopingConfigurationsClient {
- /**
- * Returns a list format of the singleton scopingConfiguration for a specified report.
- *
- * @param reportName Report 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 the response of a ScopingConfigurationResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String reportName);
-
- /**
- * Returns a list format of the singleton scopingConfiguration for a specified report.
- *
- * @param reportName Report Name.
- * @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 the response of a ScopingConfigurationResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String reportName, Context context);
-
/**
* Get the AppComplianceAutomation scoping configuration of the specific report.
*
@@ -75,7 +48,7 @@ Response getWithResponse(String reportName, S
*
* @param reportName Report Name.
* @param scopingConfigurationName The scoping configuration of the specific report.
- * @param properties Parameters for the create or update operation, this is a singleton resource, so please make
+ * @param parameters Parameters for the create or update operation, this is a singleton resource, so please make
* sure you're using 'default' as the name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -85,14 +58,14 @@ Response getWithResponse(String reportName, S
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String reportName,
- String scopingConfigurationName, ScopingConfigurationResourceInner properties, Context context);
+ String scopingConfigurationName, ScopingConfigurationResourceInner parameters, Context context);
/**
* Get the AppComplianceAutomation scoping configuration of the specific report.
*
* @param reportName Report Name.
* @param scopingConfigurationName The scoping configuration of the specific report.
- * @param properties Parameters for the create or update operation, this is a singleton resource, so please make
+ * @param parameters Parameters for the create or update operation, this is a singleton resource, so please make
* sure you're using 'default' as the name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -101,7 +74,7 @@ Response createOrUpdateWithResponse(String re
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ScopingConfigurationResourceInner createOrUpdate(String reportName, String scopingConfigurationName,
- ScopingConfigurationResourceInner properties);
+ ScopingConfigurationResourceInner parameters);
/**
* Clean the AppComplianceAutomation scoping configuration of the specific report.
@@ -128,4 +101,31 @@ ScopingConfigurationResourceInner createOrUpdate(String reportName, String scopi
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String reportName, String scopingConfigurationName);
+
+ /**
+ * Returns a list format of the singleton scopingConfiguration for a specified report.
+ *
+ * @param reportName Report 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 the response of a ScopingConfigurationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String reportName);
+
+ /**
+ * Returns a list format of the singleton scopingConfiguration for a specified report.
+ *
+ * @param reportName Report Name.
+ * @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 the response of a ScopingConfigurationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String reportName, Context context);
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/SnapshotsClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/SnapshotsClient.java
index de4100a59be7..79bac7a1cfb6 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/SnapshotsClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/SnapshotsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -19,6 +19,33 @@
* An instance of this class provides access to all the operations defined in SnapshotsClient.
*/
public interface SnapshotsClient {
+ /**
+ * Get the AppComplianceAutomation snapshot and its properties.
+ *
+ * @param reportName Report Name.
+ * @param snapshotName Snapshot Name.
+ * @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 the AppComplianceAutomation snapshot and its properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String reportName, String snapshotName, Context context);
+
+ /**
+ * Get the AppComplianceAutomation snapshot and its properties.
+ *
+ * @param reportName Report Name.
+ * @param snapshotName Snapshot 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 the AppComplianceAutomation snapshot and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SnapshotResourceInner get(String reportName, String snapshotName);
+
/**
* Get the AppComplianceAutomation snapshot list.
*
@@ -53,33 +80,6 @@ public interface SnapshotsClient {
PagedIterable list(String reportName, String skipToken, Integer top, String select,
String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context);
- /**
- * Get the AppComplianceAutomation snapshot and its properties.
- *
- * @param reportName Report Name.
- * @param snapshotName Snapshot Name.
- * @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 the AppComplianceAutomation snapshot and its properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String reportName, String snapshotName, Context context);
-
- /**
- * Get the AppComplianceAutomation snapshot and its properties.
- *
- * @param reportName Report Name.
- * @param snapshotName Snapshot 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 the AppComplianceAutomation snapshot and its properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SnapshotResourceInner get(String reportName, String snapshotName);
-
/**
* Download compliance needs from snapshot, like: Compliance Report, Resource List.
*
@@ -89,8 +89,7 @@ PagedIterable list(String reportName, String skipToken, I
* @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 {@link SyncPoller} for polling of object that includes all the possible response for the download
- * operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadResponseInner> beginDownload(String reportName,
@@ -106,8 +105,7 @@ SyncPoller, DownloadResponseInner> beginDownlo
* @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 {@link SyncPoller} for polling of object that includes all the possible response for the download
- * operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadResponseInner> beginDownload(String reportName,
@@ -122,7 +120,7 @@ SyncPoller, DownloadResponseInner> beginDownlo
* @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 object that includes all the possible response for the download operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DownloadResponseInner download(String reportName, String snapshotName, SnapshotDownloadRequest body);
@@ -137,7 +135,7 @@ SyncPoller, DownloadResponseInner> beginDownlo
* @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 object that includes all the possible response for the download operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DownloadResponseInner download(String reportName, String snapshotName, SnapshotDownloadRequest body,
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/WebhooksClient.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/WebhooksClient.java
index ef2a7d106fea..42a2d6c9c60c 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/WebhooksClient.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/WebhooksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent;
@@ -16,40 +16,6 @@
* An instance of this class provides access to all the operations defined in WebhooksClient.
*/
public interface WebhooksClient {
- /**
- * Get the AppComplianceAutomation webhook list.
- *
- * @param reportName Report 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 the AppComplianceAutomation webhook list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String reportName);
-
- /**
- * Get the AppComplianceAutomation webhook list.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 the AppComplianceAutomation webhook list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String reportName, String skipToken, Integer top, String select,
- String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context);
-
/**
* Get the AppComplianceAutomation webhook and its properties.
*
@@ -82,7 +48,7 @@ PagedIterable list(String reportName, String skipToken, In
*
* @param reportName Report Name.
* @param webhookName Webhook Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -91,21 +57,21 @@ PagedIterable list(String reportName, String skipToken, In
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String reportName, String webhookName,
- WebhookResourceInner properties, Context context);
+ WebhookResourceInner parameters, Context context);
/**
* Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.
*
* @param reportName Report Name.
* @param webhookName Webhook Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update 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 a class represent an AppComplianceAutomation webhook resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WebhookResourceInner createOrUpdate(String reportName, String webhookName, WebhookResourceInner properties);
+ WebhookResourceInner createOrUpdate(String reportName, String webhookName, WebhookResourceInner parameters);
/**
* Update an exiting AppComplianceAutomation webhook.
@@ -162,4 +128,38 @@ Response updateWithResponse(String reportName, String webh
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String reportName, String webhookName);
+
+ /**
+ * Get the AppComplianceAutomation webhook list.
+ *
+ * @param reportName Report 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 the AppComplianceAutomation webhook list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String reportName);
+
+ /**
+ * Get the AppComplianceAutomation webhook list.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @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 the AppComplianceAutomation webhook list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String reportName, String skipToken, Integer top, String select,
+ String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context);
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/CheckNameAvailabilityResponseInner.java
index bae36c25efc4..60773b92145a 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/CheckNameAvailabilityResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/CheckNameAvailabilityResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
@@ -28,7 +28,7 @@ public final class CheckNameAvailabilityResponseInner implements JsonSerializabl
private CheckNameAvailabilityReason reason;
/*
- * Detailed reason why the given name is available.
+ * Detailed reason why the given name is not available.
*/
private String message;
@@ -57,7 +57,7 @@ public CheckNameAvailabilityReason reason() {
}
/**
- * Get the message property: Detailed reason why the given name is available.
+ * Get the message property: Detailed reason why the given name is not available.
*
* @return the message value.
*/
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/DownloadResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/DownloadResponseInner.java
index 6389675c6eb1..ad3be7c9ca39 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/DownloadResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/DownloadResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceFileDownloadResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceFileDownloadResponseInner.java
index 9c2b1c9790d4..5e1ae43fcf08 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceFileDownloadResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceFileDownloadResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceResourceInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceResourceInner.java
index d50edcad0c2d..444f74751aa4 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceResourceInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/EvidenceResourceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetCollectionCountResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetCollectionCountResponseInner.java
index d61382e54cb8..355d3595b04c 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetCollectionCountResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetCollectionCountResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetOverviewStatusResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetOverviewStatusResponseInner.java
index df10cbf743aa..ffd7f55cde0e 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetOverviewStatusResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/GetOverviewStatusResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ListInUseStorageAccountsResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ListInUseStorageAccountsResponseInner.java
index a5542256138d..1fc2f0669b70 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ListInUseStorageAccountsResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ListInUseStorageAccountsResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OnboardResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OnboardResponseInner.java
index 09d3d26307d9..bae73569b3cd 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OnboardResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OnboardResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OperationInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OperationInner.java
index 9cee9b38434d..cb053b8682a7 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OperationInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/OperationInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
@@ -15,8 +15,6 @@
import java.io.IOException;
/**
- * REST API Operation
- *
* Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Immutable
@@ -28,8 +26,8 @@ public final class OperationInner implements JsonSerializable {
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
*/
private Boolean isDataAction;
@@ -45,7 +43,7 @@ public final class OperationInner implements JsonSerializable {
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
private ActionType actionType;
@@ -67,7 +65,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
- * operations and "false" for ARM/control-plane operations.
+ * operations and "false" for Azure Resource Manager/control-plane operations.
*
* @return the isDataAction value.
*/
@@ -95,8 +93,8 @@ public Origin origin() {
}
/**
- * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
- * only APIs.
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
*
* @return the actionType value.
*/
@@ -121,7 +119,7 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("display", this.display);
+ jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString());
return jsonWriter.writeEndObject();
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportFixResultInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportFixResultInner.java
index 6eb19a69512d..8c86d66a5259 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportFixResultInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportFixResultInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportResourceInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportResourceInner.java
index f0d2cee1ca6d..6d2f978adbff 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportResourceInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportResourceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportVerificationResultInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportVerificationResultInner.java
index e78cc5abb36d..052336b0f4e0 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportVerificationResultInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ReportVerificationResultInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingConfigurationResourceInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingConfigurationResourceInner.java
index c18191903ba6..dcabd125e9b6 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingConfigurationResourceInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingConfigurationResourceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingQuestionsInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingQuestionsInner.java
index db0ed1195f31..3e11a5ff5998 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingQuestionsInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/ScopingQuestionsInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SnapshotResourceInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SnapshotResourceInner.java
index 969ad848f7cc..0a380adf1ec9 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SnapshotResourceInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SnapshotResourceInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
@@ -16,7 +16,7 @@
/**
* A class represent a AppComplianceAutomation snapshot resource.
*/
-@Fluent
+@Immutable
public final class SnapshotResourceInner extends ProxyResource {
/*
* Snapshot's property.
@@ -46,7 +46,7 @@ public final class SnapshotResourceInner extends ProxyResource {
/**
* Creates an instance of SnapshotResourceInner class.
*/
- public SnapshotResourceInner() {
+ private SnapshotResourceInner() {
}
/**
@@ -58,17 +58,6 @@ public SnapshotProperties properties() {
return this.properties;
}
- /**
- * Set the properties property: Snapshot's property.
- *
- * @param properties the properties value to set.
- * @return the SnapshotResourceInner object itself.
- */
- public SnapshotResourceInner withProperties(SnapshotProperties properties) {
- this.properties = properties;
- return this;
- }
-
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SyncCertRecordResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SyncCertRecordResponseInner.java
index 1ac6dbdc6fea..94bc21a8d44f 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SyncCertRecordResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/SyncCertRecordResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/TriggerEvaluationResponseInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/TriggerEvaluationResponseInner.java
index 41d26ffd6258..3f3925b45082 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/TriggerEvaluationResponseInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/TriggerEvaluationResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/WebhookResourceInner.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/WebhookResourceInner.java
index 131bbebedc70..55d79f6e6cbb 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/WebhookResourceInner.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/WebhookResourceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/package-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/package-info.java
index 07b0d4e893df..02fb03a14683 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/package-info.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for AppComplianceAutomationClient.
+ * Package containing the inner data models for AppComplianceAutomation.
* App Compliance Automation Tool for Microsoft 365 API spec.
*/
package com.azure.resourcemanager.appcomplianceautomation.fluent.models;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/package-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/package-info.java
index f90d093231a0..746ccd441e63 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/package-info.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for AppComplianceAutomationClient.
+ * Package containing the service clients for AppComplianceAutomation.
* App Compliance Automation Tool for Microsoft 365 API spec.
*/
package com.azure.resourcemanager.appcomplianceautomation.fluent;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientBuilder.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientBuilder.java
index 18f7b004b9bf..3d9181ad8c92 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientBuilder.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientBuilder.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -20,12 +20,12 @@
@ServiceClientBuilder(serviceClients = { AppComplianceAutomationClientImpl.class })
public final class AppComplianceAutomationClientBuilder {
/*
- * server parameter
+ * Server parameter
*/
private String endpoint;
/**
- * Sets server parameter.
+ * Sets Server parameter.
*
* @param endpoint the endpoint value.
* @return the AppComplianceAutomationClientBuilder.
@@ -105,7 +105,6 @@ public AppComplianceAutomationClientBuilder serializerAdapter(SerializerAdapter
* @return an instance of AppComplianceAutomationClientImpl.
*/
public AppComplianceAutomationClientImpl buildClient() {
- String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline = (pipeline != null)
? pipeline
@@ -116,7 +115,7 @@ public AppComplianceAutomationClientImpl buildClient() {
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
AppComplianceAutomationClientImpl client = new AppComplianceAutomationClientImpl(localPipeline,
- localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint);
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.endpoint);
return client;
}
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientImpl.java
index 934aa9c478c1..e6fe945e6b57 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/AppComplianceAutomationClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -46,12 +46,12 @@
@ServiceClient(builder = AppComplianceAutomationClientBuilder.class)
public final class AppComplianceAutomationClientImpl implements AppComplianceAutomationClient {
/**
- * server parameter.
+ * Server parameter.
*/
private final String endpoint;
/**
- * Gets server parameter.
+ * Gets Server parameter.
*
* @return the endpoint value.
*/
@@ -60,12 +60,12 @@ public String getEndpoint() {
}
/**
- * Api Version.
+ * Version parameter.
*/
private final String apiVersion;
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
@@ -116,101 +116,101 @@ public Duration getDefaultPollInterval() {
}
/**
- * The ProviderActionsClient object to access its operations.
+ * The ReportsClient object to access its operations.
*/
- private final ProviderActionsClient providerActions;
+ private final ReportsClient reports;
/**
- * Gets the ProviderActionsClient object to access its operations.
+ * Gets the ReportsClient object to access its operations.
*
- * @return the ProviderActionsClient object.
+ * @return the ReportsClient object.
*/
- public ProviderActionsClient getProviderActions() {
- return this.providerActions;
+ public ReportsClient getReports() {
+ return this.reports;
}
/**
- * The OperationsClient object to access its operations.
+ * The WebhooksClient object to access its operations.
*/
- private final OperationsClient operations;
+ private final WebhooksClient webhooks;
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the WebhooksClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the WebhooksClient object.
*/
- public OperationsClient getOperations() {
- return this.operations;
+ public WebhooksClient getWebhooks() {
+ return this.webhooks;
}
/**
- * The ReportsClient object to access its operations.
+ * The SnapshotsClient object to access its operations.
*/
- private final ReportsClient reports;
+ private final SnapshotsClient snapshots;
/**
- * Gets the ReportsClient object to access its operations.
+ * Gets the SnapshotsClient object to access its operations.
*
- * @return the ReportsClient object.
+ * @return the SnapshotsClient object.
*/
- public ReportsClient getReports() {
- return this.reports;
+ public SnapshotsClient getSnapshots() {
+ return this.snapshots;
}
/**
- * The EvidencesClient object to access its operations.
+ * The ScopingConfigurationsClient object to access its operations.
*/
- private final EvidencesClient evidences;
+ private final ScopingConfigurationsClient scopingConfigurations;
/**
- * Gets the EvidencesClient object to access its operations.
+ * Gets the ScopingConfigurationsClient object to access its operations.
*
- * @return the EvidencesClient object.
+ * @return the ScopingConfigurationsClient object.
*/
- public EvidencesClient getEvidences() {
- return this.evidences;
+ public ScopingConfigurationsClient getScopingConfigurations() {
+ return this.scopingConfigurations;
}
/**
- * The ScopingConfigurationsClient object to access its operations.
+ * The EvidencesClient object to access its operations.
*/
- private final ScopingConfigurationsClient scopingConfigurations;
+ private final EvidencesClient evidences;
/**
- * Gets the ScopingConfigurationsClient object to access its operations.
+ * Gets the EvidencesClient object to access its operations.
*
- * @return the ScopingConfigurationsClient object.
+ * @return the EvidencesClient object.
*/
- public ScopingConfigurationsClient getScopingConfigurations() {
- return this.scopingConfigurations;
+ public EvidencesClient getEvidences() {
+ return this.evidences;
}
/**
- * The SnapshotsClient object to access its operations.
+ * The OperationsClient object to access its operations.
*/
- private final SnapshotsClient snapshots;
+ private final OperationsClient operations;
/**
- * Gets the SnapshotsClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the SnapshotsClient object.
+ * @return the OperationsClient object.
*/
- public SnapshotsClient getSnapshots() {
- return this.snapshots;
+ public OperationsClient getOperations() {
+ return this.operations;
}
/**
- * The WebhooksClient object to access its operations.
+ * The ProviderActionsClient object to access its operations.
*/
- private final WebhooksClient webhooks;
+ private final ProviderActionsClient providerActions;
/**
- * Gets the WebhooksClient object to access its operations.
+ * Gets the ProviderActionsClient object to access its operations.
*
- * @return the WebhooksClient object.
+ * @return the ProviderActionsClient object.
*/
- public WebhooksClient getWebhooks() {
- return this.webhooks;
+ public ProviderActionsClient getProviderActions() {
+ return this.providerActions;
}
/**
@@ -220,7 +220,7 @@ public WebhooksClient getWebhooks() {
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param endpoint server parameter.
+ * @param endpoint Server parameter.
*/
AppComplianceAutomationClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
Duration defaultPollInterval, AzureEnvironment environment, String endpoint) {
@@ -229,13 +229,13 @@ public WebhooksClient getWebhooks() {
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.apiVersion = "2024-06-27";
- this.providerActions = new ProviderActionsClientImpl(this);
- this.operations = new OperationsClientImpl(this);
this.reports = new ReportsClientImpl(this);
- this.evidences = new EvidencesClientImpl(this);
- this.scopingConfigurations = new ScopingConfigurationsClientImpl(this);
- this.snapshots = new SnapshotsClientImpl(this);
this.webhooks = new WebhooksClientImpl(this);
+ this.snapshots = new SnapshotsClientImpl(this);
+ this.scopingConfigurations = new ScopingConfigurationsClientImpl(this);
+ this.evidences = new EvidencesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.providerActions = new ProviderActionsClientImpl(this);
}
/**
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/CheckNameAvailabilityResponseImpl.java
index 317c04d20b03..7ba3925a4ed6 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/CheckNameAvailabilityResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/CheckNameAvailabilityResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/DownloadResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/DownloadResponseImpl.java
index 47f89377e1dc..38d1853e46b3 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/DownloadResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/DownloadResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceFileDownloadResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceFileDownloadResponseImpl.java
index 8606f8d6246a..3105ce898a03 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceFileDownloadResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceFileDownloadResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceResourceImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceResourceImpl.java
index 42a7d90e7cf0..7c19a5e1ba4e 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceResourceImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidenceResourceImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesClientImpl.java
index 991002b50fe9..4463b6b4d9dd 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesClientImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -32,8 +32,8 @@
import com.azure.resourcemanager.appcomplianceautomation.fluent.EvidencesClient;
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.EvidenceFileDownloadResponseInner;
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.EvidenceResourceInner;
+import com.azure.resourcemanager.appcomplianceautomation.implementation.models.EvidenceResourceListResult;
import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceFileDownloadRequest;
-import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceResourceListResult;
import reactor.core.publisher.Mono;
/**
@@ -65,258 +65,63 @@ public final class EvidencesClientImpl implements EvidencesClient {
* The interface defining all the services for AppComplianceAutomationClientEvidences to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AppComplianceAutomat")
public interface EvidencesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByReport(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @QueryParam("$skipToken") String skipToken,
- @QueryParam("$top") Integer top, @QueryParam("$select") String select, @QueryParam("$filter") String filter,
- @QueryParam("$orderby") String orderby, @QueryParam("offerGuid") String offerGuid,
- @QueryParam("reportCreatorTenantId") String reportCreatorTenantId,
- @PathParam("reportName") String reportName, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences/{evidenceName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @PathParam("evidenceName") String evidenceName, @HeaderParam("Accept") String accept, Context context);
+ @PathParam("evidenceName") String evidenceName, @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Put("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences/{evidenceName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @QueryParam("offerGuid") String offerGuid,
@QueryParam("reportCreatorTenantId") String reportCreatorTenantId,
@PathParam("reportName") String reportName, @PathParam("evidenceName") String evidenceName,
- @BodyParam("application/json") EvidenceResourceInner properties, @HeaderParam("Accept") String accept,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") EvidenceResourceInner parameters,
Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences/{evidenceName}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("reportName") String reportName, @PathParam("evidenceName") String evidenceName,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
+ @PathParam("evidenceName") String evidenceName, @HeaderParam("accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByReport(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @QueryParam("$skipToken") String skipToken,
+ @QueryParam("$top") Integer top, @QueryParam("$select") String select, @QueryParam("$filter") String filter,
+ @QueryParam("$orderby") String orderby, @QueryParam("offerGuid") String offerGuid,
+ @QueryParam("reportCreatorTenantId") String reportCreatorTenantId,
+ @PathParam("reportName") String reportName, @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/evidences/{evidenceName}/download")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> download(@HostParam("$host") String endpoint,
+ Mono> download(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @PathParam("evidenceName") String evidenceName,
- @BodyParam("application/json") EvidenceFileDownloadRequest body, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("evidenceName") String evidenceName, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") EvidenceFileDownloadRequest body, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByReportNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 of a EvidenceResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByReportSinglePageAsync(String reportName, String skipToken,
- Integer top, String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (reportName == null) {
- return Mono.error(new IllegalArgumentException("Parameter reportName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByReport(this.client.getEndpoint(), this.client.getApiVersion(),
- skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, reportName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @param context The context to associate with this operation.
- * @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 of a EvidenceResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByReportSinglePageAsync(String reportName, String skipToken,
- Integer top, String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (reportName == null) {
- return Mono.error(new IllegalArgumentException("Parameter reportName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByReport(this.client.getEndpoint(), this.client.getApiVersion(), skipToken, top, select, filter,
- orderby, offerGuid, reportCreatorTenantId, reportName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 of a EvidenceResource list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByReportAsync(String reportName, String skipToken, Integer top,
- String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId) {
- return new PagedFlux<>(() -> listByReportSinglePageAsync(reportName, skipToken, top, select, filter, orderby,
- offerGuid, reportCreatorTenantId), nextLink -> listByReportNextSinglePageAsync(nextLink));
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @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 of a EvidenceResource list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByReportAsync(String reportName) {
- final String skipToken = null;
- final Integer top = null;
- final String select = null;
- final String filter = null;
- final String orderby = null;
- final String offerGuid = null;
- final String reportCreatorTenantId = null;
- return new PagedFlux<>(() -> listByReportSinglePageAsync(reportName, skipToken, top, select, filter, orderby,
- offerGuid, reportCreatorTenantId), nextLink -> listByReportNextSinglePageAsync(nextLink));
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @param context The context to associate with this operation.
- * @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 of a EvidenceResource list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByReportAsync(String reportName, String skipToken, Integer top,
- String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
- return new PagedFlux<>(() -> listByReportSinglePageAsync(reportName, skipToken, top, select, filter, orderby,
- offerGuid, reportCreatorTenantId, context), nextLink -> listByReportNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @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 of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByReport(String reportName) {
- final String skipToken = null;
- final Integer top = null;
- final String select = null;
- final String filter = null;
- final String orderby = null;
- final String offerGuid = null;
- final String reportCreatorTenantId = null;
- return new PagedIterable<>(
- listByReportAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId));
- }
-
- /**
- * Returns a paginated list of evidences for a specified report.
- *
- * @param reportName Report Name.
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @param context The context to associate with this operation.
- * @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 of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByReport(String reportName, String skipToken, Integer top,
- String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
- return new PagedIterable<>(listByReportAsync(reportName, skipToken, top, select, filter, orderby, offerGuid,
- reportCreatorTenantId, context));
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, Context context);
}
/**
@@ -429,7 +234,7 @@ public EvidenceResourceInner get(String reportName, String evidenceName) {
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param offerGuid The offerGuid which mapping to the reports.
* @param reportCreatorTenantId The tenant id of the report creator.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -440,7 +245,7 @@ public EvidenceResourceInner get(String reportName, String evidenceName) {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String reportName,
- String evidenceName, EvidenceResourceInner properties, String offerGuid, String reportCreatorTenantId) {
+ String evidenceName, EvidenceResourceInner parameters, String offerGuid, String reportCreatorTenantId) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -451,15 +256,15 @@ private Mono> createOrUpdateWithResponseAsync(St
if (evidenceName == null) {
return Mono.error(new IllegalArgumentException("Parameter evidenceName is required and cannot be null."));
}
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
- properties.validate();
+ parameters.validate();
}
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- offerGuid, reportCreatorTenantId, reportName, evidenceName, properties, accept, context))
+ offerGuid, reportCreatorTenantId, reportName, evidenceName, accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -468,7 +273,7 @@ private Mono> createOrUpdateWithResponseAsync(St
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param offerGuid The offerGuid which mapping to the reports.
* @param reportCreatorTenantId The tenant id of the report creator.
* @param context The context to associate with this operation.
@@ -480,7 +285,7 @@ private Mono> createOrUpdateWithResponseAsync(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String reportName,
- String evidenceName, EvidenceResourceInner properties, String offerGuid, String reportCreatorTenantId,
+ String evidenceName, EvidenceResourceInner parameters, String offerGuid, String reportCreatorTenantId,
Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -492,15 +297,15 @@ private Mono> createOrUpdateWithResponseAsync(St
if (evidenceName == null) {
return Mono.error(new IllegalArgumentException("Parameter evidenceName is required and cannot be null."));
}
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
- properties.validate();
+ parameters.validate();
}
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), offerGuid,
- reportCreatorTenantId, reportName, evidenceName, properties, accept, context);
+ reportCreatorTenantId, reportName, evidenceName, accept, parameters, context);
}
/**
@@ -508,7 +313,7 @@ private Mono> createOrUpdateWithResponseAsync(St
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -516,10 +321,10 @@ private Mono> createOrUpdateWithResponseAsync(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String reportName, String evidenceName,
- EvidenceResourceInner properties) {
+ EvidenceResourceInner parameters) {
final String offerGuid = null;
final String reportCreatorTenantId = null;
- return createOrUpdateWithResponseAsync(reportName, evidenceName, properties, offerGuid, reportCreatorTenantId)
+ return createOrUpdateWithResponseAsync(reportName, evidenceName, parameters, offerGuid, reportCreatorTenantId)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -528,7 +333,7 @@ private Mono createOrUpdateAsync(String reportName, Strin
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param offerGuid The offerGuid which mapping to the reports.
* @param reportCreatorTenantId The tenant id of the report creator.
* @param context The context to associate with this operation.
@@ -539,8 +344,8 @@ private Mono createOrUpdateAsync(String reportName, Strin
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(String reportName, String evidenceName,
- EvidenceResourceInner properties, String offerGuid, String reportCreatorTenantId, Context context) {
- return createOrUpdateWithResponseAsync(reportName, evidenceName, properties, offerGuid, reportCreatorTenantId,
+ EvidenceResourceInner parameters, String offerGuid, String reportCreatorTenantId, Context context) {
+ return createOrUpdateWithResponseAsync(reportName, evidenceName, parameters, offerGuid, reportCreatorTenantId,
context).block();
}
@@ -549,7 +354,7 @@ public Response createOrUpdateWithResponse(String reportN
*
* @param reportName Report Name.
* @param evidenceName The evidence name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -557,10 +362,10 @@ public Response createOrUpdateWithResponse(String reportN
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public EvidenceResourceInner createOrUpdate(String reportName, String evidenceName,
- EvidenceResourceInner properties) {
+ EvidenceResourceInner parameters) {
final String offerGuid = null;
final String reportCreatorTenantId = null;
- return createOrUpdateWithResponse(reportName, evidenceName, properties, offerGuid, reportCreatorTenantId,
+ return createOrUpdateWithResponse(reportName, evidenceName, parameters, offerGuid, reportCreatorTenantId,
Context.NONE).getValue();
}
@@ -667,6 +472,200 @@ public void delete(String reportName, String evidenceName) {
deleteWithResponse(reportName, evidenceName, Context.NONE);
}
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @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 of a EvidenceResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByReportSinglePageAsync(String reportName, String skipToken,
+ Integer top, String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (reportName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter reportName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByReport(this.client.getEndpoint(), this.client.getApiVersion(),
+ skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, reportName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @param context The context to associate with this operation.
+ * @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 of a EvidenceResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByReportSinglePageAsync(String reportName, String skipToken,
+ Integer top, String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (reportName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter reportName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByReport(this.client.getEndpoint(), this.client.getApiVersion(), skipToken, top, select, filter,
+ orderby, offerGuid, reportCreatorTenantId, reportName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @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 of a EvidenceResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByReportAsync(String reportName, String skipToken, Integer top,
+ String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId) {
+ return new PagedFlux<>(() -> listByReportSinglePageAsync(reportName, skipToken, top, select, filter, orderby,
+ offerGuid, reportCreatorTenantId), nextLink -> listByReportNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @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 of a EvidenceResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByReportAsync(String reportName) {
+ final String skipToken = null;
+ final Integer top = null;
+ final String select = null;
+ final String filter = null;
+ final String orderby = null;
+ final String offerGuid = null;
+ final String reportCreatorTenantId = null;
+ return new PagedFlux<>(() -> listByReportSinglePageAsync(reportName, skipToken, top, select, filter, orderby,
+ offerGuid, reportCreatorTenantId), nextLink -> listByReportNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @param context The context to associate with this operation.
+ * @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 of a EvidenceResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByReportAsync(String reportName, String skipToken, Integer top,
+ String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
+ return new PagedFlux<>(() -> listByReportSinglePageAsync(reportName, skipToken, top, select, filter, orderby,
+ offerGuid, reportCreatorTenantId, context), nextLink -> listByReportNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @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 of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByReport(String reportName) {
+ final String skipToken = null;
+ final Integer top = null;
+ final String select = null;
+ final String filter = null;
+ final String orderby = null;
+ final String offerGuid = null;
+ final String reportCreatorTenantId = null;
+ return new PagedIterable<>(
+ listByReportAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId));
+ }
+
+ /**
+ * Returns a paginated list of evidences for a specified report.
+ *
+ * @param reportName Report Name.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * ?$select=reportName,id.
+ * @param filter The filter to apply on the operation.
+ * @param orderby OData order by query option.
+ * @param offerGuid The offerGuid which mapping to the reports.
+ * @param reportCreatorTenantId The tenant id of the report creator.
+ * @param context The context to associate with this operation.
+ * @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 of a EvidenceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByReport(String reportName, String skipToken, Integer top,
+ String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
+ return new PagedIterable<>(listByReportAsync(reportName, skipToken, top, select, filter, orderby, offerGuid,
+ reportCreatorTenantId, context));
+ }
+
/**
* Download evidence file.
*
@@ -700,7 +699,7 @@ private Mono> downloadWithResponseAs
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.download(this.client.getEndpoint(), this.client.getApiVersion(), reportName,
- evidenceName, body, accept, context))
+ evidenceName, accept, body, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -737,8 +736,8 @@ private Mono> downloadWithResponseAs
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.download(this.client.getEndpoint(), this.client.getApiVersion(), reportName, evidenceName, body,
- accept, context);
+ return service.download(this.client.getEndpoint(), this.client.getApiVersion(), reportName, evidenceName,
+ accept, body, context);
}
/**
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesImpl.java
index f89780edcc00..caef22769f31 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/EvidencesImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -30,19 +30,6 @@ public EvidencesImpl(EvidencesClient innerClient,
this.serviceManager = serviceManager;
}
- public PagedIterable listByReport(String reportName) {
- PagedIterable inner = this.serviceClient().listByReport(reportName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new EvidenceResourceImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByReport(String reportName, String skipToken, Integer top, String select,
- String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
- PagedIterable inner = this.serviceClient()
- .listByReport(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId,
- context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new EvidenceResourceImpl(inner1, this.manager()));
- }
-
public Response getWithResponse(String reportName, String evidenceName, Context context) {
Response inner = this.serviceClient().getWithResponse(reportName, evidenceName, context);
if (inner != null) {
@@ -63,9 +50,9 @@ public EvidenceResource get(String reportName, String evidenceName) {
}
public Response createOrUpdateWithResponse(String reportName, String evidenceName,
- EvidenceResourceInner properties, String offerGuid, String reportCreatorTenantId, Context context) {
+ EvidenceResourceInner parameters, String offerGuid, String reportCreatorTenantId, Context context) {
Response inner = this.serviceClient()
- .createOrUpdateWithResponse(reportName, evidenceName, properties, offerGuid, reportCreatorTenantId,
+ .createOrUpdateWithResponse(reportName, evidenceName, parameters, offerGuid, reportCreatorTenantId,
context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -75,8 +62,8 @@ public Response createOrUpdateWithResponse(String reportName,
}
}
- public EvidenceResource createOrUpdate(String reportName, String evidenceName, EvidenceResourceInner properties) {
- EvidenceResourceInner inner = this.serviceClient().createOrUpdate(reportName, evidenceName, properties);
+ public EvidenceResource createOrUpdate(String reportName, String evidenceName, EvidenceResourceInner parameters) {
+ EvidenceResourceInner inner = this.serviceClient().createOrUpdate(reportName, evidenceName, parameters);
if (inner != null) {
return new EvidenceResourceImpl(inner, this.manager());
} else {
@@ -92,6 +79,19 @@ public void deleteByResourceGroup(String reportName, String evidenceName) {
this.serviceClient().delete(reportName, evidenceName);
}
+ public PagedIterable listByReport(String reportName) {
+ PagedIterable inner = this.serviceClient().listByReport(reportName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EvidenceResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByReport(String reportName, String skipToken, Integer top, String select,
+ String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
+ PagedIterable inner = this.serviceClient()
+ .listByReport(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId,
+ context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EvidenceResourceImpl(inner1, this.manager()));
+ }
+
public Response downloadWithResponse(String reportName, String evidenceName,
EvidenceFileDownloadRequest body, Context context) {
Response inner
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetCollectionCountResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetCollectionCountResponseImpl.java
index baa9d02e9e89..70614c5ecb21 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetCollectionCountResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetCollectionCountResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetOverviewStatusResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetOverviewStatusResponseImpl.java
index 6738b635c3df..a7de40664d31 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetOverviewStatusResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/GetOverviewStatusResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ListInUseStorageAccountsResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ListInUseStorageAccountsResponseImpl.java
index 6d60d407b9fb..03be3a8530cc 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ListInUseStorageAccountsResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ListInUseStorageAccountsResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OnboardResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OnboardResponseImpl.java
index 8900da217e07..6dd0daa5d1b8 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OnboardResponseImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OnboardResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationImpl.java
index 2b4409b86f9d..cfa94cfe3b0e 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsClientImpl.java
index 7e56d84b2fc7..81acf1ad240a 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsClientImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -27,7 +27,7 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.appcomplianceautomation.fluent.OperationsClient;
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.OperationInner;
-import com.azure.resourcemanager.appcomplianceautomation.models.OperationListResult;
+import com.azure.resourcemanager.appcomplianceautomation.implementation.models.OperationListResult;
import reactor.core.publisher.Mono;
/**
@@ -59,22 +59,22 @@ public final class OperationsClientImpl implements OperationsClient {
* The interface defining all the services for AppComplianceAutomationClientOperations to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AppComplianceAutomat")
public interface OperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.AppComplianceAutomation/operations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context);
}
/**
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsImpl.java
index 48f2c166922c..ebaffe55d5c3 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/OperationsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsClientImpl.java
index 1454f9fee5ba..526d2a36c825 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsClientImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -70,58 +70,57 @@ public final class ProviderActionsClientImpl implements ProviderActionsClient {
* The interface defining all the services for AppComplianceAutomationClientProviderActions to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AppComplianceAutomat")
public interface ProviderActionsService {
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/checkNameAvailability")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> checkNameAvailability(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") CheckNameAvailabilityRequest body, @HeaderParam("Accept") String accept,
- Context context);
+ Mono> checkNameAvailability(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") CheckNameAvailabilityRequest body, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/getCollectionCount")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getCollectionCount(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") GetCollectionCountRequest body,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> getCollectionCount(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") GetCollectionCountRequest body, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/getOverviewStatus")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getOverviewStatus(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") GetOverviewStatusRequest body,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.AppComplianceAutomation/listInUseStorageAccounts")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listInUseStorageAccounts(
- @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") ListInUseStorageAccountsRequest body, @HeaderParam("Accept") String accept,
- Context context);
+ Mono> getOverviewStatus(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") GetOverviewStatusRequest body, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/onboard")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> onboard(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") OnboardRequest body,
- @HeaderParam("Accept") String accept, Context context);
+ Mono>> onboard(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") OnboardRequest body, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/triggerEvaluation")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> triggerEvaluation(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @BodyParam("application/json") TriggerEvaluationRequest body,
- @HeaderParam("Accept") String accept, Context context);
+ Mono>> triggerEvaluation(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") TriggerEvaluationRequest body, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.AppComplianceAutomation/listInUseStorageAccounts")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listInUseStorageAccounts(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") ListInUseStorageAccountsRequest body,
+ Context context);
}
/**
@@ -148,7 +147,7 @@ Mono>> triggerEvaluation(@HostParam("$host") String en
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.checkNameAvailability(this.client.getEndpoint(),
- this.client.getApiVersion(), body, accept, context))
+ this.client.getApiVersion(), accept, body, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -176,7 +175,7 @@ Mono>> triggerEvaluation(@HostParam("$host") String en
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(), body, accept,
+ return service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(), accept, body,
context);
}
@@ -248,7 +247,7 @@ public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailab
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getCollectionCount(this.client.getEndpoint(), this.client.getApiVersion(),
- body, accept, context))
+ accept, body, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -276,7 +275,7 @@ public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailab
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getCollectionCount(this.client.getEndpoint(), this.client.getApiVersion(), body, accept,
+ return service.getCollectionCount(this.client.getEndpoint(), this.client.getApiVersion(), accept, body,
context);
}
@@ -348,7 +347,7 @@ public GetCollectionCountResponseInner getCollectionCount(GetCollectionCountRequ
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getOverviewStatus(this.client.getEndpoint(), this.client.getApiVersion(),
- body, accept, context))
+ accept, body, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -376,7 +375,7 @@ public GetCollectionCountResponseInner getCollectionCount(GetCollectionCountRequ
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getOverviewStatus(this.client.getEndpoint(), this.client.getApiVersion(), body, accept, context);
+ return service.getOverviewStatus(this.client.getEndpoint(), this.client.getApiVersion(), accept, body, context);
}
/**
@@ -423,109 +422,6 @@ public GetOverviewStatusResponseInner getOverviewStatus(GetOverviewStatusRequest
return getOverviewStatusWithResponse(body, Context.NONE).getValue();
}
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @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 parameters for listing in use storage accounts operation along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listInUseStorageAccountsWithResponseAsync(ListInUseStorageAccountsRequest body) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listInUseStorageAccounts(this.client.getEndpoint(),
- this.client.getApiVersion(), body, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @param context The context to associate with this operation.
- * @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 parameters for listing in use storage accounts operation along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listInUseStorageAccountsWithResponseAsync(ListInUseStorageAccountsRequest body, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
- } else {
- body.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listInUseStorageAccounts(this.client.getEndpoint(), this.client.getApiVersion(), body, accept,
- context);
- }
-
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @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 parameters for listing in use storage accounts operation on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono
- listInUseStorageAccountsAsync(ListInUseStorageAccountsRequest body) {
- return listInUseStorageAccountsWithResponseAsync(body).flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @param context The context to associate with this operation.
- * @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 parameters for listing in use storage accounts operation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response
- listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context) {
- return listInUseStorageAccountsWithResponseAsync(body, context).block();
- }
-
- /**
- * List the storage accounts which are in use by related reports.
- *
- * @param body The content of the action request.
- * @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 parameters for listing in use storage accounts operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ListInUseStorageAccountsResponseInner listInUseStorageAccounts(ListInUseStorageAccountsRequest body) {
- return listInUseStorageAccountsWithResponse(body, Context.NONE).getValue();
- }
-
/**
* Onboard given subscriptions to Microsoft.AppComplianceAutomation provider.
*
@@ -533,7 +429,7 @@ public ListInUseStorageAccountsResponseInner listInUseStorageAccounts(ListInUseS
* @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 success along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> onboardWithResponseAsync(OnboardRequest body) {
@@ -548,7 +444,7 @@ private Mono>> onboardWithResponseAsync(OnboardRequest
}
final String accept = "application/json";
return FluxUtil.withContext(
- context -> service.onboard(this.client.getEndpoint(), this.client.getApiVersion(), body, accept, context))
+ context -> service.onboard(this.client.getEndpoint(), this.client.getApiVersion(), accept, body, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -560,7 +456,7 @@ private Mono>> onboardWithResponseAsync(OnboardRequest
* @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 success along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> onboardWithResponseAsync(OnboardRequest body, Context context) {
@@ -575,7 +471,7 @@ private Mono>> onboardWithResponseAsync(OnboardRequest
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.onboard(this.client.getEndpoint(), this.client.getApiVersion(), body, accept, context);
+ return service.onboard(this.client.getEndpoint(), this.client.getApiVersion(), accept, body, context);
}
/**
@@ -585,7 +481,7 @@ private Mono>> onboardWithResponseAsync(OnboardRequest
* @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 {@link PollerFlux} for polling of success.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OnboardResponseInner> beginOnboardAsync(OnboardRequest body) {
@@ -602,7 +498,7 @@ private PollerFlux, OnboardResponseInner> begin
* @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 {@link PollerFlux} for polling of success.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OnboardResponseInner> beginOnboardAsync(OnboardRequest body,
@@ -620,7 +516,7 @@ private PollerFlux, OnboardResponseInner> begin
* @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 {@link SyncPoller} for polling of success.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OnboardResponseInner> beginOnboard(OnboardRequest body) {
@@ -635,7 +531,7 @@ public SyncPoller, OnboardResponseInner> beginO
* @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 {@link SyncPoller} for polling of success.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OnboardResponseInner> beginOnboard(OnboardRequest body,
@@ -650,7 +546,7 @@ public SyncPoller, OnboardResponseInner> beginO
* @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 success on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono onboardAsync(OnboardRequest body) {
@@ -665,7 +561,7 @@ private Mono onboardAsync(OnboardRequest body) {
* @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 success on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono onboardAsync(OnboardRequest body, Context context) {
@@ -679,7 +575,7 @@ private Mono onboardAsync(OnboardRequest body, Context con
* @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 success.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public OnboardResponseInner onboard(OnboardRequest body) {
@@ -694,7 +590,7 @@ public OnboardResponseInner onboard(OnboardRequest body) {
* @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 success.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public OnboardResponseInner onboard(OnboardRequest body, Context context) {
@@ -708,7 +604,7 @@ public OnboardResponseInner onboard(OnboardRequest body, Context 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 trigger evaluation response along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> triggerEvaluationWithResponseAsync(TriggerEvaluationRequest body) {
@@ -724,7 +620,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.triggerEvaluation(this.client.getEndpoint(), this.client.getApiVersion(),
- body, accept, context))
+ accept, body, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -736,7 +632,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
* @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 trigger evaluation response along with {@link Response} on successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> triggerEvaluationWithResponseAsync(TriggerEvaluationRequest body,
@@ -752,7 +648,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.triggerEvaluation(this.client.getEndpoint(), this.client.getApiVersion(), body, accept, context);
+ return service.triggerEvaluation(this.client.getEndpoint(), this.client.getApiVersion(), accept, body, context);
}
/**
@@ -762,7 +658,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
* @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 {@link PollerFlux} for polling of trigger evaluation response.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, TriggerEvaluationResponseInner>
@@ -781,7 +677,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
* @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 {@link PollerFlux} for polling of trigger evaluation response.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, TriggerEvaluationResponseInner>
@@ -800,7 +696,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
* @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 {@link SyncPoller} for polling of trigger evaluation response.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, TriggerEvaluationResponseInner>
@@ -816,7 +712,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
* @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 {@link SyncPoller} for polling of trigger evaluation response.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, TriggerEvaluationResponseInner>
@@ -831,7 +727,7 @@ private Mono>> triggerEvaluationWithResponseAsync(Trig
* @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 trigger evaluation response on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono triggerEvaluationAsync(TriggerEvaluationRequest body) {
@@ -846,7 +742,7 @@ private Mono triggerEvaluationAsync(TriggerEvalu
* @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 trigger evaluation response on successful completion of {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono triggerEvaluationAsync(TriggerEvaluationRequest body,
@@ -861,7 +757,7 @@ private Mono triggerEvaluationAsync(TriggerEvalu
* @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 trigger evaluation response.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public TriggerEvaluationResponseInner triggerEvaluation(TriggerEvaluationRequest body) {
@@ -876,10 +772,113 @@ public TriggerEvaluationResponseInner triggerEvaluation(TriggerEvaluationRequest
* @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 trigger evaluation response.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public TriggerEvaluationResponseInner triggerEvaluation(TriggerEvaluationRequest body, Context context) {
return triggerEvaluationAsync(body, context).block();
}
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @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 parameters for listing in use storage accounts operation along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listInUseStorageAccountsWithResponseAsync(ListInUseStorageAccountsRequest body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listInUseStorageAccounts(this.client.getEndpoint(),
+ this.client.getApiVersion(), accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @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 parameters for listing in use storage accounts operation along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listInUseStorageAccountsWithResponseAsync(ListInUseStorageAccountsRequest body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listInUseStorageAccounts(this.client.getEndpoint(), this.client.getApiVersion(), accept, body,
+ context);
+ }
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @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 parameters for listing in use storage accounts operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono
+ listInUseStorageAccountsAsync(ListInUseStorageAccountsRequest body) {
+ return listInUseStorageAccountsWithResponseAsync(body).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @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 parameters for listing in use storage accounts operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context) {
+ return listInUseStorageAccountsWithResponseAsync(body, context).block();
+ }
+
+ /**
+ * List the storage accounts which are in use by related reports.
+ *
+ * @param body The content of the action request.
+ * @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 parameters for listing in use storage accounts operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ListInUseStorageAccountsResponseInner listInUseStorageAccounts(ListInUseStorageAccountsRequest body) {
+ return listInUseStorageAccountsWithResponse(body, Context.NONE).getValue();
+ }
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsImpl.java
index 6244c33b0150..d839dd13b594 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ProviderActionsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -105,27 +105,6 @@ public GetOverviewStatusResponse getOverviewStatus(GetOverviewStatusRequest body
}
}
- public Response
- listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context) {
- Response inner
- = this.serviceClient().listInUseStorageAccountsWithResponse(body, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ListInUseStorageAccountsResponseImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ListInUseStorageAccountsResponse listInUseStorageAccounts(ListInUseStorageAccountsRequest body) {
- ListInUseStorageAccountsResponseInner inner = this.serviceClient().listInUseStorageAccounts(body);
- if (inner != null) {
- return new ListInUseStorageAccountsResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public OnboardResponse onboard(OnboardRequest body) {
OnboardResponseInner inner = this.serviceClient().onboard(body);
if (inner != null) {
@@ -162,6 +141,27 @@ public TriggerEvaluationResponse triggerEvaluation(TriggerEvaluationRequest body
}
}
+ public Response
+ listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context) {
+ Response inner
+ = this.serviceClient().listInUseStorageAccountsWithResponse(body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ListInUseStorageAccountsResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ListInUseStorageAccountsResponse listInUseStorageAccounts(ListInUseStorageAccountsRequest body) {
+ ListInUseStorageAccountsResponseInner inner = this.serviceClient().listInUseStorageAccounts(body);
+ if (inner != null) {
+ return new ListInUseStorageAccountsResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private ProviderActionsClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportFixResultImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportFixResultImpl.java
index f4632fbdeb4b..8ea7f741d048 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportFixResultImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportFixResultImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportResourceImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportResourceImpl.java
index fb878b6dca43..42924a766e5e 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportResourceImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportResourceImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportVerificationResultImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportVerificationResultImpl.java
index 3fe13bdc0f74..8ec7129f2647 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportVerificationResultImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportVerificationResultImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsClientImpl.java
index ad8b7822dd05..d0d3cf1aae38 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsClientImpl.java
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.appcomplianceautomation.implementation;
@@ -40,8 +40,8 @@
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ReportVerificationResultInner;
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ScopingQuestionsInner;
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.SyncCertRecordResponseInner;
+import com.azure.resourcemanager.appcomplianceautomation.implementation.models.ReportResourceListResult;
import com.azure.resourcemanager.appcomplianceautomation.models.CheckNameAvailabilityRequest;
-import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourceListResult;
import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourcePatch;
import com.azure.resourcemanager.appcomplianceautomation.models.SyncCertRecordRequest;
import java.nio.ByteBuffer;
@@ -76,284 +76,103 @@ public final class ReportsClientImpl implements ReportsClient {
* The interface defining all the services for AppComplianceAutomationClientReports to be used by the proxy service
* to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AppComplianceAutomat")
public interface ReportsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/providers/Microsoft.AppComplianceAutomation/reports")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @QueryParam("$skipToken") String skipToken,
- @QueryParam("$top") Integer top, @QueryParam("$select") String select, @QueryParam("$filter") String filter,
- @QueryParam("$orderby") String orderby, @QueryParam("offerGuid") String offerGuid,
- @QueryParam("reportCreatorTenantId") String reportCreatorTenantId, @HeaderParam("Accept") String accept,
- Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Put("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @BodyParam("application/json") ReportResourceInner properties, @HeaderParam("Accept") String accept,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") ReportResourceInner parameters,
Context context);
@Headers({ "Content-Type: application/json" })
@Patch("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @BodyParam("application/json") ReportResourcePatch properties, @HeaderParam("Accept") String accept,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") ReportResourcePatch properties,
Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}")
@ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/checkNameAvailability")
+ @Get("/providers/Microsoft.AppComplianceAutomation/reports")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> nestedResourceCheckNameAvailability(
- @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("reportName") String reportName,
- @BodyParam("application/json") CheckNameAvailabilityRequest body, @HeaderParam("Accept") String accept,
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @QueryParam("$skipToken") String skipToken,
+ @QueryParam("$top") Integer top, @QueryParam("$select") String select, @QueryParam("$filter") String filter,
+ @QueryParam("$orderby") String orderby, @QueryParam("offerGuid") String offerGuid,
+ @QueryParam("reportCreatorTenantId") String reportCreatorTenantId, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/fix")
+ @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/syncCertRecord")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> fix(@HostParam("$host") String endpoint,
+ Mono>> syncCertRecord(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, @BodyParam("application/json") SyncCertRecordRequest body,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/getScopingQuestions")
+ @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/checkNameAvailability")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getScopingQuestions(@HostParam("$host") String endpoint,
+ Mono> checkNameAvailability(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, @BodyParam("application/json") CheckNameAvailabilityRequest body,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/syncCertRecord")
+ @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/fix")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> syncCertRecord(@HostParam("$host") String endpoint,
+ Mono>> fix(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @BodyParam("application/json") SyncCertRecordRequest body, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/getScopingQuestions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getScopingQuestions(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/verify")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> verify(@HostParam("$host") String endpoint,
+ Mono>> verify(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 AppComplianceAutomation report list for the tenant along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String skipToken, Integer top, String select,
- String filter, String orderby, String offerGuid, String reportCreatorTenantId) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), skipToken, top,
- select, filter, orderby, offerGuid, reportCreatorTenantId, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @param context The context to associate with this operation.
- * @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 AppComplianceAutomation report list for the tenant along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String skipToken, Integer top, String select,
- String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getApiVersion(), skipToken, top, select, filter, orderby,
- offerGuid, reportCreatorTenantId, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @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 AppComplianceAutomation report list for the tenant as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String skipToken, Integer top, String select, String filter,
- String orderby, String offerGuid, String reportCreatorTenantId) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId),
- nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @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 AppComplianceAutomation report list for the tenant as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- final String skipToken = null;
- final Integer top = null;
- final String select = null;
- final String filter = null;
- final String orderby = null;
- final String offerGuid = null;
- final String reportCreatorTenantId = null;
- return new PagedFlux<>(
- () -> listSinglePageAsync(skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId),
- nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @param context The context to associate with this operation.
- * @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 AppComplianceAutomation report list for the tenant as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String skipToken, Integer top, String select, String filter,
- String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(skipToken, top, select, filter, orderby, offerGuid,
- reportCreatorTenantId, context), nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @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 AppComplianceAutomation report list for the tenant as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list() {
- final String skipToken = null;
- final Integer top = null;
- final String select = null;
- final String filter = null;
- final String orderby = null;
- final String offerGuid = null;
- final String reportCreatorTenantId = null;
- return new PagedIterable<>(
- listAsync(skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId));
- }
-
- /**
- * Get the AppComplianceAutomation report list for the tenant.
- *
- * @param skipToken Skip over when retrieving results.
- * @param top Number of elements to return when retrieving results.
- * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
- * ?$select=reportName,id.
- * @param filter The filter to apply on the operation.
- * @param orderby OData order by query option.
- * @param offerGuid The offerGuid which mapping to the reports.
- * @param reportCreatorTenantId The tenant id of the report creator.
- * @param context The context to associate with this operation.
- * @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 AppComplianceAutomation report list for the tenant as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String skipToken, Integer top, String select, String filter,
- String orderby, String offerGuid, String reportCreatorTenantId, Context context) {
- return new PagedIterable<>(
- listAsync(skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context));
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, Context context);
}
/**
@@ -453,7 +272,7 @@ public ReportResourceInner get(String reportName) {
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -462,7 +281,7 @@ public ReportResourceInner get(String reportName) {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(String reportName,
- ReportResourceInner properties) {
+ ReportResourceInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -470,15 +289,15 @@ private Mono>> createOrUpdateWithResponseAsync(String
if (reportName == null) {
return Mono.error(new IllegalArgumentException("Parameter reportName is required and cannot be null."));
}
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
- properties.validate();
+ parameters.validate();
}
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- reportName, properties, accept, context))
+ reportName, accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -486,7 +305,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -496,7 +315,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(String reportName,
- ReportResourceInner properties, Context context) {
+ ReportResourceInner parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -504,22 +323,22 @@ private Mono>> createOrUpdateWithResponseAsync(String
if (reportName == null) {
return Mono.error(new IllegalArgumentException("Parameter reportName is required and cannot be null."));
}
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
- properties.validate();
+ parameters.validate();
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), reportName, properties,
- accept, context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), reportName, accept,
+ parameters, context);
}
/**
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -527,8 +346,8 @@ private Mono>> createOrUpdateWithResponseAsync(String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ReportResourceInner> beginCreateOrUpdateAsync(String reportName,
- ReportResourceInner properties) {
- Mono>> mono = createOrUpdateWithResponseAsync(reportName, properties);
+ ReportResourceInner parameters) {
+ Mono>> mono = createOrUpdateWithResponseAsync(reportName, parameters);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
ReportResourceInner.class, ReportResourceInner.class, this.client.getContext());
}
@@ -537,7 +356,7 @@ private PollerFlux, ReportResourceInner> beginCr
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -546,9 +365,9 @@ private PollerFlux, ReportResourceInner> beginCr
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ReportResourceInner> beginCreateOrUpdateAsync(String reportName,
- ReportResourceInner properties, Context context) {
+ ReportResourceInner parameters, Context context) {
context = this.client.mergeContext(context);
- Mono>> mono = createOrUpdateWithResponseAsync(reportName, properties, context);
+ Mono>> mono = createOrUpdateWithResponseAsync(reportName, parameters, context);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
ReportResourceInner.class, ReportResourceInner.class, context);
}
@@ -557,7 +376,7 @@ private PollerFlux, ReportResourceInner> beginCr
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @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.
@@ -565,15 +384,15 @@ private PollerFlux, ReportResourceInner> beginCr
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ReportResourceInner> beginCreateOrUpdate(String reportName,
- ReportResourceInner properties) {
- return this.beginCreateOrUpdateAsync(reportName, properties).getSyncPoller();
+ ReportResourceInner parameters) {
+ return this.beginCreateOrUpdateAsync(reportName, parameters).getSyncPoller();
}
/**
* Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
*
* @param reportName Report Name.
- * @param properties Parameters for the create or update operation.
+ * @param parameters Parameters for the create or update operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -582,30 +401,30 @@ public SyncPoller, ReportResourceInner> beginCre
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller