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, ReportResourceInner> beginCreateOrUpdate(String reportName, - ReportResourceInner properties, Context context) { - return this.beginCreateOrUpdateAsync(reportName, properties, context).getSyncPoller(); + ReportResourceInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(reportName, parameters, context).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. * @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 a class represent an AppComplianceAutomation report resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String reportName, ReportResourceInner properties) { - return beginCreateOrUpdateAsync(reportName, properties).last().flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String reportName, ReportResourceInner parameters) { + return beginCreateOrUpdateAsync(reportName, parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * 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. @@ -613,9 +432,9 @@ private Mono createOrUpdateAsync(String reportName, ReportR * @return a class represent an AppComplianceAutomation report resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String reportName, ReportResourceInner properties, + private Mono createOrUpdateAsync(String reportName, ReportResourceInner parameters, Context context) { - return beginCreateOrUpdateAsync(reportName, properties, context).last() + return beginCreateOrUpdateAsync(reportName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -623,22 +442,22 @@ private Mono createOrUpdateAsync(String reportName, ReportR * 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. * @return a class represent an AppComplianceAutomation report resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReportResourceInner createOrUpdate(String reportName, ReportResourceInner properties) { - return createOrUpdateAsync(reportName, properties).block(); + public ReportResourceInner createOrUpdate(String reportName, ReportResourceInner parameters) { + return createOrUpdateAsync(reportName, parameters).block(); } /** * 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. @@ -646,8 +465,8 @@ public ReportResourceInner createOrUpdate(String reportName, ReportResourceInner * @return a class represent an AppComplianceAutomation report resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReportResourceInner createOrUpdate(String reportName, ReportResourceInner properties, Context context) { - return createOrUpdateAsync(reportName, properties, context).block(); + public ReportResourceInner createOrUpdate(String reportName, ReportResourceInner parameters, Context context) { + return createOrUpdateAsync(reportName, parameters, context).block(); } /** @@ -679,7 +498,7 @@ private Mono>> updateWithResponseAsync(String reportNa final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), reportName, - properties, accept, context)) + accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -712,7 +531,7 @@ private Mono>> updateWithResponseAsync(String reportNa } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), reportName, properties, accept, + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), reportName, accept, properties, context); } @@ -1018,39 +837,420 @@ public 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 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 check availability result along with {@link Response} on successful completion of {@link Mono}. + * @return the AppComplianceAutomation report list for the tenant along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - nestedResourceCheckNameAvailabilityWithResponseAsync(String reportName, CheckNameAvailabilityRequest body) { + 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.")); } - if (reportName == null) { - return Mono.error(new IllegalArgumentException("Parameter reportName 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.nestedResourceCheckNameAvailability(this.client.getEndpoint(), - this.client.getApiVersion(), reportName, body, accept, context)) + .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())); } /** - * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots. + * 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)); + } + + /** + * 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 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 body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> syncCertRecordWithResponseAsync(String reportName, + SyncCertRecordRequest body) { + 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.")); + } + 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.syncCertRecord(this.client.getEndpoint(), this.client.getApiVersion(), + reportName, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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 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 body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> syncCertRecordWithResponseAsync(String reportName, + SyncCertRecordRequest body, 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.")); + } + 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.syncCertRecord(this.client.getEndpoint(), this.client.getApiVersion(), reportName, accept, body, + context); + } + + /** + * 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 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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SyncCertRecordResponseInner> + beginSyncCertRecordAsync(String reportName, SyncCertRecordRequest body) { + Mono>> mono = syncCertRecordWithResponseAsync(reportName, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SyncCertRecordResponseInner.class, SyncCertRecordResponseInner.class, + this.client.getContext()); + } + + /** + * 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 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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SyncCertRecordResponseInner> + beginSyncCertRecordAsync(String reportName, SyncCertRecordRequest body, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = syncCertRecordWithResponseAsync(reportName, body, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SyncCertRecordResponseInner.class, SyncCertRecordResponseInner.class, + context); + } + + /** + * 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 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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SyncCertRecordResponseInner> + beginSyncCertRecord(String reportName, SyncCertRecordRequest body) { + return this.beginSyncCertRecordAsync(reportName, body).getSyncPoller(); + } + + /** + * 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 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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SyncCertRecordResponseInner> + beginSyncCertRecord(String reportName, SyncCertRecordRequest body, Context context) { + return this.beginSyncCertRecordAsync(reportName, body, context).getSyncPoller(); + } + + /** + * 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 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 body on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono syncCertRecordAsync(String reportName, SyncCertRecordRequest body) { + return beginSyncCertRecordAsync(reportName, body).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * 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 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 body on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono syncCertRecordAsync(String reportName, SyncCertRecordRequest body, + Context context) { + return beginSyncCertRecordAsync(reportName, body, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * 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 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body) { + return syncCertRecordAsync(reportName, body).block(); + } + + /** + * 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 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body, Context context) { + return syncCertRecordAsync(reportName, body, context).block(); + } + + /** + * 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 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} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> checkNameAvailabilityWithResponseAsync(String reportName, + CheckNameAvailabilityRequest body) { + 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.")); + } + 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.checkNameAvailability(this.client.getEndpoint(), + this.client.getApiVersion(), reportName, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots. * * @param reportName Report Name. * @param body NameAvailabilityRequest object. @@ -1061,8 +1261,8 @@ public void delete(String reportName, Context context) { * @return the check availability result along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> nestedResourceCheckNameAvailabilityWithResponseAsync( - String reportName, CheckNameAvailabilityRequest body, Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String reportName, + CheckNameAvailabilityRequest body, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1077,8 +1277,8 @@ private Mono> nestedResourceCheckNa } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.nestedResourceCheckNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(), - reportName, body, accept, context); + return service.checkNameAvailability(this.client.getEndpoint(), this.client.getApiVersion(), reportName, accept, + body, context); } /** @@ -1092,9 +1292,9 @@ private Mono> nestedResourceCheckNa * @return the check availability result on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono nestedResourceCheckNameAvailabilityAsync(String reportName, + private Mono checkNameAvailabilityAsync(String reportName, CheckNameAvailabilityRequest body) { - return nestedResourceCheckNameAvailabilityWithResponseAsync(reportName, body) + return checkNameAvailabilityWithResponseAsync(reportName, body) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -1110,9 +1310,9 @@ private Mono nestedResourceCheckNameAvailabi * @return the check availability result along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response nestedResourceCheckNameAvailabilityWithResponse( - String reportName, CheckNameAvailabilityRequest body, Context context) { - return nestedResourceCheckNameAvailabilityWithResponseAsync(reportName, body, context).block(); + public Response checkNameAvailabilityWithResponse(String reportName, + CheckNameAvailabilityRequest body, Context context) { + return checkNameAvailabilityWithResponseAsync(reportName, body, context).block(); } /** @@ -1126,9 +1326,9 @@ public Response nestedResourceCheckNameAvail * @return the check availability result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameAvailabilityResponseInner nestedResourceCheckNameAvailability(String reportName, + public CheckNameAvailabilityResponseInner checkNameAvailability(String reportName, CheckNameAvailabilityRequest body) { - return nestedResourceCheckNameAvailabilityWithResponse(reportName, body, Context.NONE).getValue(); + return checkNameAvailabilityWithResponse(reportName, body, Context.NONE).getValue(); } /** @@ -1139,7 +1339,7 @@ public CheckNameAvailabilityResponseInner nestedResourceCheckNameAvailability(St * @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 report fix result 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>> fixWithResponseAsync(String reportName) { @@ -1165,7 +1365,7 @@ private Mono>> fixWithResponseAsync(String reportName) * @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 report fix result 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>> fixWithResponseAsync(String reportName, Context context) { @@ -1189,7 +1389,7 @@ private Mono>> fixWithResponseAsync(String reportName, * @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 report fix result. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReportFixResultInner> beginFixAsync(String reportName) { @@ -1207,7 +1407,7 @@ private PollerFlux, ReportFixResultInner> 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 report fix result. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReportFixResultInner> beginFixAsync(String reportName, @@ -1226,7 +1426,7 @@ private PollerFlux, ReportFixResultInner> 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 report fix result. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReportFixResultInner> beginFix(String reportName) { @@ -1242,7 +1442,7 @@ public SyncPoller, ReportFixResultInner> beginF * @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 report fix result. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReportFixResultInner> beginFix(String reportName, @@ -1258,7 +1458,7 @@ public SyncPoller, ReportFixResultInner> beginF * @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 report fix result on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono fixAsync(String reportName) { @@ -1274,7 +1474,7 @@ private Mono fixAsync(String reportName) { * @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 report fix result on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono fixAsync(String reportName, Context context) { @@ -1289,7 +1489,7 @@ private Mono fixAsync(String reportName, 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 report fix result. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ReportFixResultInner fix(String reportName) { @@ -1305,7 +1505,7 @@ public ReportFixResultInner fix(String reportName) { * @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 report fix result. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ReportFixResultInner fix(String reportName, Context context) { @@ -1411,209 +1611,6 @@ public ScopingQuestionsInner getScopingQuestions(String reportName) { return getScopingQuestionsWithResponse(reportName, Context.NONE).getValue(); } - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> syncCertRecordWithResponseAsync(String reportName, - SyncCertRecordRequest body) { - 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.")); - } - 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.syncCertRecord(this.client.getEndpoint(), this.client.getApiVersion(), - reportName, body, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> syncCertRecordWithResponseAsync(String reportName, - SyncCertRecordRequest body, 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.")); - } - 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.syncCertRecord(this.client.getEndpoint(), this.client.getApiVersion(), reportName, body, accept, - context); - } - - /** - * 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 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 synchronize certification record response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SyncCertRecordResponseInner> - beginSyncCertRecordAsync(String reportName, SyncCertRecordRequest body) { - Mono>> mono = syncCertRecordWithResponseAsync(reportName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), SyncCertRecordResponseInner.class, SyncCertRecordResponseInner.class, - this.client.getContext()); - } - - /** - * 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 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 synchronize certification record response. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SyncCertRecordResponseInner> - beginSyncCertRecordAsync(String reportName, SyncCertRecordRequest body, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = syncCertRecordWithResponseAsync(reportName, body, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), SyncCertRecordResponseInner.class, SyncCertRecordResponseInner.class, - context); - } - - /** - * 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 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. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SyncCertRecordResponseInner> - beginSyncCertRecord(String reportName, SyncCertRecordRequest body) { - return this.beginSyncCertRecordAsync(reportName, body).getSyncPoller(); - } - - /** - * 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 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. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SyncCertRecordResponseInner> - beginSyncCertRecord(String reportName, SyncCertRecordRequest body, Context context) { - return this.beginSyncCertRecordAsync(reportName, body, context).getSyncPoller(); - } - - /** - * 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono syncCertRecordAsync(String reportName, SyncCertRecordRequest body) { - return beginSyncCertRecordAsync(reportName, body).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono syncCertRecordAsync(String reportName, SyncCertRecordRequest body, - Context context) { - return beginSyncCertRecordAsync(reportName, body, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body) { - return syncCertRecordAsync(reportName, body).block(); - } - - /** - * 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 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRecordRequest body, Context context) { - return syncCertRecordAsync(reportName, body, context).block(); - } - /** * Verify the AppComplianceAutomation report health status. * @@ -1621,8 +1618,7 @@ public SyncCertRecordResponseInner syncCertRecord(String reportName, SyncCertRec * @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 report health status verification result 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>> verifyWithResponseAsync(String reportName) { @@ -1648,8 +1644,7 @@ private Mono>> verifyWithResponseAsync(String reportNa * @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 report health status verification result 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>> verifyWithResponseAsync(String reportName, Context context) { @@ -1672,7 +1667,7 @@ private Mono>> verifyWithResponseAsync(String reportNa * @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 report health status verification result. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReportVerificationResultInner> @@ -1691,7 +1686,7 @@ private Mono>> verifyWithResponseAsync(String reportNa * @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 report health status verification result. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ReportVerificationResultInner> @@ -1710,7 +1705,7 @@ private Mono>> verifyWithResponseAsync(String reportNa * @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 report health status verification result. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReportVerificationResultInner> @@ -1726,7 +1721,7 @@ private Mono>> verifyWithResponseAsync(String reportNa * @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 report health status verification result. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ReportVerificationResultInner> @@ -1741,7 +1736,7 @@ private Mono>> verifyWithResponseAsync(String reportNa * @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 report health status verification result on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono verifyAsync(String reportName) { @@ -1756,7 +1751,7 @@ private Mono verifyAsync(String reportName) { * @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 report health status verification result on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono verifyAsync(String reportName, Context context) { @@ -1770,7 +1765,7 @@ private Mono verifyAsync(String reportName, Conte * @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 report health status verification result. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ReportVerificationResultInner verify(String reportName) { @@ -1785,7 +1780,7 @@ public ReportVerificationResultInner verify(String reportName) { * @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 report health status verification result. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ReportVerificationResultInner verify(String reportName, Context context) { diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsImpl.java index baa58ad8d40c..09d87f4f2b00 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ReportsImpl.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,18 +40,6 @@ public ReportsImpl(ReportsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ReportResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String skipToken, Integer top, String select, String filter, - String orderby, String offerGuid, String reportCreatorTenantId, Context context) { - PagedIterable inner = this.serviceClient() - .list(skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ReportResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String reportName, Context context) { Response inner = this.serviceClient().getWithResponse(reportName, context); if (inner != null) { @@ -71,8 +59,8 @@ public ReportResource get(String reportName) { } } - public ReportResource createOrUpdate(String reportName, ReportResourceInner properties) { - ReportResourceInner inner = this.serviceClient().createOrUpdate(reportName, properties); + public ReportResource createOrUpdate(String reportName, ReportResourceInner parameters) { + ReportResourceInner inner = this.serviceClient().createOrUpdate(reportName, parameters); if (inner != null) { return new ReportResourceImpl(inner, this.manager()); } else { @@ -80,8 +68,8 @@ public ReportResource createOrUpdate(String reportName, ReportResourceInner prop } } - public ReportResource createOrUpdate(String reportName, ReportResourceInner properties, Context context) { - ReportResourceInner inner = this.serviceClient().createOrUpdate(reportName, properties, context); + public ReportResource createOrUpdate(String reportName, ReportResourceInner parameters, Context context) { + ReportResourceInner inner = this.serviceClient().createOrUpdate(reportName, parameters, context); if (inner != null) { return new ReportResourceImpl(inner, this.manager()); } else { @@ -115,10 +103,40 @@ public void delete(String reportName, Context context) { this.serviceClient().delete(reportName, context); } - public Response nestedResourceCheckNameAvailabilityWithResponse(String reportName, + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReportResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String skipToken, Integer top, String select, String filter, + String orderby, String offerGuid, String reportCreatorTenantId, Context context) { + PagedIterable inner = this.serviceClient() + .list(skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReportResourceImpl(inner1, this.manager())); + } + + public SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body) { + SyncCertRecordResponseInner inner = this.serviceClient().syncCertRecord(reportName, body); + if (inner != null) { + return new SyncCertRecordResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + public SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body, Context context) { + SyncCertRecordResponseInner inner = this.serviceClient().syncCertRecord(reportName, body, context); + if (inner != null) { + return new SyncCertRecordResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response checkNameAvailabilityWithResponse(String reportName, CheckNameAvailabilityRequest body, Context context) { Response inner - = this.serviceClient().nestedResourceCheckNameAvailabilityWithResponse(reportName, body, context); + = this.serviceClient().checkNameAvailabilityWithResponse(reportName, body, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameAvailabilityResponseImpl(inner.getValue(), this.manager())); @@ -127,10 +145,8 @@ public Response nestedResourceCheckNameAvailabili } } - public CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportName, - CheckNameAvailabilityRequest body) { - CheckNameAvailabilityResponseInner inner - = this.serviceClient().nestedResourceCheckNameAvailability(reportName, body); + public CheckNameAvailabilityResponse checkNameAvailability(String reportName, CheckNameAvailabilityRequest body) { + CheckNameAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(reportName, body); if (inner != null) { return new CheckNameAvailabilityResponseImpl(inner, this.manager()); } else { @@ -176,24 +192,6 @@ public ScopingQuestions getScopingQuestions(String reportName) { } } - public SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body) { - SyncCertRecordResponseInner inner = this.serviceClient().syncCertRecord(reportName, body); - if (inner != null) { - return new SyncCertRecordResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body, Context context) { - SyncCertRecordResponseInner inner = this.serviceClient().syncCertRecord(reportName, body, context); - if (inner != null) { - return new SyncCertRecordResponseImpl(inner, this.manager()); - } else { - return null; - } - } - public ReportVerificationResult verify(String reportName) { ReportVerificationResultInner inner = this.serviceClient().verify(reportName); if (inner != null) { diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ResourceManagerUtils.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ResourceManagerUtils.java index 5013227d91bf..a5a33e67bbcd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ResourceManagerUtils.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ResourceManagerUtils.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/ScopingConfigurationResourceImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationResourceImpl.java index bed34d8294e0..415b8e9a6cb1 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationResourceImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationResourceImpl.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/ScopingConfigurationsClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsClientImpl.java index c6e4bd5bbacf..7647243a90c6 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsClientImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsClientImpl.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,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.appcomplianceautomation.fluent.ScopingConfigurationsClient; import com.azure.resourcemanager.appcomplianceautomation.fluent.models.ScopingConfigurationResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationResourceListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.ScopingConfigurationResourceListResult; import reactor.core.publisher.Mono; /** @@ -62,171 +62,52 @@ public final class ScopingConfigurationsClientImpl implements ScopingConfigurati * The interface defining all the services for AppComplianceAutomationClientScopingConfigurations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AppComplianceAutomat") public interface ScopingConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}") @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("scopingConfigurationName") String scopingConfigurationName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}") @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, @PathParam("scopingConfigurationName") String scopingConfigurationName, - @BodyParam("application/json") ScopingConfigurationResourceInner properties, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, + @BodyParam("application/json") ScopingConfigurationResourceInner parameters, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("reportName") String reportName, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, @PathParam("scopingConfigurationName") String scopingConfigurationName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, + @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); - } - - /** - * 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 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 along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String reportName) { - 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.list(this.client.getEndpoint(), this.client.getApiVersion(), 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 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 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 along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String reportName, - 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.list(this.client.getEndpoint(), this.client.getApiVersion(), reportName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * 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 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String reportName) { - return new PagedFlux<>(() -> listSinglePageAsync(reportName), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * 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 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String reportName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(reportName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * 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 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) - public PagedIterable list(String reportName) { - return new PagedIterable<>(listAsync(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 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) - public PagedIterable list(String reportName, Context context) { - return new PagedIterable<>(listAsync(reportName, context)); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); } /** @@ -347,7 +228,7 @@ public ScopingConfigurationResourceInner get(String reportName, String scopingCo * * @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 ManagementException thrown if the request is rejected by server. @@ -357,7 +238,7 @@ public ScopingConfigurationResourceInner get(String reportName, String scopingCo */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String reportName, - String scopingConfigurationName, ScopingConfigurationResourceInner properties) { + String scopingConfigurationName, ScopingConfigurationResourceInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -369,15 +250,15 @@ private Mono> createOrUpdateWithResp return Mono.error( new IllegalArgumentException("Parameter scopingConfigurationName 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, scopingConfigurationName, properties, accept, context)) + reportName, scopingConfigurationName, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -386,7 +267,7 @@ private Mono> createOrUpdateWithResp * * @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. @@ -397,7 +278,7 @@ private Mono> createOrUpdateWithResp */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String reportName, - String scopingConfigurationName, ScopingConfigurationResourceInner properties, Context context) { + String scopingConfigurationName, ScopingConfigurationResourceInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -409,15 +290,15 @@ private Mono> createOrUpdateWithResp return Mono.error( new IllegalArgumentException("Parameter scopingConfigurationName 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, - scopingConfigurationName, properties, accept, context); + scopingConfigurationName, accept, parameters, context); } /** @@ -425,7 +306,7 @@ private Mono> createOrUpdateWithResp * * @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 ManagementException thrown if the request is rejected by server. @@ -435,8 +316,8 @@ private Mono> createOrUpdateWithResp */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String reportName, - String scopingConfigurationName, ScopingConfigurationResourceInner properties) { - return createOrUpdateWithResponseAsync(reportName, scopingConfigurationName, properties) + String scopingConfigurationName, ScopingConfigurationResourceInner parameters) { + return createOrUpdateWithResponseAsync(reportName, scopingConfigurationName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -445,7 +326,7 @@ private Mono createOrUpdateAsync(String repor * * @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. @@ -455,8 +336,8 @@ private Mono createOrUpdateAsync(String repor */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String reportName, - String scopingConfigurationName, ScopingConfigurationResourceInner properties, Context context) { - return createOrUpdateWithResponseAsync(reportName, scopingConfigurationName, properties, context).block(); + String scopingConfigurationName, ScopingConfigurationResourceInner parameters, Context context) { + return createOrUpdateWithResponseAsync(reportName, scopingConfigurationName, parameters, context).block(); } /** @@ -464,7 +345,7 @@ public Response createOrUpdateWithResponse(St * * @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 ManagementException thrown if the request is rejected by server. @@ -473,8 +354,8 @@ public Response createOrUpdateWithResponse(St */ @ServiceMethod(returns = ReturnType.SINGLE) public ScopingConfigurationResourceInner createOrUpdate(String reportName, String scopingConfigurationName, - ScopingConfigurationResourceInner properties) { - return createOrUpdateWithResponse(reportName, scopingConfigurationName, properties, Context.NONE).getValue(); + ScopingConfigurationResourceInner parameters) { + return createOrUpdateWithResponse(reportName, scopingConfigurationName, parameters, Context.NONE).getValue(); } /** @@ -583,6 +464,125 @@ public void delete(String reportName, String scopingConfigurationName) { deleteWithResponse(reportName, scopingConfigurationName, Context.NONE); } + /** + * 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 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String reportName) { + 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.list(this.client.getEndpoint(), this.client.getApiVersion(), 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 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 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String reportName, + 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.list(this.client.getEndpoint(), this.client.getApiVersion(), reportName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * 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 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 PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String reportName) { + return new PagedFlux<>(() -> listSinglePageAsync(reportName), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * 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 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 PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String reportName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(reportName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * 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 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) + public PagedIterable list(String reportName) { + return new PagedIterable<>(listAsync(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 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) + public PagedIterable list(String reportName, Context context) { + return new PagedIterable<>(listAsync(reportName, context)); + } + /** * Get the next page of items. * diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsImpl.java index 4eb117c47146..8ad1e81bd00c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingConfigurationsImpl.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,18 +27,6 @@ public ScopingConfigurationsImpl(ScopingConfigurationsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String reportName) { - PagedIterable inner = this.serviceClient().list(reportName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new ScopingConfigurationResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String reportName, Context context) { - PagedIterable inner = this.serviceClient().list(reportName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new ScopingConfigurationResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String reportName, String scopingConfigurationName, Context context) { Response inner @@ -61,9 +49,9 @@ public ScopingConfigurationResource get(String reportName, String scopingConfigu } public Response createOrUpdateWithResponse(String reportName, - String scopingConfigurationName, ScopingConfigurationResourceInner properties, Context context) { + String scopingConfigurationName, ScopingConfigurationResourceInner parameters, Context context) { Response inner = this.serviceClient() - .createOrUpdateWithResponse(reportName, scopingConfigurationName, properties, context); + .createOrUpdateWithResponse(reportName, scopingConfigurationName, parameters, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ScopingConfigurationResourceImpl(inner.getValue(), this.manager())); @@ -73,9 +61,9 @@ public Response createOrUpdateWithResponse(String } public ScopingConfigurationResource createOrUpdate(String reportName, String scopingConfigurationName, - ScopingConfigurationResourceInner properties) { + ScopingConfigurationResourceInner parameters) { ScopingConfigurationResourceInner inner - = this.serviceClient().createOrUpdate(reportName, scopingConfigurationName, properties); + = this.serviceClient().createOrUpdate(reportName, scopingConfigurationName, parameters); if (inner != null) { return new ScopingConfigurationResourceImpl(inner, this.manager()); } else { @@ -92,6 +80,18 @@ public void deleteByResourceGroup(String reportName, String scopingConfiguration this.serviceClient().delete(reportName, scopingConfigurationName); } + public PagedIterable list(String reportName) { + PagedIterable inner = this.serviceClient().list(reportName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ScopingConfigurationResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String reportName, Context context) { + PagedIterable inner = this.serviceClient().list(reportName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ScopingConfigurationResourceImpl(inner1, this.manager())); + } + private ScopingConfigurationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingQuestionsImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingQuestionsImpl.java index d104d7d9a5b5..f55c1e9f3ff9 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingQuestionsImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/ScopingQuestionsImpl.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/SnapshotResourceImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotResourceImpl.java index 1d17317a4d28..5a559cbcc8cc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotResourceImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotResourceImpl.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/SnapshotsClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsClientImpl.java index 1b7bdf192dc3..3f90fe8f6f1a 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsClientImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsClientImpl.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; @@ -33,8 +33,8 @@ import com.azure.resourcemanager.appcomplianceautomation.fluent.SnapshotsClient; import com.azure.resourcemanager.appcomplianceautomation.fluent.models.DownloadResponseInner; import com.azure.resourcemanager.appcomplianceautomation.fluent.models.SnapshotResourceInner; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.SnapshotResourceListResult; import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotDownloadRequest; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotResourceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -68,44 +68,151 @@ public final class SnapshotsClientImpl implements SnapshotsClient { * The interface defining all the services for AppComplianceAutomationClientSnapshots to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AppComplianceAutomat") public interface SnapshotsService { + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, + @PathParam("snapshotName") String snapshotName, @HeaderParam("accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + 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, - @PathParam("reportName") String reportName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); + @PathParam("reportName") String reportName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/snapshots/{snapshotName}/download") @ExpectedResponses({ 200, 202 }) @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("snapshotName") String snapshotName, @BodyParam("application/json") SnapshotDownloadRequest body, - @HeaderParam("Accept") String accept, Context context); + @PathParam("snapshotName") String snapshotName, @HeaderParam("accept") String accept, + @BodyParam("application/json") SnapshotDownloadRequest body, 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); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, 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 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} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String reportName, String snapshotName) { + 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.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), reportName, + snapshotName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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 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} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String reportName, String snapshotName, + 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.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), reportName, snapshotName, accept, + 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 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 on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String reportName, String snapshotName) { + return getWithResponseAsync(reportName, snapshotName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * 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 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) + public Response getWithResponse(String reportName, String snapshotName, Context context) { + return getWithResponseAsync(reportName, snapshotName, context).block(); + } + + /** + * Get the AppComplianceAutomation snapshot and its properties. + * + * @param reportName Report Name. + * @param snapshotName Snapshot 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 AppComplianceAutomation snapshot and its properties. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SnapshotResourceInner get(String reportName, String snapshotName) { + return getWithResponse(reportName, snapshotName, Context.NONE).getValue(); } /** @@ -302,113 +409,6 @@ public PagedIterable list(String reportName, String skipT listAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, 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 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} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String reportName, String snapshotName) { - 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.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), reportName, - snapshotName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String reportName, String snapshotName, - 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.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), reportName, snapshotName, accept, - 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String reportName, String snapshotName) { - return getWithResponseAsync(reportName, snapshotName).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 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) - public Response getWithResponse(String reportName, String snapshotName, Context context) { - return getWithResponseAsync(reportName, snapshotName, context).block(); - } - - /** - * Get the AppComplianceAutomation snapshot and its properties. - * - * @param reportName Report Name. - * @param snapshotName Snapshot 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 AppComplianceAutomation snapshot and its properties. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SnapshotResourceInner get(String reportName, String snapshotName) { - return getWithResponse(reportName, snapshotName, Context.NONE).getValue(); - } - /** * Download compliance needs from snapshot, like: Compliance Report, Resource List. * @@ -418,8 +418,7 @@ public SnapshotResourceInner get(String reportName, String snapshotName) { * @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 object that includes all the possible response for the download operation 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>> downloadWithResponseAsync(String reportName, String snapshotName, @@ -442,7 +441,7 @@ private Mono>> downloadWithResponseAsync(String report final String accept = "application/json"; return FluxUtil .withContext(context -> service.download(this.client.getEndpoint(), this.client.getApiVersion(), reportName, - snapshotName, body, accept, context)) + snapshotName, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -456,8 +455,7 @@ private Mono>> downloadWithResponseAsync(String report * @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 object that includes all the possible response for the download operation 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>> downloadWithResponseAsync(String reportName, String snapshotName, @@ -479,8 +477,8 @@ private Mono>> downloadWithResponseAsync(String report } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.download(this.client.getEndpoint(), this.client.getApiVersion(), reportName, snapshotName, body, - accept, context); + return service.download(this.client.getEndpoint(), this.client.getApiVersion(), reportName, snapshotName, + accept, body, context); } /** @@ -492,8 +490,7 @@ private Mono>> downloadWithResponseAsync(String report * @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 object that includes all the possible response for the download - * operation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DownloadResponseInner> beginDownloadAsync(String reportName, @@ -514,8 +511,7 @@ private PollerFlux, DownloadResponseInner> beg * @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 object that includes all the possible response for the download - * operation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DownloadResponseInner> beginDownloadAsync(String reportName, @@ -535,8 +531,7 @@ private PollerFlux, DownloadResponseInner> beg * @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 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) public SyncPoller, DownloadResponseInner> beginDownload(String reportName, @@ -554,8 +549,7 @@ public SyncPoller, DownloadResponseInner> begi * @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 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) public SyncPoller, DownloadResponseInner> beginDownload(String reportName, @@ -572,8 +566,7 @@ public SyncPoller, DownloadResponseInner> begi * @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 object that includes all the possible response for the download operation on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadAsync(String reportName, String snapshotName, @@ -591,8 +584,7 @@ private Mono downloadAsync(String reportName, String snap * @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 object that includes all the possible response for the download operation on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadAsync(String reportName, String snapshotName, @@ -610,7 +602,7 @@ private Mono downloadAsync(String reportName, String snap * @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 object that includes all the possible response for the download operation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public DownloadResponseInner download(String reportName, String snapshotName, SnapshotDownloadRequest body) { @@ -627,7 +619,7 @@ public DownloadResponseInner download(String reportName, String snapshotName, Sn * @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 object that includes all the possible response for the download operation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public DownloadResponseInner download(String reportName, String snapshotName, SnapshotDownloadRequest body, diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsImpl.java index 570cf8667fac..a83da755e81f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SnapshotsImpl.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,18 +30,6 @@ public SnapshotsImpl(SnapshotsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String reportName) { - PagedIterable inner = this.serviceClient().list(reportName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String reportName, String skipToken, Integer top, String select, - String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { - PagedIterable inner = this.serviceClient() - .list(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String reportName, String snapshotName, Context context) { Response inner = this.serviceClient().getWithResponse(reportName, snapshotName, context); if (inner != null) { @@ -61,6 +49,18 @@ public SnapshotResource get(String reportName, String snapshotName) { } } + public PagedIterable list(String reportName) { + PagedIterable inner = this.serviceClient().list(reportName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String reportName, String skipToken, Integer top, String select, + String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { + PagedIterable inner = this.serviceClient() + .list(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SnapshotResourceImpl(inner1, this.manager())); + } + public DownloadResponse download(String reportName, String snapshotName, SnapshotDownloadRequest body) { DownloadResponseInner inner = this.serviceClient().download(reportName, snapshotName, body); if (inner != null) { diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SyncCertRecordResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SyncCertRecordResponseImpl.java index 9258adf118d7..1e1be5b718a2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SyncCertRecordResponseImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/SyncCertRecordResponseImpl.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/TriggerEvaluationResponseImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/TriggerEvaluationResponseImpl.java index 67821894c012..a446279a3786 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/TriggerEvaluationResponseImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/TriggerEvaluationResponseImpl.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/WebhookResourceImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhookResourceImpl.java index 0b46bda4e0fb..a48660f07b76 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhookResourceImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhookResourceImpl.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/WebhooksClientImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksClientImpl.java index 1b8a2ef3e249..0c6675be44a5 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksClientImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksClientImpl.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; @@ -31,7 +31,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.appcomplianceautomation.fluent.WebhooksClient; import com.azure.resourcemanager.appcomplianceautomation.fluent.models.WebhookResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.WebhookResourceListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.WebhookResourceListResult; import com.azure.resourcemanager.appcomplianceautomation.models.WebhookResourcePatch; import reactor.core.publisher.Mono; @@ -63,257 +63,61 @@ public final class WebhooksClientImpl implements WebhooksClient { * The interface defining all the services for AppComplianceAutomationClientWebhooks to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AppComplianceAutomat") public interface WebhooksService { - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/webhooks") - @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, - @PathParam("reportName") String reportName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/webhooks/{webhookName}") @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("webhookName") String webhookName, @HeaderParam("Accept") String accept, Context context); + @PathParam("webhookName") String webhookName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/webhooks/{webhookName}") @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, - @PathParam("webhookName") String webhookName, - @BodyParam("application/json") WebhookResourceInner properties, @HeaderParam("Accept") String accept, - Context context); + @PathParam("webhookName") String webhookName, @HeaderParam("accept") String accept, + @BodyParam("application/json") WebhookResourceInner parameters, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/webhooks/{webhookName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, - @PathParam("webhookName") String webhookName, - @BodyParam("application/json") WebhookResourcePatch properties, @HeaderParam("Accept") String accept, - Context context); + @PathParam("webhookName") String webhookName, @HeaderParam("accept") String accept, + @BodyParam("application/json") WebhookResourcePatch properties, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/webhooks/{webhookName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("reportName") String reportName, @PathParam("webhookName") String webhookName, - @HeaderParam("Accept") String accept, Context context); + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("reportName") String reportName, + @PathParam("webhookName") String webhookName, @HeaderParam("accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Microsoft.AppComplianceAutomation/reports/{reportName}/webhooks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + 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, + @PathParam("reportName") String reportName, @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 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. - * @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 webhook list along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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.list(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())); - } - - /** - * 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 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 along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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 - .list(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)); - } - - /** - * 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. - * @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 webhook list as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String reportName, String skipToken, Integer top, String select, - String filter, String orderby, String offerGuid, String reportCreatorTenantId) { - return new PagedFlux<>(() -> listSinglePageAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, - reportCreatorTenantId), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Get the AppComplianceAutomation webhook list. - * - * @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 AppComplianceAutomation webhook list as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(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<>(() -> listSinglePageAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, - reportCreatorTenantId), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * 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 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String reportName, String skipToken, Integer top, String select, - String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, - reportCreatorTenantId, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Get the AppComplianceAutomation webhook list. - * - * @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 AppComplianceAutomation webhook list as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(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<>( - listAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId)); - } - - /** - * 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 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) - public PagedIterable list(String reportName, String skipToken, Integer top, String select, - String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { - return new PagedIterable<>( - listAsync(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); } /** @@ -428,7 +232,7 @@ public WebhookResourceInner get(String reportName, String webhookName) { * * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -437,7 +241,7 @@ public WebhookResourceInner get(String reportName, String webhookName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String reportName, String webhookName, - WebhookResourceInner properties) { + WebhookResourceInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -448,15 +252,15 @@ private Mono> createOrUpdateWithResponseAsync(Str if (webhookName == null) { return Mono.error(new IllegalArgumentException("Parameter webhookName 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, webhookName, properties, accept, context)) + reportName, webhookName, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -465,7 +269,7 @@ private Mono> createOrUpdateWithResponseAsync(Str * * @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 ManagementException thrown if the request is rejected by server. @@ -475,7 +279,7 @@ private Mono> createOrUpdateWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String reportName, String webhookName, - WebhookResourceInner properties, Context context) { + WebhookResourceInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -486,15 +290,15 @@ private Mono> createOrUpdateWithResponseAsync(Str if (webhookName == null) { return Mono.error(new IllegalArgumentException("Parameter webhookName 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, webhookName, - properties, accept, context); + accept, parameters, context); } /** @@ -502,7 +306,7 @@ private Mono> createOrUpdateWithResponseAsync(Str * * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -510,8 +314,8 @@ private Mono> createOrUpdateWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String reportName, String webhookName, - WebhookResourceInner properties) { - return createOrUpdateWithResponseAsync(reportName, webhookName, properties) + WebhookResourceInner parameters) { + return createOrUpdateWithResponseAsync(reportName, webhookName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -520,7 +324,7 @@ private Mono createOrUpdateAsync(String reportName, String * * @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 ManagementException thrown if the request is rejected by server. @@ -529,8 +333,8 @@ private Mono createOrUpdateAsync(String reportName, String */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String reportName, String webhookName, - WebhookResourceInner properties, Context context) { - return createOrUpdateWithResponseAsync(reportName, webhookName, properties, context).block(); + WebhookResourceInner parameters, Context context) { + return createOrUpdateWithResponseAsync(reportName, webhookName, parameters, context).block(); } /** @@ -538,15 +342,15 @@ public Response createOrUpdateWithResponse(String reportNa * * @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 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) - public WebhookResourceInner createOrUpdate(String reportName, String webhookName, WebhookResourceInner properties) { - return createOrUpdateWithResponse(reportName, webhookName, properties, Context.NONE).getValue(); + public WebhookResourceInner createOrUpdate(String reportName, String webhookName, WebhookResourceInner parameters) { + return createOrUpdateWithResponse(reportName, webhookName, parameters, Context.NONE).getValue(); } /** @@ -582,7 +386,7 @@ private Mono> updateWithResponseAsync(String repo final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), reportName, - webhookName, properties, accept, context)) + webhookName, accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -619,8 +423,8 @@ private Mono> updateWithResponseAsync(String repo } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), reportName, webhookName, - properties, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), reportName, webhookName, accept, + properties, context); } /** @@ -778,6 +582,200 @@ public void delete(String reportName, String webhookName) { deleteWithResponse(reportName, webhookName, Context.NONE); } + /** + * 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. + * @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 webhook list along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(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.list(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())); + } + + /** + * 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 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 along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(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 + .list(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)); + } + + /** + * 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. + * @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 webhook list as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String reportName, String skipToken, Integer top, String select, + String filter, String orderby, String offerGuid, String reportCreatorTenantId) { + return new PagedFlux<>(() -> listSinglePageAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, + reportCreatorTenantId), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Get the AppComplianceAutomation webhook list. + * + * @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 AppComplianceAutomation webhook list as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(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<>(() -> listSinglePageAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, + reportCreatorTenantId), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * 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 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 PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String reportName, String skipToken, Integer top, String select, + String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, + reportCreatorTenantId, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Get the AppComplianceAutomation webhook list. + * + * @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 AppComplianceAutomation webhook list as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(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<>( + listAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId)); + } + + /** + * 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 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) + public PagedIterable list(String reportName, String skipToken, Integer top, String select, + String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { + return new PagedIterable<>( + listAsync(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context)); + } + /** * Get the next page of items. * diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksImpl.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksImpl.java index b890d391d9e7..30e46a34c6ca 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksImpl.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/WebhooksImpl.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; @@ -28,18 +28,6 @@ public WebhooksImpl(WebhooksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list(String reportName) { - PagedIterable inner = this.serviceClient().list(reportName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WebhookResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String reportName, String skipToken, Integer top, String select, - String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { - PagedIterable inner = this.serviceClient() - .list(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WebhookResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String reportName, String webhookName, Context context) { Response inner = this.serviceClient().getWithResponse(reportName, webhookName, context); if (inner != null) { @@ -60,9 +48,9 @@ public WebhookResource get(String reportName, String webhookName) { } public Response createOrUpdateWithResponse(String reportName, String webhookName, - WebhookResourceInner properties, Context context) { + WebhookResourceInner parameters, Context context) { Response inner - = this.serviceClient().createOrUpdateWithResponse(reportName, webhookName, properties, context); + = this.serviceClient().createOrUpdateWithResponse(reportName, webhookName, parameters, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WebhookResourceImpl(inner.getValue(), this.manager())); @@ -71,8 +59,8 @@ public Response createOrUpdateWithResponse(String reportName, S } } - public WebhookResource createOrUpdate(String reportName, String webhookName, WebhookResourceInner properties) { - WebhookResourceInner inner = this.serviceClient().createOrUpdate(reportName, webhookName, properties); + public WebhookResource createOrUpdate(String reportName, String webhookName, WebhookResourceInner parameters) { + WebhookResourceInner inner = this.serviceClient().createOrUpdate(reportName, webhookName, parameters); if (inner != null) { return new WebhookResourceImpl(inner, this.manager()); } else { @@ -109,6 +97,18 @@ public void deleteByResourceGroup(String reportName, String webhookName) { this.serviceClient().delete(reportName, webhookName); } + public PagedIterable list(String reportName) { + PagedIterable inner = this.serviceClient().list(reportName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WebhookResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String reportName, String skipToken, Integer top, String select, + String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context) { + PagedIterable inner = this.serviceClient() + .list(reportName, skipToken, top, select, filter, orderby, offerGuid, reportCreatorTenantId, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WebhookResourceImpl(inner1, this.manager())); + } + private WebhooksClient serviceClient() { return this.innerClient; } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResourceListResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/EvidenceResourceListResult.java similarity index 96% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResourceListResult.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/EvidenceResourceListResult.java index ae0f7e12cf33..4aaa8d7e73ea 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResourceListResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/EvidenceResourceListResult.java @@ -1,8 +1,8 @@ // 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.models; +package com.azure.resourcemanager.appcomplianceautomation.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationListResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/OperationListResult.java similarity index 74% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationListResult.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/OperationListResult.java index b9f7e6f072ba..aa0dea47a7dc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationListResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/OperationListResult.java @@ -1,10 +1,11 @@ // 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.models; +package com.azure.resourcemanager.appcomplianceautomation.implementation.models; import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,12 +21,12 @@ @Immutable public final class OperationListResult implements JsonSerializable { /* - * List of operations supported by the resource provider + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results (if there are any). + * The link to the next page of items */ private String nextLink; @@ -36,7 +37,7 @@ private OperationListResult() { } /** - * Get the value property: List of operations supported by the resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -45,7 +46,7 @@ public List value() { } /** - * Get the nextLink property: URL to get the next set of operation list results (if there are any). + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -59,17 +60,24 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -79,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ReportResourceListResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/ReportResourceListResult.java similarity index 96% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ReportResourceListResult.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/ReportResourceListResult.java index 74c19d00004f..5ab18f26e1e3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ReportResourceListResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/ReportResourceListResult.java @@ -1,8 +1,8 @@ // 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.models; +package com.azure.resourcemanager.appcomplianceautomation.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResourceListResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/ScopingConfigurationResourceListResult.java similarity index 96% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResourceListResult.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/ScopingConfigurationResourceListResult.java index 4190dc08a61e..40a40b8107dd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResourceListResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/ScopingConfigurationResourceListResult.java @@ -1,8 +1,8 @@ // 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.models; +package com.azure.resourcemanager.appcomplianceautomation.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotResourceListResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/SnapshotResourceListResult.java similarity index 96% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotResourceListResult.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/SnapshotResourceListResult.java index 444e98772230..37fc330d8153 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotResourceListResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/SnapshotResourceListResult.java @@ -1,8 +1,8 @@ // 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.models; +package com.azure.resourcemanager.appcomplianceautomation.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourceListResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/WebhookResourceListResult.java similarity index 96% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourceListResult.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/WebhookResourceListResult.java index 42333029b3f4..17a2f0351189 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourceListResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/models/WebhookResourceListResult.java @@ -1,8 +1,8 @@ // 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.models; +package com.azure.resourcemanager.appcomplianceautomation.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/package-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/package-info.java index 750b3a90d3db..4aba25f23d1b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/package-info.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/implementation/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 implementations for AppComplianceAutomationClient. + * Package containing the implementations for AppComplianceAutomation. * App Compliance Automation Tool for Microsoft 365 API spec. */ package com.azure.resourcemanager.appcomplianceautomation.implementation; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ActionType.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ActionType.java index c313966c218d..442fcdd4917a 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ActionType.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ActionType.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.models; @@ -8,7 +8,7 @@ import java.util.Collection; /** - * 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. */ public final class ActionType extends ExpandableStringEnum { /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Category.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Category.java index b6e7522449a7..28b3704f32b0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Category.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Category.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.models; @@ -35,7 +35,7 @@ public final class Category implements JsonSerializable { /** * Creates an instance of Category class. */ - public Category() { + private Category() { } /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CategoryStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CategoryStatus.java index cbaa74f67d10..1d883de049e7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CategoryStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CategoryStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CertSyncRecord.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CertSyncRecord.java index 78e077533fb0..212d7653d0c2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CertSyncRecord.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CertSyncRecord.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityReason.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityReason.java index e6a0cca04d5d..8603c705d1bb 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityReason.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityReason.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.models; @@ -8,7 +8,7 @@ import java.util.Collection; /** - * The reason why the given name is not available. + * Possible reasons for a name not being available. */ public final class CheckNameAvailabilityReason extends ExpandableStringEnum { /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityRequest.java index 47801b4977ef..aa2ad20eab74 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityResponse.java index 14b3e76e1f43..2daeb3638e71 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/CheckNameAvailabilityResponse.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.models; @@ -25,7 +25,7 @@ public interface CheckNameAvailabilityResponse { CheckNameAvailabilityReason reason(); /** - * Gets the message property: Detailed reason why the given name is available. + * Gets 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/models/ComplianceReportItem.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceReportItem.java index 8314297f8f59..f834fe82770b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceReportItem.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceReportItem.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceResult.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceResult.java index a559fd881f62..e9ff2644df97 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceResult.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ComplianceResult.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.models; @@ -30,7 +30,7 @@ public final class ComplianceResult implements JsonSerializable { /** * Creates an instance of Control class. */ - public Control() { + private Control() { } /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamily.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamily.java index 7ad57dbf872b..adbc550de6c3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamily.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamily.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.models; @@ -35,7 +35,7 @@ public final class ControlFamily implements JsonSerializable { /** * Creates an instance of ControlFamily class. */ - public ControlFamily() { + private ControlFamily() { } /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamilyStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamilyStatus.java index 68cd8161fa1c..9e47b16cf04c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamilyStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlFamilyStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlStatus.java index 2ff9aa3c4bb4..c098a0729f05 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlSyncRecord.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlSyncRecord.java index 86d79ead0f86..97650062252c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlSyncRecord.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ControlSyncRecord.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DeliveryStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DeliveryStatus.java index fa99ddd6915f..ae8ef26bb347 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DeliveryStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DeliveryStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponse.java index baa3a09bf777..cd2781f8b34d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseComplianceDetailedPdfReport.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseComplianceDetailedPdfReport.java index cfbad5d4f103..5611fd2ab553 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseComplianceDetailedPdfReport.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseComplianceDetailedPdfReport.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseCompliancePdfReport.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseCompliancePdfReport.java index e8d63bad903e..f3c6548185d7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseCompliancePdfReport.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadResponseCompliancePdfReport.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadType.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadType.java index 7efe3e32d68d..119324fd593f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadType.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/DownloadType.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EnableSslVerification.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EnableSslVerification.java index c396c9099d3c..5defd8515713 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EnableSslVerification.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EnableSslVerification.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadRequest.java index d0056fb20f8b..3c746efd11cc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponse.java index 33dc985758c6..7b4ecdd1600c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponseEvidenceFile.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponseEvidenceFile.java index 67312ef82421..bf85c5eac44f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponseEvidenceFile.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceFileDownloadResponseEvidenceFile.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceProperties.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceProperties.java index 6998214ad9cc..0584d501722c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceProperties.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceProperties.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResource.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResource.java index 50d6bcc77a32..9f4b1b3fae5e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResource.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceResource.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceType.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceType.java index 91aa6697d174..39a1fff9bdf7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceType.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/EvidenceType.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Evidences.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Evidences.java index e684c8ff477b..e5dfeda70726 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Evidences.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Evidences.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.models; @@ -13,38 +13,6 @@ * Resource collection API of Evidences. */ public interface Evidences { - /** - * 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}. - */ - 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}. - */ - PagedIterable listByReport(String reportName, String skipToken, Integer top, String select, - String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context); - /** * Get the evidence metadata. * @@ -75,7 +43,7 @@ PagedIterable listByReport(String reportName, String skipToken * * @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. @@ -85,20 +53,20 @@ PagedIterable listByReport(String reportName, String skipToken * @return a class represent an AppComplianceAutomation evidence resource along with {@link Response}. */ 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. */ - EvidenceResource createOrUpdate(String reportName, String evidenceName, EvidenceResourceInner properties); + EvidenceResource createOrUpdate(String reportName, String evidenceName, EvidenceResourceInner parameters); /** * Delete an existent evidence from a specified report. @@ -124,6 +92,38 @@ Response createOrUpdateWithResponse(String reportName, String */ void deleteByResourceGroup(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}. + */ + 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}. + */ + 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/models/GetCollectionCountRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountRequest.java index 9f74785860eb..493591a1fb46 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountResponse.java index 1771ffc7d77a..639b574aa3ef 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetCollectionCountResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusRequest.java index e5f1c3ced0c1..e88e9e57d867 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusResponse.java index 969cce5b5168..211a173d10ed 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/GetOverviewStatusResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/InputType.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/InputType.java index 1260e28fbc80..ebae29b2b4be 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/InputType.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/InputType.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/IsRecommendSolution.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/IsRecommendSolution.java index 208485568942..4d209b5bd424 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/IsRecommendSolution.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/IsRecommendSolution.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsRequest.java index 67a135cd1f66..26a2972b93a9 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsResponse.java index 2c5334052f1b..697d8881825d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ListInUseStorageAccountsResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/NotificationEvent.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/NotificationEvent.java index 9a85198ea9c2..932cc4abd1b6 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/NotificationEvent.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/NotificationEvent.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardRequest.java index 90717779f853..7318caa8f7e8 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardResponse.java index 37eff8d4b60a..aac24eda44a2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OnboardResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operation.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operation.java index a1ee14fac9cc..2dbb0136ed50 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operation.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operation.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.models; @@ -20,7 +20,7 @@ public interface Operation { /** * Gets 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. */ @@ -42,8 +42,8 @@ public interface Operation { Origin origin(); /** - * Gets the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationDisplay.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationDisplay.java index 01412db4a5f9..0ec9a75e804e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationDisplay.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OperationDisplay.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.models; @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Localized display information for this particular operation. + * Localized display information for and operation. */ @Immutable public final class OperationDisplay implements JsonSerializable { diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operations.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operations.java index 2413f061a286..81c09b8bd659 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operations.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Operations.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Origin.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Origin.java index ddc50b022b5e..e7e03bc05ce9 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Origin.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Origin.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OverviewStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OverviewStatus.java index 9bcc63d974d5..2e439012d43b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OverviewStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/OverviewStatus.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.models; @@ -44,7 +44,7 @@ public final class OverviewStatus implements JsonSerializable { /** * Creates an instance of OverviewStatus class. */ - public OverviewStatus() { + private OverviewStatus() { } /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProviderActions.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProviderActions.java index 9ea5f28c4970..060229ad3011 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProviderActions.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProviderActions.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.models; @@ -83,72 +83,72 @@ Response getCollectionCountWithResponse(GetCollectio GetOverviewStatusResponse getOverviewStatus(GetOverviewStatusRequest body); /** - * List the storage accounts which are in use by related reports. + * Onboard given subscriptions to Microsoft.AppComplianceAutomation provider. * * @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}. + * @return the response. */ - Response - listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context); + OnboardResponse onboard(OnboardRequest body); /** - * List the storage accounts which are in use by related reports. + * Onboard given subscriptions to Microsoft.AppComplianceAutomation provider. * * @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. + * @return the response. */ - ListInUseStorageAccountsResponse listInUseStorageAccounts(ListInUseStorageAccountsRequest body); + OnboardResponse onboard(OnboardRequest body, Context context); /** - * Onboard given subscriptions to Microsoft.AppComplianceAutomation provider. + * Trigger quick evaluation for the given subscriptions. * * @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 success. + * @return the response. */ - OnboardResponse onboard(OnboardRequest body); + TriggerEvaluationResponse triggerEvaluation(TriggerEvaluationRequest body); /** - * Onboard given subscriptions to Microsoft.AppComplianceAutomation provider. + * Trigger quick evaluation for the given subscriptions. * * @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 success. + * @return the response. */ - OnboardResponse onboard(OnboardRequest body, Context context); + TriggerEvaluationResponse triggerEvaluation(TriggerEvaluationRequest body, Context context); /** - * Trigger quick evaluation for the given subscriptions. + * 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 trigger evaluation response. + * @return parameters for listing in use storage accounts operation along with {@link Response}. */ - TriggerEvaluationResponse triggerEvaluation(TriggerEvaluationRequest body); + Response + listInUseStorageAccountsWithResponse(ListInUseStorageAccountsRequest body, Context context); /** - * Trigger quick evaluation for the given subscriptions. + * 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 trigger evaluation response. + * @return parameters for listing in use storage accounts operation. */ - TriggerEvaluationResponse triggerEvaluation(TriggerEvaluationRequest body, Context context); + ListInUseStorageAccountsResponse listInUseStorageAccounts(ListInUseStorageAccountsRequest body); } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProvisioningState.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProvisioningState.java index 0545fbd10e87..6419e0d7adc7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProvisioningState.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ProvisioningState.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/QuickAssessment.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/QuickAssessment.java index 5f44af1795c7..e8dd8f5f8911 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/QuickAssessment.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/QuickAssessment.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Recommendation.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Recommendation.java index d828f7864f84..f28f7de6369e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Recommendation.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Recommendation.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.models; @@ -35,7 +35,7 @@ public final class Recommendation implements JsonSerializable { /** * Creates an instance of Recommendation class. */ - public Recommendation() { + private Recommendation() { } /** diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/RecommendationSolution.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/RecommendationSolution.java index 5d0a3a931644..875d7c25df1b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/RecommendationSolution.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/RecommendationSolution.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.models; @@ -34,7 +34,7 @@ public final class RecommendationSolution implements JsonSerializable 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}. - */ - 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. * @@ -69,26 +40,26 @@ PagedIterable list(String skipToken, Integer top, String select, * 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. */ - ReportResource createOrUpdate(String reportName, ReportResourceInner properties); + ReportResource 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a class represent an AppComplianceAutomation report resource. */ - ReportResource createOrUpdate(String reportName, ReportResourceInner properties, Context context); + ReportResource createOrUpdate(String reportName, ReportResourceInner parameters, Context context); /** * Update an exiting AppComplianceAutomation report. @@ -136,6 +107,60 @@ PagedIterable list(String skipToken, Integer top, String select, */ void delete(String reportName, Context context); + /** + * 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}. + */ + 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}. + */ + PagedIterable list(String skipToken, Integer top, String select, String filter, String orderby, + String offerGuid, String reportCreatorTenantId, Context context); + + /** + * 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 response. + */ + SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body); + + /** + * 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 response. + */ + SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body, Context context); + /** * Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots. * @@ -147,7 +172,7 @@ PagedIterable list(String skipToken, Integer top, String select, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the check availability result along with {@link Response}. */ - Response nestedResourceCheckNameAvailabilityWithResponse(String reportName, + Response checkNameAvailabilityWithResponse(String reportName, CheckNameAvailabilityRequest body, Context context); /** @@ -160,8 +185,7 @@ Response nestedResourceCheckNameAvailabilityWithR * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the check availability result. */ - CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportName, - CheckNameAvailabilityRequest body); + CheckNameAvailabilityResponse checkNameAvailability(String reportName, CheckNameAvailabilityRequest body); /** * Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered, @@ -171,7 +195,7 @@ CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportN * @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. */ ReportFixResult fix(String reportName); @@ -184,7 +208,7 @@ CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportN * @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. */ ReportFixResult fix(String reportName, Context context); @@ -213,31 +237,6 @@ CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportN */ ScopingQuestions getScopingQuestions(String reportName); - /** - * 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 synchronize certification record response. - */ - SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body); - - /** - * 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 synchronize certification record response. - */ - SyncCertRecordResponse syncCertRecord(String reportName, SyncCertRecordRequest body, Context context); - /** * Verify the AppComplianceAutomation report health status. * @@ -245,7 +244,7 @@ CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportN * @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. */ ReportVerificationResult verify(String reportName); @@ -257,7 +256,7 @@ CheckNameAvailabilityResponse nestedResourceCheckNameAvailability(String reportN * @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. */ ReportVerificationResult verify(String reportName, Context context); } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceItem.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceItem.java index bfc46b214ca3..72f4649935f9 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceItem.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceItem.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceMetadata.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceMetadata.java index ad8a044312ef..da042df27a2e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceMetadata.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceMetadata.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceOrigin.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceOrigin.java index b6a752b941ea..564cfe8ded2e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceOrigin.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceOrigin.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceStatus.java index d6df9004d93a..741bb62cec6a 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResourceStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Responsibility.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Responsibility.java index b2ab294d69af..d1068a9c4eb7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Responsibility.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Responsibility.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.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * A class represent the customer responsibility. */ -@Fluent +@Immutable public final class Responsibility implements JsonSerializable { /* * The id of the customer responsibility. @@ -90,7 +90,7 @@ public final class Responsibility implements JsonSerializable { /** * Creates an instance of Responsibility class. */ - public Responsibility() { + private Responsibility() { } /** @@ -165,17 +165,6 @@ public Integer failedResourceCount() { return this.failedResourceCount; } - /** - * Set the failedResourceCount property: The count of all failed resources. - * - * @param failedResourceCount the failedResourceCount value to set. - * @return the Responsibility object itself. - */ - public Responsibility withFailedResourceCount(Integer failedResourceCount) { - this.failedResourceCount = failedResourceCount; - return this; - } - /** * Get the totalResourceCount property: The count of all resources. * @@ -185,17 +174,6 @@ public Integer totalResourceCount() { return this.totalResourceCount; } - /** - * Set the totalResourceCount property: The count of all resources. - * - * @param totalResourceCount the totalResourceCount value to set. - * @return the Responsibility object itself. - */ - public Responsibility withTotalResourceCount(Integer totalResourceCount) { - this.totalResourceCount = totalResourceCount; - return this; - } - /** * Get the resourceList property: List of resource. * @@ -241,17 +219,6 @@ public List evidenceFiles() { return this.evidenceFiles; } - /** - * Set the evidenceFiles property: List of evidence file url. - * - * @param evidenceFiles the evidenceFiles value to set. - * @return the Responsibility object itself. - */ - public Responsibility withEvidenceFiles(List evidenceFiles) { - this.evidenceFiles = evidenceFiles; - return this; - } - /** * Validates the instance. * diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityEnvironment.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityEnvironment.java index e5f61430c153..7462132cc689 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityEnvironment.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityEnvironment.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityResource.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityResource.java index dcc42edb20d9..af18e8562b08 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityResource.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityResource.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.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * A class represent the resource. */ -@Fluent +@Immutable public final class ResponsibilityResource implements JsonSerializable { /* * The Id of the resource. @@ -57,7 +57,7 @@ public final class ResponsibilityResource implements JsonSerializable recommendationIds() { return this.recommendationIds; } - /** - * Set the recommendationIds property: List of recommendation id. - * - * @param recommendationIds the recommendationIds value to set. - * @return the ResponsibilityResource object itself. - */ - public ResponsibilityResource withRecommendationIds(List recommendationIds) { - this.recommendationIds = recommendationIds; - return this; - } - /** * Validates the instance. * diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilitySeverity.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilitySeverity.java index c262e0db0f9e..2d94dcd5ea7d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilitySeverity.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilitySeverity.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityStatus.java index 8e42809d4e02..f219daae7bbc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityType.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityType.java index 558c9558a65b..564c502f16b5 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityType.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ResponsibilityType.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Result.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Result.java index 2b2f6361c0c0..400a7a41d372 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Result.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Result.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Rule.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Rule.java index c0a7cb24d69e..aeeffe03e3c9 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Rule.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Rule.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingAnswer.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingAnswer.java index ba3ca226859c..f4752aafe8b0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingAnswer.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingAnswer.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationProperties.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationProperties.java index ca3b3c7f98c2..62fa76fb5a4b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationProperties.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationProperties.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResource.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResource.java index c2a0504551d5..b0096502e197 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResource.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurationResource.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurations.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurations.java index cff8690518be..c2c1ab405374 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurations.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingConfigurations.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.models; @@ -13,31 +13,6 @@ * Resource collection API of ScopingConfigurations. */ public interface ScopingConfigurations { - /** - * 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}. - */ - 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}. - */ - PagedIterable list(String reportName, Context context); - /** * Get the AppComplianceAutomation scoping configuration of the specific report. * @@ -69,7 +44,7 @@ Response getWithResponse(String reportName, String * * @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. @@ -78,14 +53,14 @@ Response getWithResponse(String reportName, String * @return the AppComplianceAutomation scoping configuration of the specific report along with {@link Response}. */ 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. @@ -93,7 +68,7 @@ Response createOrUpdateWithResponse(String reportN * @return the AppComplianceAutomation scoping configuration of the specific report. */ ScopingConfigurationResource createOrUpdate(String reportName, String scopingConfigurationName, - ScopingConfigurationResourceInner properties); + ScopingConfigurationResourceInner parameters); /** * Clean the AppComplianceAutomation scoping configuration of the specific report. @@ -119,4 +94,29 @@ Response deleteByResourceGroupWithResponse(String reportName, String scopi * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void deleteByResourceGroup(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}. + */ + 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}. + */ + PagedIterable list(String reportName, Context context); } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestion.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestion.java index e0bcfe6de1d3..798fc5562442 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestion.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestion.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestions.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestions.java index 590f16021a1b..d3f17ca637da 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestions.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/ScopingQuestions.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SendAllEvents.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SendAllEvents.java index 539f75eb6696..ec9eb485a7af 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SendAllEvents.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SendAllEvents.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotDownloadRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotDownloadRequest.java index 01efe56a7711..090f0edb2674 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotDownloadRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotDownloadRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotProperties.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotProperties.java index 65c828728842..5963edbf0a53 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotProperties.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SnapshotProperties.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.models; @@ -53,7 +53,7 @@ public final class SnapshotProperties implements JsonSerializable list(String reportName); + Response getWithResponse(String reportName, String snapshotName, Context context); /** - * Get the AppComplianceAutomation snapshot list. + * Get the AppComplianceAutomation snapshot and its properties. * * @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. + * @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 list as paginated response with {@link PagedIterable}. + * @return the AppComplianceAutomation snapshot and its properties. */ - PagedIterable list(String reportName, String skipToken, Integer top, String select, String filter, - String orderby, String offerGuid, String reportCreatorTenantId, Context context); + SnapshotResource get(String reportName, String snapshotName); /** - * Get the AppComplianceAutomation snapshot and its properties. + * Get the AppComplianceAutomation snapshot list. * * @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}. + * @return the AppComplianceAutomation snapshot list as paginated response with {@link PagedIterable}. */ - Response getWithResponse(String reportName, String snapshotName, Context context); + PagedIterable list(String reportName); /** - * Get the AppComplianceAutomation snapshot and its properties. + * Get the AppComplianceAutomation snapshot list. * * @param reportName Report Name. - * @param snapshotName Snapshot 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 snapshot and its properties. + * @return the AppComplianceAutomation snapshot list as paginated response with {@link PagedIterable}. */ - SnapshotResource get(String reportName, String snapshotName); + PagedIterable list(String reportName, String skipToken, Integer top, String select, String filter, + String orderby, String offerGuid, String reportCreatorTenantId, Context context); /** * Download compliance needs from snapshot, like: Compliance Report, Resource List. @@ -78,7 +78,7 @@ PagedIterable list(String reportName, String skipToken, Intege * @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. */ DownloadResponse download(String reportName, String snapshotName, SnapshotDownloadRequest body); @@ -92,7 +92,7 @@ PagedIterable list(String reportName, String skipToken, Intege * @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. */ DownloadResponse download(String reportName, String snapshotName, SnapshotDownloadRequest body, Context context); } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StatusItem.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StatusItem.java index c068e48e82fd..a4f162e21da1 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StatusItem.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StatusItem.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StorageInfo.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StorageInfo.java index c009148422cb..cfc365a42839 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StorageInfo.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/StorageInfo.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordRequest.java index 9355f5be02d2..edac37a121e8 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordResponse.java index 18f1fe209a04..c67e44f57fbd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/SyncCertRecordResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationProperty.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationProperty.java index aa1e1d4b221f..0ad63746a096 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationProperty.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationProperty.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationRequest.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationRequest.java index d9843e1f086f..3a0203ad2ab1 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationRequest.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationRequest.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationResponse.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationResponse.java index 0e31ad64f82d..be9968d16b55 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationResponse.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/TriggerEvaluationResponse.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/UpdateWebhookKey.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/UpdateWebhookKey.java index a61e76e8322d..a0119b1a24ef 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/UpdateWebhookKey.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/UpdateWebhookKey.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookKeyEnabled.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookKeyEnabled.java index cc94a8fd59d2..842db9798733 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookKeyEnabled.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookKeyEnabled.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookProperties.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookProperties.java index 256692b6d2f7..b8377d8457e7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookProperties.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookProperties.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResource.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResource.java index 6148d2ccb529..ab50fe67d1cb 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResource.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResource.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourcePatch.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourcePatch.java index 990cbe1e0537..411f3af47f77 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourcePatch.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookResourcePatch.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookStatus.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookStatus.java index 6dd0307d7309..2f6b5d3555a5 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookStatus.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/WebhookStatus.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.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Webhooks.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Webhooks.java index 04fcd6ef8b6d..ac0d336d8fbb 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Webhooks.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/Webhooks.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.models; @@ -13,38 +13,6 @@ * Resource collection API of Webhooks. */ public interface Webhooks { - /** - * 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}. - */ - 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}. - */ - 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. * @@ -75,7 +43,7 @@ PagedIterable list(String reportName, String skipToken, Integer * * @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. @@ -83,20 +51,20 @@ PagedIterable list(String reportName, String skipToken, Integer * @return a class represent an AppComplianceAutomation webhook resource along with {@link Response}. */ 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. */ - WebhookResource createOrUpdate(String reportName, String webhookName, WebhookResourceInner properties); + WebhookResource createOrUpdate(String reportName, String webhookName, WebhookResourceInner parameters); /** * Update an exiting AppComplianceAutomation webhook. @@ -149,4 +117,36 @@ Response updateWithResponse(String reportName, String webhookNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void deleteByResourceGroup(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}. + */ + 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}. + */ + 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/models/package-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/package-info.java index a8d78cbfefe2..d2332f8d8fd2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/models/package-info.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/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 data models for AppComplianceAutomationClient. + * Package containing the data models for AppComplianceAutomation. * App Compliance Automation Tool for Microsoft 365 API spec. */ package com.azure.resourcemanager.appcomplianceautomation.models; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/package-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/package-info.java index 4ce090e0036f..5a10f6d10aa3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/package-info.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/com/azure/resourcemanager/appcomplianceautomation/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 classes for AppComplianceAutomationClient. + * Package containing the classes for AppComplianceAutomation. * App Compliance Automation Tool for Microsoft 365 API spec. */ package com.azure.resourcemanager.appcomplianceautomation; diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java index f70ce87019b7..cdcc4c41b519 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/main/java/module-info.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. module com.azure.resourcemanager.appcomplianceautomation { requires transitive com.azure.core.management; @@ -8,6 +8,7 @@ exports com.azure.resourcemanager.appcomplianceautomation.fluent; exports com.azure.resourcemanager.appcomplianceautomation.fluent.models; exports com.azure.resourcemanager.appcomplianceautomation.models; - opens com.azure.resourcemanager.appcomplianceautomation.fluent.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.appcomplianceautomation.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.appcomplianceautomation.fluent.models to com.azure.core; + opens com.azure.resourcemanager.appcomplianceautomation.models to com.azure.core; + opens com.azure.resourcemanager.appcomplianceautomation.implementation.models to com.azure.core; } \ No newline at end of file diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceCreateOrUpdateSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceCreateOrUpdateSamples.java index 4b8aa7677108..d257bbc1fc06 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceCreateOrUpdateSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceCreateOrUpdateSamples.java @@ -1,17 +1,20 @@ // 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.generated; +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. @@ -21,7 +24,11 @@ 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); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDeleteSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDeleteSamples.java index 60e29d424ae0..d06c294b2498 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDeleteSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDeleteSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDownloadSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDownloadSamples.java index a1326df54bca..00636e6513e4 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDownloadSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceDownloadSamples.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.generated; @@ -10,8 +10,8 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceGetSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceGetSamples.java index 321f58d83e98..a5ffa18a99c1 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceGetSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceGetSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceListByReportSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceListByReportSamples.java index 43a3afe03f26..6b35a72ff4e2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceListByReportSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceListByReportSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListSamples.java index 02d8bc0ac70f..a2ba225eda1c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilitySamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilitySamples.java index b4fd9bc0c847..2332ef268874 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilitySamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilitySamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountSamples.java index 18772369dbde..a330cb9c7425 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusSamples.java index fd391ceb2f80..517ca76a319b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsSamples.java index 012d43908a6f..51c114ea3316 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. @@ -22,19 +21,4 @@ public static void listInUseStorageAccountsWithSubscriptions( 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); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardSamples.java index 1416b8ddc2f6..82a8b1fac35a 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationSamples.java index a58bddd172cb..0bfdb4af4204 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationSamples.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.generated; @@ -10,8 +10,8 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCheckNameAvailabilitySamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCheckNameAvailabilitySamples.java new file mode 100644 index 000000000000..19dec5504943 --- /dev/null +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCheckNameAvailabilitySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.appcomplianceautomation.generated; + +/** + * 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); + } +} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCreateOrUpdateSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCreateOrUpdateSamples.java index c04e7a95ebfd..e11804b189c0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCreateOrUpdateSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportCreateOrUpdateSamples.java @@ -1,17 +1,24 @@ // 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.generated; +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. @@ -20,6 +27,19 @@ 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); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportDeleteSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportDeleteSamples.java index 8cad8e36d263..3b9a73de8da8 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportDeleteSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportDeleteSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixSamples.java index 4edc9fd23245..d4f54acd7bab 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetSamples.java index b41f19819c4c..fa3dea1f1c99 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetScopingQuestionsSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetScopingQuestionsSamples.java index c1af0ea22035..40e60305e8d7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetScopingQuestionsSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportGetScopingQuestionsSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportListSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportListSamples.java index 19df0b476a91..02f6c56909dd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportListSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportListSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportNestedResourceCheckNameAvailabilitySamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportNestedResourceCheckNameAvailabilitySamples.java deleted file mode 100644 index a09db054b2a0..000000000000 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportNestedResourceCheckNameAvailabilitySamples.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appcomplianceautomation.generated; - -/** - * 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); - } -} diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportSyncCertRecordSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportSyncCertRecordSamples.java index 91a6293a11f5..5fb61866cc52 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportSyncCertRecordSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportSyncCertRecordSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportUpdateSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportUpdateSamples.java index b74cfa9b01ef..10068db393f0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportUpdateSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportUpdateSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerifySamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerifySamples.java index b36a3974b881..b267ee161f00 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerifySamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerifySamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationCreateOrUpdateSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationCreateOrUpdateSamples.java index bc45e748d029..236f9311697e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationCreateOrUpdateSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationCreateOrUpdateSamples.java @@ -1,17 +1,21 @@ // 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.generated; +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. @@ -21,6 +25,12 @@ 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); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationDeleteSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationDeleteSamples.java index bea429fc003a..16abba03aa04 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationDeleteSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationDeleteSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationGetSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationGetSamples.java index dd0c6527a6f4..9630ce814856 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationGetSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationGetSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationListSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationListSamples.java index ec212d15788b..273b439c458e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationListSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationListSamples.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.generated; @@ -9,9 +9,8 @@ */ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadSamples.java index 4fdd1d37607e..b2ca52181193 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadSamples.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.generated; @@ -9,39 +9,8 @@ */ 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. @@ -52,19 +21,4 @@ public static void snapshotDownloadComplianceDetailedPdfReport( 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); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotGetSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotGetSamples.java index 9b37823fa3e5..8acc2dffcb5e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotGetSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotGetSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotListSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotListSamples.java index 29be73dfc693..fadad00ca464 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotListSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotListSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookCreateOrUpdateSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookCreateOrUpdateSamples.java index 113a36d63711..3c6d3f0da125 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookCreateOrUpdateSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookCreateOrUpdateSamples.java @@ -1,17 +1,26 @@ // 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.generated; +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. @@ -21,6 +30,15 @@ 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); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookDeleteSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookDeleteSamples.java index 39852c013cc3..5436b0d472ef 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookDeleteSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookDeleteSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookGetSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookGetSamples.java index 479b698bb3f6..94934a554857 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookGetSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookGetSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookListSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookListSamples.java index 45161b82d0d8..791021bda8b7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookListSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookListSamples.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.generated; @@ -10,8 +10,7 @@ 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. diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookUpdateSamples.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookUpdateSamples.java index 895bead5f659..d0b29ad5d5e7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookUpdateSamples.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/samples/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhookUpdateSamples.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.generated; @@ -10,8 +10,7 @@ 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/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.java index a22d9ceefadc..4127bccce89d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CategoryTests.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.generated; @@ -11,13 +11,7 @@ public final class CategoryTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Category model = BinaryData.fromString( - "{\"categoryName\":\"ygdvwv\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{\"controlFamilyName\":\"wxrt\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"xg\",\"controlName\":\"agvrvmnpkuk\",\"controlFullName\":\"i\",\"controlDescription\":\"blxgwimf\",\"controlDescriptionHyperLink\":\"hfjx\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{}]},{\"controlId\":\"foqreyfkzik\",\"controlName\":\"aw\",\"controlFullName\":\"a\",\"controlDescription\":\"xwczelpcire\",\"controlDescriptionHyperLink\":\"feaenwab\",\"controlStatus\":\"Passed\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"dxbjhwuaanozj\",\"controlName\":\"ph\",\"controlFullName\":\"ulpjr\",\"controlDescription\":\"ag\",\"controlDescriptionHyperLink\":\"vimjwos\",\"controlStatus\":\"Passed\",\"responsibilities\":[{}]}]},{\"controlFamilyName\":\"skfc\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"ekkezzikhlyfjh\",\"controlName\":\"qgge\",\"controlFullName\":\"unygaeqid\",\"controlDescription\":\"fatpxllrxcyjmoa\",\"controlDescriptionHyperLink\":\"uvarmywdmjsjq\",\"controlStatus\":\"Failed\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"xrwlyc\",\"controlName\":\"uhpkxkgymar\",\"controlFullName\":\"n\",\"controlDescription\":\"xqugjhkycubedd\",\"controlDescriptionHyperLink\":\"sofwqmzqalkrmnji\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{}]},{\"controlId\":\"qudf\",\"controlName\":\"yxbaaabjyvayf\",\"controlFullName\":\"m\",\"controlDescription\":\"rtuzqogs\",\"controlDescriptionHyperLink\":\"nevfdnw\",\"controlStatus\":\"Failed\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"syyceuzsoibjud\",\"controlName\":\"rx\",\"controlFullName\":\"thzvaytdwkqbrqu\",\"controlDescription\":\"axhexiilivp\",\"controlDescriptionHyperLink\":\"iirqtd\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{},{},{}]}]},{\"controlFamilyName\":\"uzf\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"xrxxlep\",\"controlName\":\"amxjezwlw\",\"controlFullName\":\"xuqlcvydypat\",\"controlDescription\":\"oa\",\"controlDescriptionHyperLink\":\"kniod\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{}]},{\"controlId\":\"nuj\",\"controlName\":\"mmsbvdkcrodtjin\",\"controlFullName\":\"jlfltkacjvefkdlf\",\"controlDescription\":\"kggkfpa\",\"controlDescriptionHyperLink\":\"owpulpq\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{}]}]}]}") + "{\"categoryName\":\"cdntnevfiwjmy\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{\"controlFamilyName\":\"s\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{\"controlId\":\"iofz\",\"controlName\":\"qsemwabne\",\"controlFullName\":\"hhszh\",\"controlDescription\":\"plvwiwubmwmbes\",\"controlDescriptionHyperLink\":\"nkww\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{}]},{\"controlId\":\"cxogaokonzm\",\"controlName\":\"ikvmkqzeqqk\",\"controlFullName\":\"tfz\",\"controlDescription\":\"hhvh\",\"controlDescriptionHyperLink\":\"r\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{},{},{}]},{\"controlId\":\"bdagxt\",\"controlName\":\"qdxbxwa\",\"controlFullName\":\"ogqxndlkzgxhuri\",\"controlDescription\":\"bpodxunkbebxm\",\"controlDescriptionHyperLink\":\"yyntwl\",\"controlStatus\":\"Failed\",\"responsibilities\":[{},{}]}]},{\"controlFamilyName\":\"ievseotgqrllt\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{\"controlId\":\"wzizxbmpgcjefuzm\",\"controlName\":\"pbttdum\",\"controlFullName\":\"p\",\"controlDescription\":\"ebmnzbtbhjpglk\",\"controlDescriptionHyperLink\":\"ohdneuel\",\"controlStatus\":\"Passed\",\"responsibilities\":[{},{},{},{}]},{\"controlId\":\"htozfikdow\",\"controlName\":\"uuvxz\",\"controlFullName\":\"lvithhqzonosgg\",\"controlDescription\":\"c\",\"controlDescriptionHyperLink\":\"fwdsj\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{},{}]},{\"controlId\":\"tiiswacffg\",\"controlName\":\"zzewkfvhqcrai\",\"controlFullName\":\"pnppfuf\",\"controlDescription\":\"wdmhdlxyjrxs\",\"controlDescriptionHyperLink\":\"afcnih\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{},{}]}]}]}") .toObject(Category.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Category model = new Category(); - model = BinaryData.fromObject(model).toObject(Category.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.java index 84bc578766dd..ff40c8ef471e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CertSyncRecordTests.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.generated; @@ -14,30 +14,29 @@ public final class CertSyncRecordTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CertSyncRecord model = BinaryData.fromString( - "{\"offerGuid\":\"naamde\",\"certificationStatus\":\"eh\",\"ingestionStatus\":\"qsc\",\"controls\":[{\"controlId\":\"vhezrkgqhcj\",\"controlStatus\":\"fovgmkqsleyyvxy\"},{\"controlId\":\"pkc\",\"controlStatus\":\"tpngjcrcczsqpjh\"},{\"controlId\":\"daj\",\"controlStatus\":\"ysou\"}]}") + "{\"offerGuid\":\"bybkzgcwrwclxx\",\"certificationStatus\":\"ljdousk\",\"ingestionStatus\":\"vkocrcjdkwtn\",\"controls\":[{\"controlId\":\"jbiksqrglssai\",\"controlStatus\":\"p\"},{\"controlId\":\"nzl\",\"controlStatus\":\"fmppe\"},{\"controlId\":\"vmgxsab\",\"controlStatus\":\"qduujitcjczdz\"},{\"controlId\":\"ndhkrw\",\"controlStatus\":\"appd\"}]}") .toObject(CertSyncRecord.class); - Assertions.assertEquals("naamde", model.offerGuid()); - Assertions.assertEquals("eh", model.certificationStatus()); - Assertions.assertEquals("qsc", model.ingestionStatus()); - Assertions.assertEquals("vhezrkgqhcj", model.controls().get(0).controlId()); - Assertions.assertEquals("fovgmkqsleyyvxy", model.controls().get(0).controlStatus()); + Assertions.assertEquals("bybkzgcwrwclxx", model.offerGuid()); + Assertions.assertEquals("ljdousk", model.certificationStatus()); + Assertions.assertEquals("vkocrcjdkwtn", model.ingestionStatus()); + Assertions.assertEquals("jbiksqrglssai", model.controls().get(0).controlId()); + Assertions.assertEquals("p", model.controls().get(0).controlStatus()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CertSyncRecord model - = new CertSyncRecord().withOfferGuid("naamde") - .withCertificationStatus("eh") - .withIngestionStatus("qsc") - .withControls(Arrays.asList( - new ControlSyncRecord().withControlId("vhezrkgqhcj").withControlStatus("fovgmkqsleyyvxy"), - new ControlSyncRecord().withControlId("pkc").withControlStatus("tpngjcrcczsqpjh"), - new ControlSyncRecord().withControlId("daj").withControlStatus("ysou"))); + CertSyncRecord model = new CertSyncRecord().withOfferGuid("bybkzgcwrwclxx") + .withCertificationStatus("ljdousk") + .withIngestionStatus("vkocrcjdkwtn") + .withControls(Arrays.asList(new ControlSyncRecord().withControlId("jbiksqrglssai").withControlStatus("p"), + new ControlSyncRecord().withControlId("nzl").withControlStatus("fmppe"), + new ControlSyncRecord().withControlId("vmgxsab").withControlStatus("qduujitcjczdz"), + new ControlSyncRecord().withControlId("ndhkrw").withControlStatus("appd"))); model = BinaryData.fromObject(model).toObject(CertSyncRecord.class); - Assertions.assertEquals("naamde", model.offerGuid()); - Assertions.assertEquals("eh", model.certificationStatus()); - Assertions.assertEquals("qsc", model.ingestionStatus()); - Assertions.assertEquals("vhezrkgqhcj", model.controls().get(0).controlId()); - Assertions.assertEquals("fovgmkqsleyyvxy", model.controls().get(0).controlStatus()); + Assertions.assertEquals("bybkzgcwrwclxx", model.offerGuid()); + Assertions.assertEquals("ljdousk", model.certificationStatus()); + Assertions.assertEquals("vkocrcjdkwtn", model.ingestionStatus()); + Assertions.assertEquals("jbiksqrglssai", model.controls().get(0).controlId()); + Assertions.assertEquals("p", model.controls().get(0).controlStatus()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.java index 4eeb3992e0ef..e9ce1f96b48c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityRequestTests.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.generated; @@ -11,19 +11,17 @@ public final class CheckNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model - = BinaryData.fromString("{\"name\":\"mhquvgjxp\",\"type\":\"czmehmtzopbsp\"}") - .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("mhquvgjxp", model.name()); - Assertions.assertEquals("czmehmtzopbsp", model.type()); + CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"ebf\",\"type\":\"arbu\"}") + .toObject(CheckNameAvailabilityRequest.class); + Assertions.assertEquals("ebf", model.name()); + Assertions.assertEquals("arbu", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model - = new CheckNameAvailabilityRequest().withName("mhquvgjxp").withType("czmehmtzopbsp"); + CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("ebf").withType("arbu"); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("mhquvgjxp", model.name()); - Assertions.assertEquals("czmehmtzopbsp", model.type()); + Assertions.assertEquals("ebf", model.name()); + Assertions.assertEquals("arbu", model.type()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.java index 4da7aecb37b6..b7d23f245793 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/CheckNameAvailabilityResponseInnerTests.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.generated; @@ -13,10 +13,10 @@ public final class CheckNameAvailabilityResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckNameAvailabilityResponseInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"gsybbejhp\"}") + = BinaryData.fromString("{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"azzmhjrunmpxt\"}") .toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals(false, model.nameAvailable()); + Assertions.assertEquals(true, model.nameAvailable()); Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("gsybbejhp", model.message()); + Assertions.assertEquals("azzmhjrunmpxt", model.message()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.java index 4fbfe8c86714..4a45ff5df00c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceReportItemTests.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.generated; @@ -11,7 +11,7 @@ public final class ComplianceReportItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ComplianceReportItem model = BinaryData.fromString( - "{\"categoryName\":\"kvi\",\"controlFamilyName\":\"dscwxqupevzhf\",\"controlId\":\"otxhojujby\",\"controlName\":\"lmcuvhixb\",\"controlStatus\":\"Failed\",\"responsibilityTitle\":\"w\",\"responsibilityDescription\":\"lrcoolsttpki\",\"resourceId\":\"kbnujr\",\"resourceType\":\"vtylbfpncu\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-02-21T18:31:28Z\"}") + "{\"categoryName\":\"mnnrwr\",\"controlFamilyName\":\"ork\",\"controlId\":\"lywjhh\",\"controlName\":\"nhxmsi\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"iloxggdufiq\",\"responsibilityDescription\":\"ieuzaofjchvcyyy\",\"resourceId\":\"gdotcubiipuipwo\",\"resourceType\":\"nmacj\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-10-27T20:39:18Z\"}") .toObject(ComplianceReportItem.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.java index d101e19a22ca..25ef2d937f46 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ComplianceResultTests.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.generated; @@ -11,13 +11,7 @@ public final class ComplianceResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ComplianceResult model = BinaryData.fromString( - "{\"complianceName\":\"xiy\",\"categories\":[{\"categoryName\":\"zynkedya\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{\"controlFamilyName\":\"mibzyhwitsmypyyn\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{},{},{}]},{\"controlFamilyName\":\"nzgmwznmabik\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{}]},{\"controlFamilyName\":\"hxbld\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{},{},{}]}]},{\"categoryName\":\"kdmtncvokotll\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{\"controlFamilyName\":\"y\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{}]},{\"controlFamilyName\":\"tdtbnnhadooc\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{},{},{},{}]}]},{\"categoryName\":\"hnvpamqgxq\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{\"controlFamilyName\":\"ywggx\",\"controlFamilyStatus\":\"Passed\",\"controls\":[{},{}]}]},{\"categoryName\":\"melwuipiccjz\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{\"controlFamilyName\":\"vc\",\"controlFamilyStatus\":\"Passed\",\"controls\":[{},{}]},{\"controlFamilyName\":\"rnxxmueed\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{}]},{\"controlFamilyName\":\"tkwqqtchealm\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{}]}]}]}") + "{\"complianceName\":\"ybn\",\"categories\":[{\"categoryName\":\"gdrjervnaenqpe\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{\"controlFamilyName\":\"gmifthnzd\",\"controlFamilyStatus\":\"Passed\",\"controls\":[{},{},{}]},{\"controlFamilyName\":\"ayqigynduhav\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{},{}]}]},{\"categoryName\":\"umaq\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{\"controlFamilyName\":\"duiertgcc\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{},{}]},{\"controlFamilyName\":\"psslqlfmm\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{},{},{}]}]},{\"categoryName\":\"zpswiydmc\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{\"controlFamilyName\":\"ss\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{}]},{\"controlFamilyName\":\"vdfznudaodvxzb\",\"controlFamilyStatus\":\"NotApplicable\",\"controls\":[{},{},{},{}]},{\"controlFamilyName\":\"pstdbhhxsrzd\",\"controlFamilyStatus\":\"Passed\",\"controls\":[{}]}]}]}") .toObject(ComplianceResult.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ComplianceResult model = new ComplianceResult(); - model = BinaryData.fromObject(model).toObject(ComplianceResult.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.java index 08fc216f43ac..4eeccbc8d9cd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlFamilyTests.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.generated; @@ -11,13 +11,7 @@ public final class ControlFamilyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ControlFamily model = BinaryData.fromString( - "{\"controlFamilyName\":\"xkqjnsjervt\",\"controlFamilyStatus\":\"Failed\",\"controls\":[{\"controlId\":\"sz\",\"controlName\":\"mpsbzkfzbeyv\",\"controlFullName\":\"qi\",\"controlDescription\":\"invkjjxdxrbuu\",\"controlDescriptionHyperLink\":\"clewyhm\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{\"responsibilityId\":\"zpof\",\"responsibilityTitle\":\"ckw\",\"responsibilityDescription\":\"zqwhxxbuyqaxzfeq\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"General\",\"failedResourceCount\":621148688,\"totalResourceCount\":1270431726,\"resourceList\":[{},{},{}],\"recommendationList\":[{},{}],\"guidance\":\"ncwsob\",\"justification\":\"csdbnwdcfhuc\",\"evidenceFiles\":[\"fuvglsbjjca\",\"vxb\",\"t\"]}]},{\"controlId\":\"dut\",\"controlName\":\"ormrlxqtvcofudfl\",\"controlFullName\":\"gj\",\"controlDescription\":\"gdknnqv\",\"controlDescriptionHyperLink\":\"znqntoru\",\"controlStatus\":\"PendingApproval\",\"responsibilities\":[{\"responsibilityId\":\"mkycgra\",\"responsibilityTitle\":\"juetaebur\",\"responsibilityDescription\":\"dmovsm\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"PendingApproval\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":1154493453,\"totalResourceCount\":1641212216,\"resourceList\":[{}],\"recommendationList\":[{},{}],\"guidance\":\"u\",\"justification\":\"jmqlgkfb\",\"evidenceFiles\":[\"oaongbjc\",\"tujitcjedft\"]}]}]}") + "{\"controlFamilyName\":\"edgfbcvkcvq\",\"controlFamilyStatus\":\"PendingApproval\",\"controls\":[{\"controlId\":\"cvdrhvoodsot\",\"controlName\":\"bzdopcj\",\"controlFullName\":\"nhdldwmgxcx\",\"controlDescription\":\"lpmutwuoegrpkhj\",\"controlDescriptionHyperLink\":\"iyq\",\"controlStatus\":\"Failed\",\"responsibilities\":[{\"responsibilityId\":\"dggkzzlvmbmpa\",\"responsibilityTitle\":\"odfvuefywsbp\",\"responsibilityDescription\":\"mwyhr\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":196079656,\"totalResourceCount\":369562825,\"resourceList\":[{},{},{}],\"recommendationList\":[{},{},{}],\"guidance\":\"mnubexkpzksmond\",\"justification\":\"quxvypomgkop\",\"evidenceFiles\":[\"ojvpa\",\"qgxy\",\"mocmbqfqvmk\",\"xozap\"]},{\"responsibilityId\":\"elxprglyatddck\",\"responsibilityTitle\":\"cuejrjxgci\",\"responsibilityDescription\":\"brh\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"General\",\"failedResourceCount\":200151668,\"totalResourceCount\":5318116,\"resourceList\":[{}],\"recommendationList\":[{}],\"guidance\":\"ibahwflus\",\"justification\":\"tmhrkwofyyvoqacp\",\"evidenceFiles\":[\"pbtg\",\"wbwo\",\"nwashrtd\"]},{\"responsibilityId\":\"cnqxwbpokulpi\",\"responsibilityTitle\":\"waasip\",\"responsibilityDescription\":\"iobyu\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"PendingApproval\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":1951399012,\"totalResourceCount\":1475911208,\"resourceList\":[{},{},{}],\"recommendationList\":[{},{},{},{}],\"guidance\":\"utauv\",\"justification\":\"tkuwhhmhykojo\",\"evidenceFiles\":[\"nn\",\"lpichk\"]},{\"responsibilityId\":\"mkcdyhbpkkpwdre\",\"responsibilityTitle\":\"ovvqfovljxywsu\",\"responsibilityDescription\":\"yrs\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"NotApplicable\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":30215371,\"totalResourceCount\":409743205,\"resourceList\":[{}],\"recommendationList\":[{}],\"guidance\":\"nzar\",\"justification\":\"lquuijfqkacewii\",\"evidenceFiles\":[\"ubjibww\",\"f\"]}]},{\"controlId\":\"hqkvpuvksgplsak\",\"controlName\":\"n\",\"controlFullName\":\"ynl\",\"controlDescription\":\"huopxodlqiynto\",\"controlDescriptionHyperLink\":\"ihleos\",\"controlStatus\":\"Passed\",\"responsibilities\":[{\"responsibilityId\":\"slyzrpzbchckqq\",\"responsibilityTitle\":\"ioxiysuiizyn\",\"responsibilityDescription\":\"dy\",\"responsibilityType\":\"Manual\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":556092423,\"totalResourceCount\":891981372,\"resourceList\":[{},{},{}],\"recommendationList\":[{},{},{}],\"guidance\":\"ypyynpcdpumnzg\",\"justification\":\"z\",\"evidenceFiles\":[\"biknsorgjhxbld\",\"lwwrl\"]},{\"responsibilityId\":\"m\",\"responsibilityTitle\":\"cvokotllxdyhg\",\"responsibilityDescription\":\"ocogj\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":1025427971,\"totalResourceCount\":519437261,\"resourceList\":[{}],\"recommendationList\":[{},{}],\"guidance\":\"khnvpam\",\"justification\":\"x\",\"evidenceFiles\":[\"ezikywggxkal\"]},{\"responsibilityId\":\"tmelw\",\"responsibilityTitle\":\"piccjzkzivgv\",\"responsibilityDescription\":\"nayrhyrnxxmueedn\",\"responsibilityType\":\"Manual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"NotApplicable\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":2053203757,\"totalResourceCount\":472289460,\"resourceList\":[{}],\"recommendationList\":[{},{},{}],\"guidance\":\"mtdaa\",\"justification\":\"dvwvgpio\",\"evidenceFiles\":[\"xrtfudxep\"]},{\"responsibilityId\":\"yqagvrvm\",\"responsibilityTitle\":\"k\",\"responsibilityDescription\":\"ghimdblx\",\"responsibilityType\":\"ScopedManual\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"Failed\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":510557599,\"totalResourceCount\":1675220188,\"resourceList\":[{}],\"recommendationList\":[{},{},{},{}],\"guidance\":\"oqreyfkzikfjawn\",\"justification\":\"ivx\",\"evidenceFiles\":[\"elpcirelsfeaenwa\"]}]},{\"controlId\":\"atklddxbjhwuaa\",\"controlName\":\"zjosp\",\"controlFullName\":\"oulpjrv\",\"controlDescription\":\"glrvimjwosytxi\",\"controlDescriptionHyperLink\":\"skfc\",\"controlStatus\":\"Failed\",\"responsibilities\":[{\"responsibilityId\":\"ekkezzikhlyfjh\",\"responsibilityTitle\":\"qgge\",\"responsibilityDescription\":\"unygaeqid\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"NotApplicable\",\"responsibilityEnvironment\":\"Azure\",\"failedResourceCount\":1652546958,\"totalResourceCount\":1888741717,\"resourceList\":[{},{},{}],\"recommendationList\":[{}],\"guidance\":\"su\",\"justification\":\"r\",\"evidenceFiles\":[\"dmjsjqb\",\"hhyxxrw\",\"yc\",\"duhpk\"]},{\"responsibilityId\":\"gymare\",\"responsibilityTitle\":\"ajxq\",\"responsibilityDescription\":\"jhkycub\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"Azure\",\"failedResourceCount\":879645241,\"totalResourceCount\":761384571,\"resourceList\":[{}],\"recommendationList\":[{},{}],\"guidance\":\"njijpxacqqudf\",\"justification\":\"yxbaaabjyvayf\",\"evidenceFiles\":[\"rzrtuzqogsex\"]},{\"responsibilityId\":\"vfdnwnwmewzsyyce\",\"responsibilityTitle\":\"soibjudpfrx\",\"responsibilityDescription\":\"thzvaytdwkqbrqu\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"PendingApproval\",\"responsibilityEnvironment\":\"Azure\",\"failedResourceCount\":2120830890,\"totalResourceCount\":1161443131,\"resourceList\":[{},{},{}],\"recommendationList\":[{},{}],\"guidance\":\"q\",\"justification\":\"qoaxoruzfgs\",\"evidenceFiles\":[\"fxrxxle\",\"tramxjez\"]},{\"responsibilityId\":\"wnwxuqlcvyd\",\"responsibilityTitle\":\"atdooaojkniod\",\"responsibilityDescription\":\"oebwnujhemms\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"Failed\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":1740728179,\"totalResourceCount\":321367930,\"resourceList\":[{},{},{},{}],\"recommendationList\":[{},{}],\"guidance\":\"tkacj\",\"justification\":\"f\",\"evidenceFiles\":[\"foakgg\",\"fpagaowpulp\"]}]}]}") .toObject(ControlFamily.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlFamily model = new ControlFamily(); - model = BinaryData.fromObject(model).toObject(ControlFamily.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.java index 5c5946b50b53..4c19e0420ecf 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlSyncRecordTests.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.generated; @@ -11,17 +11,19 @@ public final class ControlSyncRecordTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ControlSyncRecord model = BinaryData.fromString("{\"controlId\":\"e\",\"controlStatus\":\"noae\"}") - .toObject(ControlSyncRecord.class); - Assertions.assertEquals("e", model.controlId()); - Assertions.assertEquals("noae", model.controlStatus()); + ControlSyncRecord model + = BinaryData.fromString("{\"controlId\":\"dkvwrwjfe\",\"controlStatus\":\"nhutjeltmrldhugj\"}") + .toObject(ControlSyncRecord.class); + Assertions.assertEquals("dkvwrwjfe", model.controlId()); + Assertions.assertEquals("nhutjeltmrldhugj", model.controlStatus()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ControlSyncRecord model = new ControlSyncRecord().withControlId("e").withControlStatus("noae"); + ControlSyncRecord model + = new ControlSyncRecord().withControlId("dkvwrwjfe").withControlStatus("nhutjeltmrldhugj"); model = BinaryData.fromObject(model).toObject(ControlSyncRecord.class); - Assertions.assertEquals("e", model.controlId()); - Assertions.assertEquals("noae", model.controlStatus()); + Assertions.assertEquals("dkvwrwjfe", model.controlId()); + Assertions.assertEquals("nhutjeltmrldhugj", model.controlStatus()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.java index d4b34bb725ef..107ca430d433 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ControlTests.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.generated; @@ -11,13 +11,7 @@ public final class ControlTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Control model = BinaryData.fromString( - "{\"controlId\":\"ae\",\"controlName\":\"ojvdcpzfoqo\",\"controlFullName\":\"cybxa\",\"controlDescription\":\"gszufoxciqopid\",\"controlDescriptionHyperLink\":\"mciodhkhazxkhn\",\"controlStatus\":\"NotApplicable\",\"responsibilities\":[{\"responsibilityId\":\"ntoe\",\"responsibilityTitle\":\"kdwbwhkszz\",\"responsibilityDescription\":\"rvexztvb\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"Failed\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":1573760550,\"totalResourceCount\":1614629592,\"resourceList\":[{\"resourceId\":\"mnguxawqaldsyu\",\"accountId\":\"imerqfobwyznk\",\"resourceType\":\"kutwpf\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-06-27T09:44:07Z\",\"recommendationIds\":[\"dsnfdsdoakgtdl\",\"kkze\",\"dlhewp\",\"sdsttwvog\"]},{\"resourceId\":\"bejdcn\",\"accountId\":\"qmoa\",\"resourceType\":\"fgmjzrwrdgrt\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-09-26T20:30:12Z\",\"recommendationIds\":[\"pbminr\",\"dwoyuhhziuiefoz\",\"hdmsmlmzqhoftrm\"]}],\"recommendationList\":[{\"recommendationId\":\"iahxicsl\",\"recommendationShortName\":\"oqzpiyylha\",\"recommendationSolutions\":[{},{},{}]}],\"guidance\":\"hc\",\"justification\":\"ph\",\"evidenceFiles\":[\"vwitqscyw\",\"ggwoluhczb\",\"emh\",\"i\"]},{\"responsibilityId\":\"brgz\",\"responsibilityTitle\":\"msweypqwdxggicc\",\"responsibilityDescription\":\"xqhuexm\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"General\",\"failedResourceCount\":596743052,\"totalResourceCount\":1168209336,\"resourceList\":[{\"resourceId\":\"ncsdtclusiyp\",\"accountId\":\"fgytguslfeadcyg\",\"resourceType\":\"kyhejhzisxgf\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-05-16T06:26:11Z\",\"recommendationIds\":[\"srp\",\"vu\"]},{\"resourceId\":\"raehtwdwrft\",\"accountId\":\"iby\",\"resourceType\":\"dl\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-04-24T14:19:46Z\",\"recommendationIds\":[\"cstwity\",\"hevxcced\",\"pnmdyodnwzxltjcv\"]}],\"recommendationList\":[{\"recommendationId\":\"iugcxnavvwxq\",\"recommendationShortName\":\"y\",\"recommendationSolutions\":[{},{},{},{}]},{\"recommendationId\":\"owx\",\"recommendationShortName\":\"mdjrkvfgbvfvp\",\"recommendationSolutions\":[{},{}]},{\"recommendationId\":\"acizsjqlhkrr\",\"recommendationShortName\":\"deibqip\",\"recommendationSolutions\":[{},{},{},{}]}],\"guidance\":\"vxndz\",\"justification\":\"krefajpjo\",\"evidenceFiles\":[\"qnyhgb\",\"j\"]}]}") + "{\"controlId\":\"lyls\",\"controlName\":\"k\",\"controlFullName\":\"nsj\",\"controlDescription\":\"vti\",\"controlDescriptionHyperLink\":\"xsdszuempsb\",\"controlStatus\":\"Passed\",\"responsibilities\":[{\"responsibilityId\":\"yvpnqicvinvkjj\",\"responsibilityTitle\":\"xrbuukzclew\",\"responsibilityDescription\":\"mlwpazt\",\"responsibilityType\":\"Manual\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"General\",\"failedResourceCount\":335733577,\"totalResourceCount\":2123947982,\"resourceList\":[{\"resourceId\":\"xbuy\",\"accountId\":\"xzfe\",\"resourceType\":\"tpp\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2020-12-22T04:16:08Z\",\"recommendationIds\":[\"lt\",\"lmncw\"]}],\"recommendationList\":[{\"recommendationId\":\"wcsdbnwdcfhucq\",\"recommendationShortName\":\"fuvglsbjjca\",\"recommendationSolutions\":[{},{}]},{\"recommendationId\":\"vtvudutncormr\",\"recommendationShortName\":\"qtvcofudflvkgj\",\"recommendationSolutions\":[{},{}]},{\"recommendationId\":\"knnqvsaznq\",\"recommendationShortName\":\"orudsgsa\",\"recommendationSolutions\":[{},{},{}]}],\"guidance\":\"c\",\"justification\":\"auwjuetaebu\",\"evidenceFiles\":[\"dmovsm\",\"l\",\"wabm\",\"oefki\"]},{\"responsibilityId\":\"vtpuqujmqlgk\",\"responsibilityTitle\":\"tndoaongbjc\",\"responsibilityDescription\":\"ujitcjedftww\",\"responsibilityType\":\"Manual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"Azure\",\"failedResourceCount\":1248397235,\"totalResourceCount\":2081099839,\"resourceList\":[{\"resourceId\":\"i\",\"accountId\":\"bxarzgszufoxci\",\"resourceType\":\"p\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-11-18T04:50:58Z\",\"recommendationIds\":[\"hkh\",\"zxkhnzbonlwnto\"]},{\"resourceId\":\"okdwb\",\"accountId\":\"kszzcmrvexztv\",\"resourceType\":\"qgsfraoyzkoow\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-08-19T07:22:38Z\",\"recommendationIds\":[\"q\",\"ldsyuuximerqfob\"]},{\"resourceId\":\"znkbykutwpfhpagm\",\"accountId\":\"skdsnfdsdoakg\",\"resourceType\":\"lmkk\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-09-23T16:40:17Z\",\"recommendationIds\":[\"usdsttwv\",\"gvbbejdcng\"]},{\"resourceId\":\"m\",\"accountId\":\"kufgmj\",\"resourceType\":\"wr\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-08-17T18:50:12Z\",\"recommendationIds\":[\"uzkopbminrfd\"]}],\"recommendationList\":[{\"recommendationId\":\"hhziuief\",\"recommendationShortName\":\"bhdmsmlmzqhof\",\"recommendationSolutions\":[{},{},{},{}]},{\"recommendationId\":\"equi\",\"recommendationShortName\":\"xicslfao\",\"recommendationSolutions\":[{},{},{},{}]}],\"guidance\":\"yylhalnswhccsp\",\"justification\":\"aivwitqscywu\",\"evidenceFiles\":[\"oluhczbwemh\",\"i\",\"sbrgz\",\"wmsweypqwd\"]},{\"responsibilityId\":\"gicccnxqhuex\",\"responsibilityTitle\":\"ttlstvlzywemhz\",\"responsibilityDescription\":\"csdtclusiypbs\",\"responsibilityType\":\"Manual\",\"responsibilitySeverity\":\"Low\",\"responsibilityStatus\":\"Passed\",\"responsibilityEnvironment\":\"AWS\",\"failedResourceCount\":1007983036,\"totalResourceCount\":489676883,\"resourceList\":[{\"resourceId\":\"ukyhejhzis\",\"accountId\":\"fpel\",\"resourceType\":\"p\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-01-25T08:59:13Z\",\"recommendationIds\":[\"jzraehtwdwrf\",\"swibyr\"]}],\"recommendationList\":[{\"recommendationId\":\"h\",\"recommendationShortName\":\"fwpracstwi\",\"recommendationSolutions\":[{},{},{}]}],\"guidance\":\"evxccedcp\",\"justification\":\"dyodnwzxltj\",\"evidenceFiles\":[\"hlt\",\"ugcxnavvwxq\",\"byqunyow\"]},{\"responsibilityId\":\"lmdjrkvfgbvfvpdb\",\"responsibilityTitle\":\"acizsjqlhkrr\",\"responsibilityDescription\":\"deibqip\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"NotApplicable\",\"responsibilityEnvironment\":\"Azure\",\"failedResourceCount\":1561704632,\"totalResourceCount\":1680310004,\"resourceList\":[{\"resourceId\":\"jpjorwkqnyhgb\",\"accountId\":\"tjivfxzsjabib\",\"resourceType\":\"stawfsdjpvkv\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-06-18T09:39:42Z\",\"recommendationIds\":[\"kd\",\"ncj\"]},{\"resourceId\":\"udurgkakmokz\",\"accountId\":\"jk\",\"resourceType\":\"fhmouwq\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-12-09T07:33:59Z\",\"recommendationIds\":[\"ebizikayuh\",\"lbjbsyb\",\"qwrvtldgmfp\"]},{\"resourceId\":\"mpipaslthaqfxs\",\"accountId\":\"wutwbdsre\",\"resourceType\":\"drhneuyow\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-08-24T01:49:53Z\",\"recommendationIds\":[\"bi\"]}],\"recommendationList\":[{\"recommendationId\":\"ikpzimejza\",\"recommendationShortName\":\"fzxiavrmb\",\"recommendationSolutions\":[{},{},{},{}]},{\"recommendationId\":\"kixrj\",\"recommendationShortName\":\"irgzp\",\"recommendationSolutions\":[{},{}]},{\"recommendationId\":\"zszrnwoiindfpw\",\"recommendationShortName\":\"ylwbtlhflsjcdhsz\",\"recommendationSolutions\":[{},{},{},{}]}],\"guidance\":\"bgofeljag\",\"justification\":\"mqhldvrii\",\"evidenceFiles\":[\"nalghfkvtvsexso\",\"ueluqhhahhxvrhmz\"]}]}") .toObject(Control.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Control model = new Control(); - model = BinaryData.fromObject(model).toObject(Control.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.java index 5b631a67084d..3948b42890f8 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseComplianceDetailedPdfReportTests.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.generated; @@ -10,7 +10,7 @@ public final class DownloadResponseComplianceDetailedPdfReportTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DownloadResponseComplianceDetailedPdfReport model = BinaryData.fromString("{\"sasUri\":\"fdntwjchrdgoih\"}") + DownloadResponseComplianceDetailedPdfReport model = BinaryData.fromString("{\"sasUri\":\"mblrrilbywd\"}") .toObject(DownloadResponseComplianceDetailedPdfReport.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.java index 3809a7e2b41f..48bc09d80a29 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseCompliancePdfReportTests.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.generated; @@ -10,7 +10,7 @@ public final class DownloadResponseCompliancePdfReportTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DownloadResponseCompliancePdfReport model = BinaryData.fromString("{\"sasUri\":\"htywubxcbihwq\"}") - .toObject(DownloadResponseCompliancePdfReport.class); + DownloadResponseCompliancePdfReport model + = BinaryData.fromString("{\"sasUri\":\"vcimpev\"}").toObject(DownloadResponseCompliancePdfReport.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.java index 6cdb2469f117..a01a2a0dbc3c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/DownloadResponseInnerTests.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.generated; @@ -11,7 +11,7 @@ public final class DownloadResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DownloadResponseInner model = BinaryData.fromString( - "{\"resourceList\":[{\"subscriptionId\":\"dgszywkbirryuzh\",\"resourceGroup\":\"kj\",\"resourceType\":\"rvqqaatj\",\"resourceId\":\"rv\"},{\"subscriptionId\":\"upmfiibfg\",\"resourceGroup\":\"ioolvrwxkvtkkgll\",\"resourceType\":\"jygvjayvbl\",\"resourceId\":\"vkzuhbxvvyhgso\"},{\"subscriptionId\":\"yrqufegxuvwz\",\"resourceGroup\":\"nhlmctlpdng\",\"resourceType\":\"vgbmhr\",\"resourceId\":\"kw\"}],\"complianceReport\":[{\"categoryName\":\"ejvegrhbpnaixex\",\"controlFamilyName\":\"b\",\"controlId\":\"eaxhcexdrrvqahqk\",\"controlName\":\"tpwijnh\",\"controlStatus\":\"NotApplicable\",\"responsibilityTitle\":\"f\",\"responsibilityDescription\":\"xzb\",\"resourceId\":\"oowvrv\",\"resourceType\":\"gjqppy\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-12-06T04:33:25Z\"},{\"categoryName\":\"yhgfipnsx\",\"controlFamilyName\":\"cwaekrrjre\",\"controlId\":\"xt\",\"controlName\":\"umh\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"kkxwslol\",\"responsibilityDescription\":\"pvuzlmv\",\"resourceId\":\"lfktgplcrpwjxe\",\"resourceType\":\"oi\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-03-28T01:41:30Z\"},{\"categoryName\":\"kpnb\",\"controlFamilyName\":\"zejjoqk\",\"controlId\":\"fhsxttaugz\",\"controlName\":\"faazpxdtnkdmkqjj\",\"controlStatus\":\"Failed\",\"responsibilityTitle\":\"nvrk\",\"responsibilityDescription\":\"ou\",\"resourceId\":\"bre\",\"resourceType\":\"aays\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-12-05T00:29:49Z\"}],\"compliancePdfReport\":{\"sasUri\":\"tezlwff\"},\"complianceDetailedPdfReport\":{\"sasUri\":\"kpj\"}}") + "{\"resourceList\":[{\"subscriptionId\":\"ucea\",\"resourceGroup\":\"mczuo\",\"resourceType\":\"jw\",\"resourceId\":\"wqiok\"},{\"subscriptionId\":\"sx\",\"resourceGroup\":\"jmsvpkjp\",\"resourceType\":\"kwcf\",\"resourceId\":\"ljyxgtczhe\"}],\"complianceReport\":[{\"categoryName\":\"dshmkxmaehvbbx\",\"controlFamilyName\":\"iplt\",\"controlId\":\"htba\",\"controlName\":\"gx\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"kpyklyhp\",\"responsibilityDescription\":\"odpvruudlgzib\",\"resourceId\":\"ostgkts\",\"resourceType\":\"dxeclzedqbcvh\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-02-01T15:52:58Z\"},{\"categoryName\":\"kdl\",\"controlFamilyName\":\"qfbumlkxtrqjf\",\"controlId\":\"lmbtxhwgfwsrt\",\"controlName\":\"coezbrhubskh\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"oookkqfq\",\"responsibilityDescription\":\"vleo\",\"resourceId\":\"ml\",\"resourceType\":\"qtqzfavyv\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-02-01T22:04:20Z\"},{\"categoryName\":\"euayjkqabqgzsles\",\"controlFamilyName\":\"bhernntiew\",\"controlId\":\"cv\",\"controlName\":\"uwrbehwagoh\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"kmr\",\"responsibilityDescription\":\"mvvhmxtdrjfuta\",\"resourceId\":\"ebjvewzcjzn\",\"resourceType\":\"cpmguaadraufact\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-09-08T06:19:33Z\"},{\"categoryName\":\"j\",\"controlFamilyName\":\"uxxpshne\",\"controlId\":\"ulfgslqu\",\"controlName\":\"wdlenrdsut\",\"controlStatus\":\"NotApplicable\",\"responsibilityTitle\":\"zpjuohminyfl\",\"responsibilityDescription\":\"rwm\",\"resourceId\":\"vwpklvxwmygdxp\",\"resourceType\":\"qchiszep\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-06-05T09:19:43Z\"}],\"compliancePdfReport\":{\"sasUri\":\"bbdaxco\"},\"complianceDetailedPdfReport\":{\"sasUri\":\"zauorsuk\"}}") .toObject(DownloadResponseInner.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.java index bcd31ba194e9..45c61502462f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadRequestTests.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.generated; @@ -12,18 +12,18 @@ public final class EvidenceFileDownloadRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvidenceFileDownloadRequest model - = BinaryData.fromString("{\"reportCreatorTenantId\":\"eoveilovnotyf\",\"offerGuid\":\"cnjbkcnxdhbt\"}") + = BinaryData.fromString("{\"reportCreatorTenantId\":\"qeevt\",\"offerGuid\":\"pryu\"}") .toObject(EvidenceFileDownloadRequest.class); - Assertions.assertEquals("eoveilovnotyf", model.reportCreatorTenantId()); - Assertions.assertEquals("cnjbkcnxdhbt", model.offerGuid()); + Assertions.assertEquals("qeevt", model.reportCreatorTenantId()); + Assertions.assertEquals("pryu", model.offerGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EvidenceFileDownloadRequest model = new EvidenceFileDownloadRequest().withReportCreatorTenantId("eoveilovnotyf") - .withOfferGuid("cnjbkcnxdhbt"); + EvidenceFileDownloadRequest model + = new EvidenceFileDownloadRequest().withReportCreatorTenantId("qeevt").withOfferGuid("pryu"); model = BinaryData.fromObject(model).toObject(EvidenceFileDownloadRequest.class); - Assertions.assertEquals("eoveilovnotyf", model.reportCreatorTenantId()); - Assertions.assertEquals("cnjbkcnxdhbt", model.offerGuid()); + Assertions.assertEquals("qeevt", model.reportCreatorTenantId()); + Assertions.assertEquals("pryu", model.offerGuid()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.java index db1da64d86d7..d5e81d2c9c95 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseEvidenceFileTests.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.generated; @@ -10,7 +10,7 @@ public final class EvidenceFileDownloadResponseEvidenceFileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EvidenceFileDownloadResponseEvidenceFile model = BinaryData.fromString("{\"url\":\"pnvjtoqnermclf\"}") - .toObject(EvidenceFileDownloadResponseEvidenceFile.class); + EvidenceFileDownloadResponseEvidenceFile model + = BinaryData.fromString("{\"url\":\"mov\"}").toObject(EvidenceFileDownloadResponseEvidenceFile.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.java index b054f5f295ec..12272664fb4d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceFileDownloadResponseInnerTests.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.generated; @@ -10,7 +10,7 @@ public final class EvidenceFileDownloadResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EvidenceFileDownloadResponseInner model = BinaryData.fromString("{\"evidenceFile\":{\"url\":\"h\"}}") + EvidenceFileDownloadResponseInner model = BinaryData.fromString("{\"evidenceFile\":{\"url\":\"ytp\"}}") .toObject(EvidenceFileDownloadResponseInner.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.java index 58b57aa2c30c..8c56bc01a7c7 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencePropertiesTests.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.generated; @@ -13,27 +13,27 @@ public final class EvidencePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvidenceProperties model = BinaryData.fromString( - "{\"evidenceType\":\"Data\",\"filePath\":\"htldwk\",\"extraData\":\"xuutkncwscwsv\",\"controlId\":\"otogtwrupqs\",\"responsibilityId\":\"nmic\",\"provisioningState\":\"Failed\"}") + "{\"evidenceType\":\"File\",\"filePath\":\"rkjpvdwxfzwii\",\"extraData\":\"zjb\",\"controlId\":\"zsxjrkambtrneg\",\"responsibilityId\":\"nvuqeqvldspa\",\"provisioningState\":\"Updating\"}") .toObject(EvidenceProperties.class); - Assertions.assertEquals(EvidenceType.DATA, model.evidenceType()); - Assertions.assertEquals("htldwk", model.filePath()); - Assertions.assertEquals("xuutkncwscwsv", model.extraData()); - Assertions.assertEquals("otogtwrupqs", model.controlId()); - Assertions.assertEquals("nmic", model.responsibilityId()); + Assertions.assertEquals(EvidenceType.FILE, model.evidenceType()); + Assertions.assertEquals("rkjpvdwxfzwii", model.filePath()); + Assertions.assertEquals("zjb", model.extraData()); + Assertions.assertEquals("zsxjrkambtrneg", model.controlId()); + Assertions.assertEquals("nvuqeqvldspa", model.responsibilityId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EvidenceProperties model = new EvidenceProperties().withEvidenceType(EvidenceType.DATA) - .withFilePath("htldwk") - .withExtraData("xuutkncwscwsv") - .withControlId("otogtwrupqs") - .withResponsibilityId("nmic"); + EvidenceProperties model = new EvidenceProperties().withEvidenceType(EvidenceType.FILE) + .withFilePath("rkjpvdwxfzwii") + .withExtraData("zjb") + .withControlId("zsxjrkambtrneg") + .withResponsibilityId("nvuqeqvldspa"); model = BinaryData.fromObject(model).toObject(EvidenceProperties.class); - Assertions.assertEquals(EvidenceType.DATA, model.evidenceType()); - Assertions.assertEquals("htldwk", model.filePath()); - Assertions.assertEquals("xuutkncwscwsv", model.extraData()); - Assertions.assertEquals("otogtwrupqs", model.controlId()); - Assertions.assertEquals("nmic", model.responsibilityId()); + Assertions.assertEquals(EvidenceType.FILE, model.evidenceType()); + Assertions.assertEquals("rkjpvdwxfzwii", model.filePath()); + Assertions.assertEquals("zjb", model.extraData()); + Assertions.assertEquals("zsxjrkambtrneg", model.controlId()); + Assertions.assertEquals("nvuqeqvldspa", model.responsibilityId()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.java index f4001b1d6050..b6872800b3ac 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceInnerTests.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.generated; @@ -14,28 +14,28 @@ public final class EvidenceResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvidenceResourceInner model = BinaryData.fromString( - "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"ighxpk\",\"extraData\":\"zb\",\"controlId\":\"uebbaumnyqup\",\"responsibilityId\":\"eojnabc\",\"provisioningState\":\"Deleting\"},\"id\":\"txp\",\"name\":\"ie\",\"type\":\"tfhvpesapskrdqmh\"}") + "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"zoggculapz\",\"extraData\":\"rpgogtqxep\",\"controlId\":\"lbfu\",\"responsibilityId\":\"lyjt\",\"provisioningState\":\"Succeeded\"},\"id\":\"qzhv\",\"name\":\"cib\",\"type\":\"fmo\"}") .toObject(EvidenceResourceInner.class); Assertions.assertEquals(EvidenceType.DATA, model.properties().evidenceType()); - Assertions.assertEquals("ighxpk", model.properties().filePath()); - Assertions.assertEquals("zb", model.properties().extraData()); - Assertions.assertEquals("uebbaumnyqup", model.properties().controlId()); - Assertions.assertEquals("eojnabc", model.properties().responsibilityId()); + Assertions.assertEquals("zoggculapz", model.properties().filePath()); + Assertions.assertEquals("rpgogtqxep", model.properties().extraData()); + Assertions.assertEquals("lbfu", model.properties().controlId()); + Assertions.assertEquals("lyjt", model.properties().responsibilityId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EvidenceResourceInner model = new EvidenceResourceInner().withProperties(new EvidenceProperties().withEvidenceType(EvidenceType.DATA) - .withFilePath("ighxpk") - .withExtraData("zb") - .withControlId("uebbaumnyqup") - .withResponsibilityId("eojnabc")); + .withFilePath("zoggculapz") + .withExtraData("rpgogtqxep") + .withControlId("lbfu") + .withResponsibilityId("lyjt")); model = BinaryData.fromObject(model).toObject(EvidenceResourceInner.class); Assertions.assertEquals(EvidenceType.DATA, model.properties().evidenceType()); - Assertions.assertEquals("ighxpk", model.properties().filePath()); - Assertions.assertEquals("zb", model.properties().extraData()); - Assertions.assertEquals("uebbaumnyqup", model.properties().controlId()); - Assertions.assertEquals("eojnabc", model.properties().responsibilityId()); + Assertions.assertEquals("zoggculapz", model.properties().filePath()); + Assertions.assertEquals("rpgogtqxep", model.properties().extraData()); + Assertions.assertEquals("lbfu", model.properties().controlId()); + Assertions.assertEquals("lyjt", model.properties().responsibilityId()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.java index 60190f301984..72cb5e92d81f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidenceResourceListResultTests.java @@ -1,11 +1,11 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceResourceListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.EvidenceResourceListResult; import com.azure.resourcemanager.appcomplianceautomation.models.EvidenceType; import org.junit.jupiter.api.Assertions; @@ -13,13 +13,13 @@ public final class EvidenceResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvidenceResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"pzxbz\",\"extraData\":\"zabglcuhxwt\",\"controlId\":\"yqiklbbovplwzb\",\"responsibilityId\":\"gy\",\"provisioningState\":\"Verifying\"},\"id\":\"svmkfssxquk\",\"name\":\"fpl\",\"type\":\"mg\"}],\"nextLink\":\"nkjzkdeslpvlop\"}") + "{\"value\":[{\"properties\":{\"evidenceType\":\"AutoCollectedEvidence\",\"filePath\":\"dmflv\",\"extraData\":\"tmjlx\",\"controlId\":\"ilozapeewchpxlk\",\"responsibilityId\":\"kuziycsle\",\"provisioningState\":\"Succeeded\"},\"id\":\"ztcktyh\",\"name\":\"tqedcgzulwm\",\"type\":\"rqzz\"}],\"nextLink\":\"jvpglydzgk\"}") .toObject(EvidenceResourceListResult.class); - Assertions.assertEquals(EvidenceType.DATA, model.value().get(0).properties().evidenceType()); - Assertions.assertEquals("pzxbz", model.value().get(0).properties().filePath()); - Assertions.assertEquals("zabglcuhxwt", model.value().get(0).properties().extraData()); - Assertions.assertEquals("yqiklbbovplwzb", model.value().get(0).properties().controlId()); - Assertions.assertEquals("gy", model.value().get(0).properties().responsibilityId()); - Assertions.assertEquals("nkjzkdeslpvlop", model.nextLink()); + Assertions.assertEquals(EvidenceType.AUTO_COLLECTED_EVIDENCE, model.value().get(0).properties().evidenceType()); + Assertions.assertEquals("dmflv", model.value().get(0).properties().filePath()); + Assertions.assertEquals("tmjlx", model.value().get(0).properties().extraData()); + Assertions.assertEquals("ilozapeewchpxlk", model.value().get(0).properties().controlId()); + Assertions.assertEquals("kuziycsle", model.value().get(0).properties().responsibilityId()); + Assertions.assertEquals("jvpglydzgk", model.nextLink()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.java index cdaa18d081dd..5b1b604af8a3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesCreateOrUpdateWithResponseMockTests.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.generated; @@ -24,7 +24,7 @@ public final class EvidencesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"udchxgsrboldforo\",\"extraData\":\"jlvizbfhfovva\",\"controlId\":\"pbt\",\"responsibilityId\":\"dxe\",\"provisioningState\":\"Updating\"},\"id\":\"belawumuaslzkwr\",\"name\":\"woycqucwyha\",\"type\":\"nomdrkywuhpsv\"}"; + = "{\"properties\":{\"evidenceType\":\"File\",\"filePath\":\"mgbro\",\"extraData\":\"ddbhf\",\"controlId\":\"fpazjzoywjxhpd\",\"responsibilityId\":\"ontacnpq\",\"provisioningState\":\"Deleting\"},\"id\":\"tuevrh\",\"name\":\"ljyoogwx\",\"type\":\"nsduugwbsre\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,20 +34,19 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); EvidenceResource response = manager.evidences() - .createOrUpdateWithResponse("zlrpiqywncvj", "szcofizeht", - new EvidenceResourceInner() - .withProperties(new EvidenceProperties().withEvidenceType(EvidenceType.AUTO_COLLECTED_EVIDENCE) - .withFilePath("bjkvreljeamu") - .withExtraData("zmlovuanash") - .withControlId("lpmjerb") - .withResponsibilityId("elvidizozsdbccx")), - "if", "zhmkdasvflyh", com.azure.core.util.Context.NONE) + .createOrUpdateWithResponse("qyggagfl", "lgmtrwahzjmucf", + new EvidenceResourceInner().withProperties(new EvidenceProperties().withEvidenceType(EvidenceType.FILE) + .withFilePath("r") + .withExtraData("rohkpigqfusu") + .withControlId("zmkw") + .withResponsibilityId("snoxaxmqeqa")), + "narfdlpukhpyrn", "izjcpeog", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(EvidenceType.DATA, response.properties().evidenceType()); - Assertions.assertEquals("udchxgsrboldforo", response.properties().filePath()); - Assertions.assertEquals("jlvizbfhfovva", response.properties().extraData()); - Assertions.assertEquals("pbt", response.properties().controlId()); - Assertions.assertEquals("dxe", response.properties().responsibilityId()); + Assertions.assertEquals(EvidenceType.FILE, response.properties().evidenceType()); + Assertions.assertEquals("mgbro", response.properties().filePath()); + Assertions.assertEquals("ddbhf", response.properties().extraData()); + Assertions.assertEquals("fpazjzoywjxhpd", response.properties().controlId()); + Assertions.assertEquals("ontacnpq", response.properties().responsibilityId()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.java index d1067b2c1e47..47e8373cd66c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDeleteByResourceGroupWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.evidences() - .deleteByResourceGroupWithResponse("uurutlwexxwlalni", "xzsrzpge", com.azure.core.util.Context.NONE); + .deleteByResourceGroupWithResponse("rfqkfuar", "nlvhhtklnvnafvv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.java index e3745e0d29b6..d3cdc4a5a13b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesDownloadWithResponseMockTests.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.generated; @@ -20,7 +20,7 @@ public final class EvidencesDownloadWithResponseMockTests { @Test public void testDownloadWithResponse() throws Exception { - String responseStr = "{\"evidenceFile\":{\"url\":\"rkcxkj\"}}"; + String responseStr = "{\"evidenceFile\":{\"url\":\"xliohrdddt\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testDownloadWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); EvidenceFileDownloadResponse response = manager.evidences() - .downloadWithResponse("q", "yb", - new EvidenceFileDownloadRequest().withReportCreatorTenantId("wpgdak").withOfferGuid("zyvli"), + .downloadWithResponse("bcrymodizrx", "lobdxna", + new EvidenceFileDownloadRequest().withReportCreatorTenantId("mkmlmvevfx").withOfferGuid("pj"), com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.java index 88071dd29625..2ab7fcaa99e8 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesGetWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class EvidencesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"cgq\",\"extraData\":\"ismjqfrddgamqu\",\"controlId\":\"os\",\"responsibilityId\":\"ju\",\"provisioningState\":\"Canceled\"},\"id\":\"disyirnxz\",\"name\":\"czexrxzbujrtrhqv\",\"type\":\"revkhgnlnzo\"}"; + = "{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"tacgxmfc\",\"extraData\":\"er\",\"controlId\":\"tvsoxhlwntsj\",\"responsibilityId\":\"rsxypruuu\",\"provisioningState\":\"Fixing\"},\"id\":\"hrszi\",\"name\":\"oyuelyetn\",\"type\":\"nb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); EvidenceResource response = manager.evidences() - .getWithResponse("tmhheioqa", "hvseufuqyrx", com.azure.core.util.Context.NONE) + .getWithResponse("ucmfdj", "nlaxpunjqikcz", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(EvidenceType.DATA, response.properties().evidenceType()); - Assertions.assertEquals("cgq", response.properties().filePath()); - Assertions.assertEquals("ismjqfrddgamqu", response.properties().extraData()); - Assertions.assertEquals("os", response.properties().controlId()); - Assertions.assertEquals("ju", response.properties().responsibilityId()); + Assertions.assertEquals("tacgxmfc", response.properties().filePath()); + Assertions.assertEquals("er", response.properties().extraData()); + Assertions.assertEquals("tvsoxhlwntsj", response.properties().controlId()); + Assertions.assertEquals("rsxypruuu", response.properties().responsibilityId()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.java index cd92656ef38e..a8706ef932bc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/EvidencesListByReportMockTests.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.generated; @@ -23,7 +23,7 @@ public final class EvidencesListByReportMockTests { @Test public void testListByReport() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"xnmwmqtibxyijddt\",\"extraData\":\"cttadi\",\"controlId\":\"eukmr\",\"responsibilityId\":\"eekpndz\",\"provisioningState\":\"Fixing\"},\"id\":\"udqmeqwigpibudq\",\"name\":\"yxeb\",\"type\":\"ybpmzznrtffyaq\"}]}"; + = "{\"value\":[{\"properties\":{\"evidenceType\":\"Data\",\"filePath\":\"dtddmflh\",\"extraData\":\"tx\",\"controlId\":\"tznapxbannovv\",\"responsibilityId\":\"czytprwn\",\"provisioningState\":\"Canceled\"},\"id\":\"ev\",\"name\":\"tlyo\",\"type\":\"rrrouuxvnsa\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testListByReport() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.evidences() - .listByReport("pteecjme", "slstvasy", 1529136023, "xdza", "mweoohgu", "fuzboyjathwtzolb", "emwmdxmebwjs", - "jpahlxvea", com.azure.core.util.Context.NONE); + .listByReport("yfedevjbo", "lcqxypokk", 1730318527, "inqcymczngnbdxxe", "unin", "udbchaqdtv", "ec", "qct", + com.azure.core.util.Context.NONE); Assertions.assertEquals(EvidenceType.DATA, response.iterator().next().properties().evidenceType()); - Assertions.assertEquals("xnmwmqtibxyijddt", response.iterator().next().properties().filePath()); - Assertions.assertEquals("cttadi", response.iterator().next().properties().extraData()); - Assertions.assertEquals("eukmr", response.iterator().next().properties().controlId()); - Assertions.assertEquals("eekpndz", response.iterator().next().properties().responsibilityId()); + Assertions.assertEquals("dtddmflh", response.iterator().next().properties().filePath()); + Assertions.assertEquals("tx", response.iterator().next().properties().extraData()); + Assertions.assertEquals("tznapxbannovv", response.iterator().next().properties().controlId()); + Assertions.assertEquals("czytprwn", response.iterator().next().properties().responsibilityId()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.java index 3b2f4863cc7a..b1eee416a0e6 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountRequestTests.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.generated; @@ -12,14 +12,14 @@ public final class GetCollectionCountRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GetCollectionCountRequest model - = BinaryData.fromString("{\"type\":\"ycm\"}").toObject(GetCollectionCountRequest.class); - Assertions.assertEquals("ycm", model.type()); + = BinaryData.fromString("{\"type\":\"uyav\"}").toObject(GetCollectionCountRequest.class); + Assertions.assertEquals("uyav", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GetCollectionCountRequest model = new GetCollectionCountRequest().withType("ycm"); + GetCollectionCountRequest model = new GetCollectionCountRequest().withType("uyav"); model = BinaryData.fromObject(model).toObject(GetCollectionCountRequest.class); - Assertions.assertEquals("ycm", model.type()); + Assertions.assertEquals("uyav", model.type()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.java index 1e1b831ade58..6fc4c970ffb0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetCollectionCountResponseInnerTests.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.generated; @@ -12,7 +12,7 @@ public final class GetCollectionCountResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GetCollectionCountResponseInner model - = BinaryData.fromString("{\"count\":501010271}").toObject(GetCollectionCountResponseInner.class); - Assertions.assertEquals(501010271, model.count()); + = BinaryData.fromString("{\"count\":712290061}").toObject(GetCollectionCountResponseInner.class); + Assertions.assertEquals(712290061, model.count()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.java index 1153b24515d6..03e8ddef7d26 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusRequestTests.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.generated; @@ -12,14 +12,14 @@ public final class GetOverviewStatusRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GetOverviewStatusRequest model - = BinaryData.fromString("{\"type\":\"bhdxbm\"}").toObject(GetOverviewStatusRequest.class); - Assertions.assertEquals("bhdxbm", model.type()); + = BinaryData.fromString("{\"type\":\"ncstt\"}").toObject(GetOverviewStatusRequest.class); + Assertions.assertEquals("ncstt", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GetOverviewStatusRequest model = new GetOverviewStatusRequest().withType("bhdxbm"); + GetOverviewStatusRequest model = new GetOverviewStatusRequest().withType("ncstt"); model = BinaryData.fromObject(model).toObject(GetOverviewStatusRequest.class); - Assertions.assertEquals("bhdxbm", model.type()); + Assertions.assertEquals("ncstt", model.type()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.java index 6e928eedce41..2019b40202cd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/GetOverviewStatusResponseInnerTests.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.generated; @@ -11,10 +11,10 @@ public final class GetOverviewStatusResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GetOverviewStatusResponseInner model - = BinaryData.fromString("{\"statusList\":[{\"statusName\":\"qj\",\"statusValue\":\"htbmuf\"}]}") - .toObject(GetOverviewStatusResponseInner.class); - Assertions.assertEquals("qj", model.statusList().get(0).statusName()); - Assertions.assertEquals("htbmuf", model.statusList().get(0).statusValue()); + GetOverviewStatusResponseInner model = BinaryData.fromString( + "{\"statusList\":[{\"statusName\":\"bvpoekrsgsgbdhu\",\"statusValue\":\"gnjdgkynscliqhz\"},{\"statusName\":\"xnkomtkubo\",\"statusValue\":\"pnvdxz\"}]}") + .toObject(GetOverviewStatusResponseInner.class); + Assertions.assertEquals("bvpoekrsgsgbdhu", model.statusList().get(0).statusName()); + Assertions.assertEquals("gnjdgkynscliqhz", model.statusList().get(0).statusValue()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.java index ca19ab9474f7..6f65d64e85f6 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsRequestTests.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.generated; @@ -12,17 +12,16 @@ public final class ListInUseStorageAccountsRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ListInUseStorageAccountsRequest model - = BinaryData.fromString("{\"subscriptionIds\":[\"qijgkd\",\"bpazlobcufpdzn\",\"btcqq\"]}") - .toObject(ListInUseStorageAccountsRequest.class); - Assertions.assertEquals("qijgkd", model.subscriptionIds().get(0)); + ListInUseStorageAccountsRequest model = BinaryData.fromString("{\"subscriptionIds\":[\"oobklftidgfcwq\"]}") + .toObject(ListInUseStorageAccountsRequest.class); + Assertions.assertEquals("oobklftidgfcwq", model.subscriptionIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ListInUseStorageAccountsRequest model = new ListInUseStorageAccountsRequest() - .withSubscriptionIds(Arrays.asList("qijgkd", "bpazlobcufpdzn", "btcqq")); + ListInUseStorageAccountsRequest model + = new ListInUseStorageAccountsRequest().withSubscriptionIds(Arrays.asList("oobklftidgfcwq")); model = BinaryData.fromObject(model).toObject(ListInUseStorageAccountsRequest.class); - Assertions.assertEquals("qijgkd", model.subscriptionIds().get(0)); + Assertions.assertEquals("oobklftidgfcwq", model.subscriptionIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.java index aecd2be2ec9b..79446ac21fdb 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ListInUseStorageAccountsResponseInnerTests.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.generated; @@ -12,11 +12,11 @@ public final class ListInUseStorageAccountsResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ListInUseStorageAccountsResponseInner model = BinaryData.fromString( - "{\"storageAccountList\":[{\"subscriptionId\":\"lhqgnufooojy\",\"resourceGroup\":\"fsqesaagdfmglzlh\",\"accountName\":\"rifkwm\",\"location\":\"ktsizntocipaou\"},{\"subscriptionId\":\"psqucmpoyf\",\"resourceGroup\":\"fogknygjofjdde\",\"accountName\":\"rd\",\"location\":\"pewnw\"}]}") + "{\"storageAccountList\":[{\"subscriptionId\":\"aqxzhemjyho\",\"resourceGroup\":\"jswtwkozzwc\",\"accountName\":\"kb\",\"location\":\"pfajnjwltlwtjj\"}]}") .toObject(ListInUseStorageAccountsResponseInner.class); - Assertions.assertEquals("lhqgnufooojy", model.storageAccountList().get(0).subscriptionId()); - Assertions.assertEquals("fsqesaagdfmglzlh", model.storageAccountList().get(0).resourceGroup()); - Assertions.assertEquals("rifkwm", model.storageAccountList().get(0).accountName()); - Assertions.assertEquals("ktsizntocipaou", model.storageAccountList().get(0).location()); + Assertions.assertEquals("aqxzhemjyho", model.storageAccountList().get(0).subscriptionId()); + Assertions.assertEquals("jswtwkozzwc", model.storageAccountList().get(0).resourceGroup()); + Assertions.assertEquals("kb", model.storageAccountList().get(0).accountName()); + Assertions.assertEquals("pfajnjwltlwtjj", model.storageAccountList().get(0).location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.java index ddc0188eca9e..a0e85afac65b 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardRequestTests.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.generated; @@ -12,16 +12,15 @@ public final class OnboardRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - OnboardRequest model = BinaryData.fromString("{\"subscriptionIds\":[\"kuksjtxukcdm\",\"arcryuanzwuxzdxt\"]}") + OnboardRequest model = BinaryData.fromString("{\"subscriptionIds\":[\"fkqojpy\",\"vgtrdcnifmzzs\"]}") .toObject(OnboardRequest.class); - Assertions.assertEquals("kuksjtxukcdm", model.subscriptionIds().get(0)); + Assertions.assertEquals("fkqojpy", model.subscriptionIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OnboardRequest model - = new OnboardRequest().withSubscriptionIds(Arrays.asList("kuksjtxukcdm", "arcryuanzwuxzdxt")); + OnboardRequest model = new OnboardRequest().withSubscriptionIds(Arrays.asList("fkqojpy", "vgtrdcnifmzzs")); model = BinaryData.fromObject(model).toObject(OnboardRequest.class); - Assertions.assertEquals("kuksjtxukcdm", model.subscriptionIds().get(0)); + Assertions.assertEquals("fkqojpy", model.subscriptionIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.java index c1fbfcf68f39..69d9c37360d5 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OnboardResponseInnerTests.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.generated; @@ -12,7 +12,7 @@ public final class OnboardResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OnboardResponseInner model - = BinaryData.fromString("{\"subscriptionIds\":[\"lhmwhfpmrqobm\"]}").toObject(OnboardResponseInner.class); - Assertions.assertEquals("lhmwhfpmrqobm", model.subscriptionIds().get(0)); + = BinaryData.fromString("{\"subscriptionIds\":[\"brn\"]}").toObject(OnboardResponseInner.class); + Assertions.assertEquals("brn", model.subscriptionIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.java index f4f663448de4..1f7f33c1249f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationDisplayTests.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.generated; @@ -10,8 +10,9 @@ public final class OperationDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"uuvmkjozkrwfnd\",\"resource\":\"djpslw\",\"operation\":\"dpvwryoqpsoaccta\",\"description\":\"kljla\"}") + OperationDisplay model = BinaryData + .fromString( + "{\"provider\":\"zhezwwvaiq\",\"resource\":\"vv\",\"operation\":\"nk\",\"description\":\"hqyikvy\"}") .toObject(OperationDisplay.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java index 4d5db8e3032a..1cf7ee97fb89 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationInnerTests.java @@ -1,17 +1,20 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appcomplianceautomation.fluent.models.OperationInner; +import com.azure.resourcemanager.appcomplianceautomation.models.ActionType; +import org.junit.jupiter.api.Assertions; public final class OperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationInner model = BinaryData.fromString( - "{\"name\":\"jspodmailzyde\",\"isDataAction\":true,\"display\":{\"provider\":\"ahuxinpm\",\"resource\":\"jaqwixjsp\",\"operation\":\"zvcputegjvwmfda\",\"description\":\"cmdv\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") + "{\"name\":\"yzriykhy\",\"isDataAction\":true,\"display\":{\"provider\":\"lboxqvkjl\",\"resource\":\"ho\",\"operation\":\"ynhdwdigum\",\"description\":\"raauzzpt\"},\"origin\":\"system\",\"actionType\":\"Internal\"}") .toObject(OperationInner.class); + Assertions.assertEquals(ActionType.INTERNAL, model.actionType()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java index 914f6f958801..3b00f320bb45 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationListResultTests.java @@ -1,17 +1,21 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.OperationListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.OperationListResult; +import com.azure.resourcemanager.appcomplianceautomation.models.ActionType; +import org.junit.jupiter.api.Assertions; public final class OperationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"nryrtihf\",\"isDataAction\":true,\"display\":{\"provider\":\"pzvgnwzsymglzufc\",\"resource\":\"kohdbiha\",\"operation\":\"fhfcb\",\"description\":\"s\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"qhabifpikxwcz\",\"isDataAction\":true,\"display\":{\"provider\":\"pqxu\",\"resource\":\"vyq\",\"operation\":\"wby\",\"description\":\"k\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"grtfwvu\",\"isDataAction\":false,\"display\":{\"provider\":\"dcc\",\"resource\":\"h\",\"operation\":\"cnyejhkryhtnapcz\",\"description\":\"okjye\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"pjoxzjnch\"}") + "{\"value\":[{\"name\":\"va\",\"isDataAction\":false,\"display\":{\"provider\":\"dflgzuri\",\"resource\":\"aecxndtic\",\"operation\":\"pvz\",\"description\":\"qtmldgxo\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"npkc\"}") .toObject(OperationListResult.class); + Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType()); + Assertions.assertEquals("npkc", model.nextLink()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.java index 8e49e0988171..f0f5ab89068d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OperationsListMockTests.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.generated; @@ -11,9 +11,11 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appcomplianceautomation.AppComplianceAutomationManager; +import com.azure.resourcemanager.appcomplianceautomation.models.ActionType; import com.azure.resourcemanager.appcomplianceautomation.models.Operation; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"wzf\",\"isDataAction\":true,\"display\":{\"provider\":\"ktlahbqa\",\"resource\":\"xtgzukxitmmqtgqq\",\"operation\":\"hrnxrxc\",\"description\":\"uisavokq\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"xqbawpc\",\"isDataAction\":false,\"display\":{\"provider\":\"cyknapqofyuicd\",\"resource\":\"bd\",\"operation\":\"wwgbdv\",\"description\":\"idmhmwf\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,5 +34,6 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); + Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.java index 95a5e52fa2d2..f1c32b796eaa 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/OverviewStatusTests.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.generated; @@ -11,13 +11,7 @@ public final class OverviewStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OverviewStatus model = BinaryData.fromString( - "{\"passedCount\":1547255739,\"failedCount\":153812125,\"manualCount\":68819251,\"notApplicableCount\":301752241,\"pendingCount\":1451837179}") + "{\"passedCount\":408868757,\"failedCount\":234245718,\"manualCount\":1938175770,\"notApplicableCount\":1277339929,\"pendingCount\":77118274}") .toObject(OverviewStatus.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OverviewStatus model = new OverviewStatus(); - model = BinaryData.fromObject(model).toObject(OverviewStatus.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.java index eafc4cae293b..a621ddf25703 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsCheckNameAvailabilityWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class ProviderActionsCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"n\"}"; + String responseStr = "{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"immoiroqboshbrag\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { CheckNameAvailabilityResponse response = manager.providerActions() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest().withName("avyvnqqyba").withType("euayjkqabqgzsles"), + new CheckNameAvailabilityRequest().withName("vapckccrrvwey").withType("oy"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("n", response.message()); + Assertions.assertEquals(false, response.nameAvailable()); + Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason()); + Assertions.assertEquals("immoiroqboshbrag", response.message()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.java index acf3bba67e39..ccbae00b8bab 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetCollectionCountWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class ProviderActionsGetCollectionCountWithResponseMockTests { @Test public void testGetCollectionCountWithResponse() throws Exception { - String responseStr = "{\"count\":412307551}"; + String responseStr = "{\"count\":822270506}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetCollectionCountWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); GetCollectionCountResponse response = manager.providerActions() - .getCollectionCountWithResponse(new GetCollectionCountRequest().withType("iew"), + .getCollectionCountWithResponse(new GetCollectionCountRequest().withType("yyrmfsvbp"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(412307551, response.count()); + Assertions.assertEquals(822270506, response.count()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.java index 424a9f1d2798..ae688823ab7f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsGetOverviewStatusWithResponseMockTests.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.generated; @@ -21,7 +21,8 @@ public final class ProviderActionsGetOverviewStatusWithResponseMockTests { @Test public void testGetOverviewStatusWithResponse() throws Exception { - String responseStr = "{\"statusList\":[{\"statusName\":\"buffkmrqemvvhm\",\"statusValue\":\"drjf\"}]}"; + String responseStr + = "{\"statusList\":[{\"statusName\":\"pgahxkumas\",\"statusValue\":\"aacfdmmc\"},{\"statusName\":\"g\",\"statusValue\":\"hqepvufhbzehewh\"},{\"statusName\":\"hnl\",\"statusValue\":\"nbldxeaclgschori\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +32,11 @@ public void testGetOverviewStatusWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); GetOverviewStatusResponse response = manager.providerActions() - .getOverviewStatusWithResponse(new GetOverviewStatusRequest().withType("bquwrbehw"), + .getOverviewStatusWithResponse(new GetOverviewStatusRequest().withType("pfppd"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("buffkmrqemvvhm", response.statusList().get(0).statusName()); - Assertions.assertEquals("drjf", response.statusList().get(0).statusValue()); + Assertions.assertEquals("pgahxkumas", response.statusList().get(0).statusName()); + Assertions.assertEquals("aacfdmmc", response.statusList().get(0).statusValue()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.java index 152705284e1c..7b8f8e054f2c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsListInUseStorageAccountsWithResponseMockTests.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.generated; @@ -23,7 +23,7 @@ public final class ProviderActionsListInUseStorageAccountsWithResponseMockTests @Test public void testListInUseStorageAccountsWithResponse() throws Exception { String responseStr - = "{\"storageAccountList\":[{\"subscriptionId\":\"aufactkahzovajjz\",\"resourceGroup\":\"xxpshneeku\",\"accountName\":\"gs\",\"location\":\"ubkwdle\"},{\"subscriptionId\":\"d\",\"resourceGroup\":\"tujbazpju\",\"accountName\":\"minyflnorwm\",\"location\":\"vwpklvxwmygdxp\"},{\"subscriptionId\":\"qchiszep\",\"resourceGroup\":\"bjcrxgibbdaxco\",\"accountName\":\"ozauorsukokwb\",\"location\":\"lhlv\"}]}"; + = "{\"storageAccountList\":[{\"subscriptionId\":\"uic\",\"resourceGroup\":\"vtrrmhwrbfdpyflu\",\"accountName\":\"vjglrocuyzlwhhme\",\"location\":\"ooclutnp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,13 @@ public void testListInUseStorageAccountsWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ListInUseStorageAccountsResponse response = manager.providerActions() - .listInUseStorageAccountsWithResponse( - new ListInUseStorageAccountsRequest().withSubscriptionIds(Arrays.asList("coebjvewzcj", "nmwcpmgu")), - com.azure.core.util.Context.NONE) + .listInUseStorageAccountsWithResponse(new ListInUseStorageAccountsRequest() + .withSubscriptionIds(Arrays.asList("h", "k", "yych", "nsjlpjrtws")), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("aufactkahzovajjz", response.storageAccountList().get(0).subscriptionId()); - Assertions.assertEquals("xxpshneeku", response.storageAccountList().get(0).resourceGroup()); - Assertions.assertEquals("gs", response.storageAccountList().get(0).accountName()); - Assertions.assertEquals("ubkwdle", response.storageAccountList().get(0).location()); + Assertions.assertEquals("uic", response.storageAccountList().get(0).subscriptionId()); + Assertions.assertEquals("vtrrmhwrbfdpyflu", response.storageAccountList().get(0).resourceGroup()); + Assertions.assertEquals("vjglrocuyzlwhhme", response.storageAccountList().get(0).accountName()); + Assertions.assertEquals("ooclutnp", response.storageAccountList().get(0).location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.java index 0626867a1f81..de6a4cf4a63d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsOnboardMockTests.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.generated; @@ -22,7 +22,7 @@ public final class ProviderActionsOnboardMockTests { @Test public void testOnboard() throws Exception { - String responseStr = "{\"subscriptionIds\":[\"hhg\",\"nhxmsi\",\"fomiloxgg\"]}"; + String responseStr = "{\"subscriptionIds\":[\"xtkcudfbsfar\"]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,11 @@ public void testOnboard() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - OnboardResponse response - = manager.providerActions() - .onboard( - new OnboardRequest() - .withSubscriptionIds(Arrays.asList("uepzl", "phwzsoldweyuqdu", "vmnnrw", "biorktal")), - com.azure.core.util.Context.NONE); + OnboardResponse response = manager.providerActions() + .onboard( + new OnboardRequest().withSubscriptionIds(Arrays.asList("rsrrmoucsofldp", "viyfcaabeolhbhlv", "mxuq")), + com.azure.core.util.Context.NONE); - Assertions.assertEquals("hhg", response.subscriptionIds().get(0)); + Assertions.assertEquals("xtkcudfbsfar", response.subscriptionIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.java index 0d7b98f4f639..99380ae750a3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ProviderActionsTriggerEvaluationMockTests.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.generated; @@ -23,7 +23,7 @@ public final class ProviderActionsTriggerEvaluationMockTests { @Test public void testTriggerEvaluation() throws Exception { String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-03-10T19:30:54Z\",\"evaluationEndTime\":\"2021-08-21T00:04:31Z\",\"resourceIds\":[\"onmacjekniz\",\"hqvcimpevfgmblr\"],\"quickAssessments\":[{\"resourceId\":\"ywdxsmic\",\"responsibilityId\":\"rwfscjfnynszquj\",\"timestamp\":\"2021-10-09T07:15:09Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"remediationLink\":\"utp\"},{\"resourceId\":\"joxoism\",\"responsibilityId\":\"sbpimlq\",\"timestamp\":\"2021-02-24T02:21:25Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"gxxlxsffgcvizq\",\"description\":\"wlvwlyoupf\",\"remediationLink\":\"bkjubdyhgkfmins\"}]}}"; + = "{\"properties\":{\"triggerTime\":\"2021-02-05T03:56:44Z\",\"evaluationEndTime\":\"2021-07-09T17:56:34Z\",\"resourceIds\":[\"luqvoxmycjimryv\",\"gc\"],\"quickAssessments\":[{\"resourceId\":\"mzgwe\",\"responsibilityId\":\"dsxwefoh\",\"timestamp\":\"2021-10-05T19:31:52Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"wndyqleallk\",\"description\":\"tkhlowkxxpvbr\",\"remediationLink\":\"jmzsyzfh\"}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,10 @@ public void testTriggerEvaluation() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); TriggerEvaluationResponse response = manager.providerActions() - .triggerEvaluation(new TriggerEvaluationRequest().withResourceIds( - Arrays.asList("fi", "ndieuzaofj", "hvcyyysfg", "otcubi")), com.azure.core.util.Context.NONE); + .triggerEvaluation( + new TriggerEvaluationRequest().withResourceIds(Arrays.asList("iowl", "jxnqp", "wgfstmhqykizm")), + com.azure.core.util.Context.NONE); - Assertions.assertEquals("onmacjekniz", response.properties().resourceIds().get(0)); + Assertions.assertEquals("luqvoxmycjimryv", response.properties().resourceIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.java index 0a13dd116ddf..e7cfcf0962ca 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/QuickAssessmentTests.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.generated; @@ -11,7 +11,7 @@ public final class QuickAssessmentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuickAssessment model = BinaryData.fromString( - "{\"resourceId\":\"jfsmlmbtxhwgfwsr\",\"responsibilityId\":\"wcoezbrhub\",\"timestamp\":\"2021-04-27T23:35:34Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"goo\",\"description\":\"kqfqjbvl\",\"remediationLink\":\"rfmluiqtq\"}") + "{\"resourceId\":\"seypxiutcxapz\",\"responsibilityId\":\"rpetogebjoxsl\",\"timestamp\":\"2020-12-28T12:20:27Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"brqnkkzjcjb\",\"description\":\"gaehvvibrxjjst\",\"remediationLink\":\"beitpkx\"}") .toObject(QuickAssessment.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.java index 5509e5b34110..3a0c512095dd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationSolutionTests.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.generated; @@ -11,13 +11,7 @@ public final class RecommendationSolutionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecommendationSolution model = BinaryData.fromString( - "{\"recommendationSolutionIndex\":\"jvcdwxlpqekf\",\"recommendationSolutionContent\":\"khtj\",\"isRecommendSolution\":\"true\"}") + "{\"recommendationSolutionIndex\":\"ebqaaysjkixqtnq\",\"recommendationSolutionContent\":\"ezl\",\"isRecommendSolution\":\"true\"}") .toObject(RecommendationSolution.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecommendationSolution model = new RecommendationSolution(); - model = BinaryData.fromObject(model).toObject(RecommendationSolution.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.java index a320db3fde52..5539402c3621 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/RecommendationTests.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.generated; @@ -11,13 +11,7 @@ public final class RecommendationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Recommendation model = BinaryData.fromString( - "{\"recommendationId\":\"wygzlvdnkfxusem\",\"recommendationShortName\":\"zrmuhapfcqdps\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"psvuoymgc\",\"recommendationSolutionContent\":\"lvez\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"lmfeokerq\",\"recommendationSolutionContent\":\"yhko\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"xedk\",\"recommendationSolutionContent\":\"epbqpcrfkbw\",\"isRecommendSolution\":\"false\"}]}") + "{\"recommendationId\":\"sxtta\",\"recommendationShortName\":\"zxnfaaz\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"n\",\"recommendationSolutionContent\":\"mkqjj\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"nvrk\",\"recommendationSolutionContent\":\"ou\",\"isRecommendSolution\":\"true\"}]}") .toObject(Recommendation.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Recommendation model = new Recommendation(); - model = BinaryData.fromObject(model).toObject(Recommendation.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.java index c817493a3080..edf7c9431b2c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportComplianceStatusTests.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.generated; @@ -11,13 +11,7 @@ public final class ReportComplianceStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReportComplianceStatus model = BinaryData.fromString( - "{\"m365\":{\"passedCount\":1569477308,\"failedCount\":393211595,\"manualCount\":1686562636,\"notApplicableCount\":1870427389,\"pendingCount\":148650220}}") + "{\"m365\":{\"passedCount\":1547644863,\"failedCount\":1055539147,\"manualCount\":1847576577,\"notApplicableCount\":826094164,\"pendingCount\":2093374464}}") .toObject(ReportComplianceStatus.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReportComplianceStatus model = new ReportComplianceStatus(); - model = BinaryData.fromObject(model).toObject(ReportComplianceStatus.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.java index e686a6aac657..2936a3558dc1 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportFixResultInnerTests.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.generated; @@ -10,7 +10,7 @@ public final class ReportFixResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ReportFixResultInner model = BinaryData.fromString("{\"result\":\"Succeeded\",\"reason\":\"oxuscrpabgyepsbj\"}") + ReportFixResultInner model = BinaryData.fromString("{\"result\":\"Succeeded\",\"reason\":\"rbnlankxmyskp\"}") .toObject(ReportFixResultInner.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.java index bfe9a83dbd1b..d2bdb9a067ec 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPatchPropertiesTests.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.generated; @@ -17,60 +17,60 @@ public final class ReportPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReportPatchProperties model = BinaryData.fromString( - "{\"triggerTime\":\"2021-09-20T06:05:50Z\",\"timeZone\":\"ymuctqhjfbebrj\",\"resources\":[{\"resourceId\":\"rfuwutt\",\"resourceType\":\"fvjrbirphxepcy\",\"resourceKind\":\"hfnljkyq\",\"resourceOrigin\":\"GCP\",\"accountId\":\"ujqgidok\"},{\"resourceId\":\"jljyoxgv\",\"resourceType\":\"tbgsncghkj\",\"resourceKind\":\"zz\",\"resourceOrigin\":\"AWS\",\"accountId\":\"htxfvgxbfsmxnehm\"},{\"resourceId\":\"vecxgodebfqkk\",\"resourceType\":\"mpukgriw\",\"resourceKind\":\"zlfbxzpuzycispnq\",\"resourceOrigin\":\"GCP\",\"accountId\":\"gkbrpyyd\"}],\"status\":\"Reviewing\",\"errors\":[\"qqkpikadrg\",\"tqagnbuynh\"],\"tenantId\":\"gg\",\"offerGuid\":\"bfs\",\"nextTriggerTime\":\"2021-09-16T13:37:10Z\",\"lastTriggerTime\":\"2021-05-02T05:08:07Z\",\"subscriptions\":[\"cvpnazzmhjrunmpx\",\"tdbhrbnla\",\"kx\",\"yskpbhen\"],\"complianceStatus\":{\"m365\":{\"passedCount\":2016648328,\"failedCount\":83692384,\"manualCount\":17421119,\"notApplicableCount\":782555579,\"pendingCount\":1863766018}},\"storageInfo\":{\"subscriptionId\":\"lqidyby\",\"resourceGroup\":\"zfcl\",\"accountName\":\"axdbabph\",\"location\":\"rqlfktsthsucocmn\"},\"certRecords\":[{\"offerGuid\":\"t\",\"certificationStatus\":\"twwrqp\",\"ingestionStatus\":\"dckzywbiexz\",\"controls\":[{\"controlId\":\"eaxib\",\"controlStatus\":\"jwbhqwalmuz\"},{\"controlId\":\"xaepdkzjancuxr\",\"controlStatus\":\"wbavxbniwdj\"},{\"controlId\":\"zt\",\"controlStatus\":\"bpg\"}]}],\"provisioningState\":\"Canceled\"}") + "{\"triggerTime\":\"2021-10-30T06:34:46Z\",\"timeZone\":\"rpymzidnsez\",\"resources\":[{\"resourceId\":\"bzsgfyccsne\",\"resourceType\":\"dwzjeiach\",\"resourceKind\":\"osfln\",\"resourceOrigin\":\"AWS\",\"accountId\":\"qpteeh\"},{\"resourceId\":\"zvypyqrimzinp\",\"resourceType\":\"wjdk\",\"resourceKind\":\"soodqxhcrmnoh\",\"resourceOrigin\":\"AWS\",\"accountId\":\"whdsoifiyip\"},{\"resourceId\":\"xsqwpgrjbznorc\",\"resourceType\":\"vsnb\",\"resourceKind\":\"qabnmoc\",\"resourceOrigin\":\"GCP\",\"accountId\":\"hurzafblj\"}],\"status\":\"Reviewing\",\"errors\":[\"oq\",\"jmkljavbqidtqajz\",\"ulpkudjkrl\"],\"tenantId\":\"bzhfepgzgqexz\",\"offerGuid\":\"c\",\"nextTriggerTime\":\"2021-05-23T12:30:08Z\",\"lastTriggerTime\":\"2021-11-18T07:05:01Z\",\"subscriptions\":[\"rhhbcs\",\"l\",\"mmajtjaodx\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1455975978,\"failedCount\":64161547,\"manualCount\":372100049,\"notApplicableCount\":948601207,\"pendingCount\":1684749712}},\"storageInfo\":{\"subscriptionId\":\"onpimexgstxg\",\"resourceGroup\":\"odgmaajrmvdjwz\",\"accountName\":\"ovmclwhijcoejct\",\"location\":\"aqsqsycbkbfk\"},\"certRecords\":[{\"offerGuid\":\"kexxppof\",\"certificationStatus\":\"axcfjpgddtocjjx\",\"ingestionStatus\":\"pmouexhdz\",\"controls\":[{\"controlId\":\"eojnxqbzvddn\",\"controlStatus\":\"ndei\"}]},{\"offerGuid\":\"twnpzaoqvuhrhcf\",\"certificationStatus\":\"yd\",\"ingestionStatus\":\"lmjthjq\",\"controls\":[{\"controlId\":\"eicxmqciwqvhkhi\",\"controlStatus\":\"igdtopbob\"},{\"controlId\":\"ghmewuam\",\"controlStatus\":\"hrzayvvtpgvdf\"}]}],\"provisioningState\":\"Verifying\"}") .toObject(ReportPatchProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-20T06:05:50Z"), model.triggerTime()); - Assertions.assertEquals("ymuctqhjfbebrj", model.timeZone()); - Assertions.assertEquals("rfuwutt", model.resources().get(0).resourceId()); - Assertions.assertEquals("fvjrbirphxepcy", model.resources().get(0).resourceType()); - Assertions.assertEquals("hfnljkyq", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("ujqgidok", model.resources().get(0).accountId()); - Assertions.assertEquals("bfs", model.offerGuid()); - Assertions.assertEquals("lqidyby", model.storageInfo().subscriptionId()); - Assertions.assertEquals("zfcl", model.storageInfo().resourceGroup()); - Assertions.assertEquals("axdbabph", model.storageInfo().accountName()); - Assertions.assertEquals("rqlfktsthsucocmn", model.storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T06:34:46Z"), model.triggerTime()); + Assertions.assertEquals("rpymzidnsez", model.timeZone()); + Assertions.assertEquals("bzsgfyccsne", model.resources().get(0).resourceId()); + Assertions.assertEquals("dwzjeiach", model.resources().get(0).resourceType()); + Assertions.assertEquals("osfln", model.resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.resources().get(0).resourceOrigin()); + Assertions.assertEquals("qpteeh", model.resources().get(0).accountId()); + Assertions.assertEquals("c", model.offerGuid()); + Assertions.assertEquals("onpimexgstxg", model.storageInfo().subscriptionId()); + Assertions.assertEquals("odgmaajrmvdjwz", model.storageInfo().resourceGroup()); + Assertions.assertEquals("ovmclwhijcoejct", model.storageInfo().accountName()); + Assertions.assertEquals("aqsqsycbkbfk", model.storageInfo().location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReportPatchProperties model - = new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-09-20T06:05:50Z")) - .withTimeZone("ymuctqhjfbebrj") + = new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-10-30T06:34:46Z")) + .withTimeZone("rpymzidnsez") .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("rfuwutt") - .withResourceType("fvjrbirphxepcy") - .withResourceKind("hfnljkyq") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("ujqgidok"), - new ResourceMetadata().withResourceId("jljyoxgv") - .withResourceType("tbgsncghkj") - .withResourceKind("zz") + new ResourceMetadata().withResourceId("bzsgfyccsne") + .withResourceType("dwzjeiach") + .withResourceKind("osfln") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("qpteeh"), + new ResourceMetadata().withResourceId("zvypyqrimzinp") + .withResourceType("wjdk") + .withResourceKind("soodqxhcrmnoh") .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("htxfvgxbfsmxnehm"), - new ResourceMetadata().withResourceId("vecxgodebfqkk") - .withResourceType("mpukgriw") - .withResourceKind("zlfbxzpuzycispnq") + .withAccountId("whdsoifiyip"), + new ResourceMetadata().withResourceId("xsqwpgrjbznorc") + .withResourceType("vsnb") + .withResourceKind("qabnmoc") .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("gkbrpyyd"))) - .withOfferGuid("bfs") - .withStorageInfo(new StorageInfo().withSubscriptionId("lqidyby") - .withResourceGroup("zfcl") - .withAccountName("axdbabph") - .withLocation("rqlfktsthsucocmn")); + .withAccountId("hurzafblj"))) + .withOfferGuid("c") + .withStorageInfo(new StorageInfo().withSubscriptionId("onpimexgstxg") + .withResourceGroup("odgmaajrmvdjwz") + .withAccountName("ovmclwhijcoejct") + .withLocation("aqsqsycbkbfk")); model = BinaryData.fromObject(model).toObject(ReportPatchProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-20T06:05:50Z"), model.triggerTime()); - Assertions.assertEquals("ymuctqhjfbebrj", model.timeZone()); - Assertions.assertEquals("rfuwutt", model.resources().get(0).resourceId()); - Assertions.assertEquals("fvjrbirphxepcy", model.resources().get(0).resourceType()); - Assertions.assertEquals("hfnljkyq", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("ujqgidok", model.resources().get(0).accountId()); - Assertions.assertEquals("bfs", model.offerGuid()); - Assertions.assertEquals("lqidyby", model.storageInfo().subscriptionId()); - Assertions.assertEquals("zfcl", model.storageInfo().resourceGroup()); - Assertions.assertEquals("axdbabph", model.storageInfo().accountName()); - Assertions.assertEquals("rqlfktsthsucocmn", model.storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T06:34:46Z"), model.triggerTime()); + Assertions.assertEquals("rpymzidnsez", model.timeZone()); + Assertions.assertEquals("bzsgfyccsne", model.resources().get(0).resourceId()); + Assertions.assertEquals("dwzjeiach", model.resources().get(0).resourceType()); + Assertions.assertEquals("osfln", model.resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.resources().get(0).resourceOrigin()); + Assertions.assertEquals("qpteeh", model.resources().get(0).accountId()); + Assertions.assertEquals("c", model.offerGuid()); + Assertions.assertEquals("onpimexgstxg", model.storageInfo().subscriptionId()); + Assertions.assertEquals("odgmaajrmvdjwz", model.storageInfo().resourceGroup()); + Assertions.assertEquals("ovmclwhijcoejct", model.storageInfo().accountName()); + Assertions.assertEquals("aqsqsycbkbfk", model.storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.java index 7e5147153b7d..8dc7fe412b20 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportPropertiesTests.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.generated; @@ -17,48 +17,54 @@ public final class ReportPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReportProperties model = BinaryData.fromString( - "{\"triggerTime\":\"2021-01-13T20:02:55Z\",\"timeZone\":\"ngxlefgugnxkrxdq\",\"resources\":[{\"resourceId\":\"dt\",\"resourceType\":\"zrvqdr\",\"resourceKind\":\"hjybigehoqfbo\",\"resourceOrigin\":\"AWS\",\"accountId\":\"nyktzlcuiy\"}],\"status\":\"Active\",\"errors\":[\"gndrvynh\",\"gpphrcgyn\",\"ocpecfvmmco\",\"fsxlzevgbmqjqa\"],\"tenantId\":\"y\",\"offerGuid\":\"ivkwlzuvccfwnfnb\",\"nextTriggerTime\":\"2021-04-04T07:21:26Z\",\"lastTriggerTime\":\"2021-04-16T12:59:12Z\",\"subscriptions\":[\"ebxetqgtzxdp\"],\"complianceStatus\":{\"m365\":{\"passedCount\":978126196,\"failedCount\":1208210765,\"manualCount\":588288126,\"notApplicableCount\":1251275830,\"pendingCount\":1993000932}},\"storageInfo\":{\"subscriptionId\":\"wsubisnja\",\"resourceGroup\":\"mngnzscxaqw\",\"accountName\":\"chcbonqvpkvlrxnj\",\"location\":\"seiphe\"},\"certRecords\":[{\"offerGuid\":\"keyyi\",\"certificationStatus\":\"jbdlwtgrhpdjpju\",\"ingestionStatus\":\"sxazjpq\",\"controls\":[{\"controlId\":\"alhbx\",\"controlStatus\":\"e\"}]},{\"offerGuid\":\"zzvdudgwds\",\"certificationStatus\":\"hotwmcynpwlbjnp\",\"ingestionStatus\":\"cftadeh\",\"controls\":[{\"controlId\":\"yfsoppu\",\"controlStatus\":\"esnzwde\"},{\"controlId\":\"avo\",\"controlStatus\":\"zdmohctbqvu\"}]}],\"provisioningState\":\"Failed\"}") + "{\"triggerTime\":\"2021-01-28T09:29:32Z\",\"timeZone\":\"zk\",\"resources\":[{\"resourceId\":\"dbihanufhfcbj\",\"resourceType\":\"a\",\"resourceKind\":\"th\",\"resourceOrigin\":\"GCP\",\"accountId\":\"bifpikxwczb\"},{\"resourceId\":\"scnpqxuhivy\",\"resourceType\":\"iwbybrkxvdumjg\",\"resourceKind\":\"fwvuk\",\"resourceOrigin\":\"Azure\",\"accountId\":\"dcc\"}],\"status\":\"Active\",\"errors\":[\"cnyejhkryhtnapcz\"],\"tenantId\":\"okjye\",\"offerGuid\":\"kvnipjoxz\",\"nextTriggerTime\":\"2021-09-07T17:28:25Z\",\"lastTriggerTime\":\"2021-08-30T22:34:51Z\",\"subscriptions\":[\"spodmail\",\"ydehoj\",\"yahux\",\"npmqnjaqwixjspro\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1146923499,\"failedCount\":409698731,\"manualCount\":1721756309,\"notApplicableCount\":1903590590,\"pendingCount\":1508437812}},\"storageInfo\":{\"subscriptionId\":\"t\",\"resourceGroup\":\"mdvpjhulsu\",\"accountName\":\"mkjozkrwf\",\"location\":\"iodjp\"},\"certRecords\":[{\"offerGuid\":\"jdpvwryo\",\"certificationStatus\":\"soacctazakl\",\"ingestionStatus\":\"ahbc\",\"controls\":[{\"controlId\":\"dfdosygexp\",\"controlStatus\":\"jakhmsbzjh\"},{\"controlId\":\"zevdphlx\",\"controlStatus\":\"lthqtrgqjbp\"},{\"controlId\":\"fsinzgvfcjrwzoxx\",\"controlStatus\":\"felluwfzitonpe\"},{\"controlId\":\"pjkjlxofpdv\",\"controlStatus\":\"fxxypininmayhuy\"}]}],\"provisioningState\":\"Canceled\"}") .toObject(ReportProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T20:02:55Z"), model.triggerTime()); - Assertions.assertEquals("ngxlefgugnxkrxdq", model.timeZone()); - Assertions.assertEquals("dt", model.resources().get(0).resourceId()); - Assertions.assertEquals("zrvqdr", model.resources().get(0).resourceType()); - Assertions.assertEquals("hjybigehoqfbo", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("nyktzlcuiy", model.resources().get(0).accountId()); - Assertions.assertEquals("ivkwlzuvccfwnfnb", model.offerGuid()); - Assertions.assertEquals("wsubisnja", model.storageInfo().subscriptionId()); - Assertions.assertEquals("mngnzscxaqw", model.storageInfo().resourceGroup()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.storageInfo().accountName()); - Assertions.assertEquals("seiphe", model.storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T09:29:32Z"), model.triggerTime()); + Assertions.assertEquals("zk", model.timeZone()); + Assertions.assertEquals("dbihanufhfcbj", model.resources().get(0).resourceId()); + Assertions.assertEquals("a", model.resources().get(0).resourceType()); + Assertions.assertEquals("th", model.resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.GCP, model.resources().get(0).resourceOrigin()); + Assertions.assertEquals("bifpikxwczb", model.resources().get(0).accountId()); + Assertions.assertEquals("kvnipjoxz", model.offerGuid()); + Assertions.assertEquals("t", model.storageInfo().subscriptionId()); + Assertions.assertEquals("mdvpjhulsu", model.storageInfo().resourceGroup()); + Assertions.assertEquals("mkjozkrwf", model.storageInfo().accountName()); + Assertions.assertEquals("iodjp", model.storageInfo().location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ReportProperties model = new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-01-13T20:02:55Z")) - .withTimeZone("ngxlefgugnxkrxdq") - .withResources(Arrays.asList(new ResourceMetadata().withResourceId("dt") - .withResourceType("zrvqdr") - .withResourceKind("hjybigehoqfbo") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("nyktzlcuiy"))) - .withOfferGuid("ivkwlzuvccfwnfnb") - .withStorageInfo(new StorageInfo().withSubscriptionId("wsubisnja") - .withResourceGroup("mngnzscxaqw") - .withAccountName("chcbonqvpkvlrxnj") - .withLocation("seiphe")); + ReportProperties model = new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-01-28T09:29:32Z")) + .withTimeZone("zk") + .withResources(Arrays.asList( + new ResourceMetadata().withResourceId("dbihanufhfcbj") + .withResourceType("a") + .withResourceKind("th") + .withResourceOrigin(ResourceOrigin.GCP) + .withAccountId("bifpikxwczb"), + new ResourceMetadata().withResourceId("scnpqxuhivy") + .withResourceType("iwbybrkxvdumjg") + .withResourceKind("fwvuk") + .withResourceOrigin(ResourceOrigin.AZURE) + .withAccountId("dcc"))) + .withOfferGuid("kvnipjoxz") + .withStorageInfo(new StorageInfo().withSubscriptionId("t") + .withResourceGroup("mdvpjhulsu") + .withAccountName("mkjozkrwf") + .withLocation("iodjp")); model = BinaryData.fromObject(model).toObject(ReportProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T20:02:55Z"), model.triggerTime()); - Assertions.assertEquals("ngxlefgugnxkrxdq", model.timeZone()); - Assertions.assertEquals("dt", model.resources().get(0).resourceId()); - Assertions.assertEquals("zrvqdr", model.resources().get(0).resourceType()); - Assertions.assertEquals("hjybigehoqfbo", model.resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, model.resources().get(0).resourceOrigin()); - Assertions.assertEquals("nyktzlcuiy", model.resources().get(0).accountId()); - Assertions.assertEquals("ivkwlzuvccfwnfnb", model.offerGuid()); - Assertions.assertEquals("wsubisnja", model.storageInfo().subscriptionId()); - Assertions.assertEquals("mngnzscxaqw", model.storageInfo().resourceGroup()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.storageInfo().accountName()); - Assertions.assertEquals("seiphe", model.storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T09:29:32Z"), model.triggerTime()); + Assertions.assertEquals("zk", model.timeZone()); + Assertions.assertEquals("dbihanufhfcbj", model.resources().get(0).resourceId()); + Assertions.assertEquals("a", model.resources().get(0).resourceType()); + Assertions.assertEquals("th", model.resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.GCP, model.resources().get(0).resourceOrigin()); + Assertions.assertEquals("bifpikxwczb", model.resources().get(0).accountId()); + Assertions.assertEquals("kvnipjoxz", model.offerGuid()); + Assertions.assertEquals("t", model.storageInfo().subscriptionId()); + Assertions.assertEquals("mdvpjhulsu", model.storageInfo().resourceGroup()); + Assertions.assertEquals("mkjozkrwf", model.storageInfo().accountName()); + Assertions.assertEquals("iodjp", model.storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.java index 11c6683d4296..c8bc2310ecf9 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceInnerTests.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.generated; @@ -18,55 +18,55 @@ public final class ReportResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReportResourceInner model = BinaryData.fromString( - "{\"properties\":{\"triggerTime\":\"2021-08-24T18:20:56Z\",\"timeZone\":\"zafb\",\"resources\":[{\"resourceId\":\"j\",\"resourceType\":\"btoqcjmkljavbqid\",\"resourceKind\":\"ajzyul\",\"resourceOrigin\":\"Azure\",\"accountId\":\"jkrlkhbzhfepg\"},{\"resourceId\":\"gqexzlocxs\",\"resourceType\":\"aierhhb\",\"resourceKind\":\"glu\",\"resourceOrigin\":\"Azure\",\"accountId\":\"tjaodxobnb\"}],\"status\":\"Active\",\"errors\":[\"xo\",\"ajionpimexgstxg\",\"po\"],\"tenantId\":\"maajrmvdjwzrlo\",\"offerGuid\":\"clwhijcoejctbz\",\"nextTriggerTime\":\"2021-04-25T10:37:50Z\",\"lastTriggerTime\":\"2021-02-04T17:33:10Z\",\"subscriptions\":[\"bkbfkgukdkex\",\"ppofmxaxcfjpgdd\"],\"complianceStatus\":{\"m365\":{\"passedCount\":217282590,\"failedCount\":1680873734,\"manualCount\":256483207,\"notApplicableCount\":70113912,\"pendingCount\":805352848}},\"storageInfo\":{\"subscriptionId\":\"dzxibqeojnxqbzvd\",\"resourceGroup\":\"t\",\"accountName\":\"deicbtwnpzao\",\"location\":\"uhrhcffcyddgl\"},\"certRecords\":[{\"offerGuid\":\"jqkwpyeicx\",\"certificationStatus\":\"ciwqvhk\",\"ingestionStatus\":\"xuigdtopbobj\",\"controls\":[{\"controlId\":\"e\",\"controlStatus\":\"a\"}]}],\"provisioningState\":\"Deleting\"},\"id\":\"rzayv\",\"name\":\"t\",\"type\":\"gvdfgiotkftutq\"}") + "{\"properties\":{\"triggerTime\":\"2021-01-03T12:42:14Z\",\"timeZone\":\"mhquvgjxp\",\"resources\":[{\"resourceId\":\"czmehmtzopbsp\",\"resourceType\":\"upi\",\"resourceKind\":\"sybbejhph\",\"resourceOrigin\":\"AWS\",\"accountId\":\"sx\"},{\"resourceId\":\"obhdxbmtqioqjze\",\"resourceType\":\"bmufpown\",\"resourceKind\":\"zhwlrxy\",\"resourceOrigin\":\"AWS\",\"accountId\":\"qijgkd\"}],\"status\":\"Reviewing\",\"errors\":[\"lobcufpdznrbtcq\",\"jnqglhqgnu\",\"ooojywifsqe\"],\"tenantId\":\"agdfmglzlh\",\"offerGuid\":\"rifkwm\",\"nextTriggerTime\":\"2021-08-23T15:37:33Z\",\"lastTriggerTime\":\"2021-09-06T10:19:53Z\",\"subscriptions\":[\"nt\",\"cipaouaj\",\"s\",\"ucmpoyfd\"],\"complianceStatus\":{\"m365\":{\"passedCount\":934276292,\"failedCount\":2026517402,\"manualCount\":1139572680,\"notApplicableCount\":1727300200,\"pendingCount\":1891405510}},\"storageInfo\":{\"subscriptionId\":\"qs\",\"resourceGroup\":\"eupewnwreitjz\",\"accountName\":\"lusarh\",\"location\":\"fcqhsmyurkd\"},\"certRecords\":[{\"offerGuid\":\"he\",\"certificationStatus\":\"k\",\"ingestionStatus\":\"txukcdmp\",\"controls\":[{\"controlId\":\"y\",\"controlStatus\":\"nzwuxzd\"},{\"controlId\":\"a\",\"controlStatus\":\"lhmwhfpmrqobm\"}]}],\"provisioningState\":\"Deleting\"},\"id\":\"nryrtihf\",\"name\":\"tijbpzvgnwzsymgl\",\"type\":\"uf\"}") .toObject(ReportResourceInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T18:20:56Z"), model.properties().triggerTime()); - Assertions.assertEquals("zafb", model.properties().timeZone()); - Assertions.assertEquals("j", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("btoqcjmkljavbqid", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("ajzyul", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AZURE, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("jkrlkhbzhfepg", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("clwhijcoejctbz", model.properties().offerGuid()); - Assertions.assertEquals("dzxibqeojnxqbzvd", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("t", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("deicbtwnpzao", model.properties().storageInfo().accountName()); - Assertions.assertEquals("uhrhcffcyddgl", model.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T12:42:14Z"), model.properties().triggerTime()); + Assertions.assertEquals("mhquvgjxp", model.properties().timeZone()); + Assertions.assertEquals("czmehmtzopbsp", model.properties().resources().get(0).resourceId()); + Assertions.assertEquals("upi", model.properties().resources().get(0).resourceType()); + Assertions.assertEquals("sybbejhph", model.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("sx", model.properties().resources().get(0).accountId()); + Assertions.assertEquals("rifkwm", model.properties().offerGuid()); + Assertions.assertEquals("qs", model.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("eupewnwreitjz", model.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("lusarh", model.properties().storageInfo().accountName()); + Assertions.assertEquals("fcqhsmyurkd", model.properties().storageInfo().location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReportResourceInner model = new ReportResourceInner() - .withProperties(new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-08-24T18:20:56Z")) - .withTimeZone("zafb") + .withProperties(new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-01-03T12:42:14Z")) + .withTimeZone("mhquvgjxp") .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("j") - .withResourceType("btoqcjmkljavbqid") - .withResourceKind("ajzyul") - .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("jkrlkhbzhfepg"), - new ResourceMetadata().withResourceId("gqexzlocxs") - .withResourceType("aierhhb") - .withResourceKind("glu") - .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("tjaodxobnb"))) - .withOfferGuid("clwhijcoejctbz") - .withStorageInfo(new StorageInfo().withSubscriptionId("dzxibqeojnxqbzvd") - .withResourceGroup("t") - .withAccountName("deicbtwnpzao") - .withLocation("uhrhcffcyddgl"))); + new ResourceMetadata().withResourceId("czmehmtzopbsp") + .withResourceType("upi") + .withResourceKind("sybbejhph") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("sx"), + new ResourceMetadata().withResourceId("obhdxbmtqioqjze") + .withResourceType("bmufpown") + .withResourceKind("zhwlrxy") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("qijgkd"))) + .withOfferGuid("rifkwm") + .withStorageInfo(new StorageInfo().withSubscriptionId("qs") + .withResourceGroup("eupewnwreitjz") + .withAccountName("lusarh") + .withLocation("fcqhsmyurkd"))); model = BinaryData.fromObject(model).toObject(ReportResourceInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T18:20:56Z"), model.properties().triggerTime()); - Assertions.assertEquals("zafb", model.properties().timeZone()); - Assertions.assertEquals("j", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("btoqcjmkljavbqid", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("ajzyul", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AZURE, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("jkrlkhbzhfepg", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("clwhijcoejctbz", model.properties().offerGuid()); - Assertions.assertEquals("dzxibqeojnxqbzvd", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("t", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("deicbtwnpzao", model.properties().storageInfo().accountName()); - Assertions.assertEquals("uhrhcffcyddgl", model.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T12:42:14Z"), model.properties().triggerTime()); + Assertions.assertEquals("mhquvgjxp", model.properties().timeZone()); + Assertions.assertEquals("czmehmtzopbsp", model.properties().resources().get(0).resourceId()); + Assertions.assertEquals("upi", model.properties().resources().get(0).resourceType()); + Assertions.assertEquals("sybbejhph", model.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("sx", model.properties().resources().get(0).accountId()); + Assertions.assertEquals("rifkwm", model.properties().offerGuid()); + Assertions.assertEquals("qs", model.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("eupewnwreitjz", model.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("lusarh", model.properties().storageInfo().accountName()); + Assertions.assertEquals("fcqhsmyurkd", model.properties().storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java index 3af7fcd1e0dc..1bf4fd0b4d65 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourceListResultTests.java @@ -1,11 +1,11 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourceListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.ReportResourceListResult; import com.azure.resourcemanager.appcomplianceautomation.models.ResourceOrigin; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -14,22 +14,23 @@ public final class ReportResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReportResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"triggerTime\":\"2021-06-15T07:28:27Z\",\"timeZone\":\"ryffdfdosy\",\"resources\":[{\"resourceId\":\"xpaojakhmsbz\",\"resourceType\":\"crzevdphlx\",\"resourceKind\":\"lthqtrgqjbp\",\"resourceOrigin\":\"GCP\",\"accountId\":\"inzgvfcj\"}],\"status\":\"Failed\",\"errors\":[\"xjtfelluwfzit\",\"np\"],\"tenantId\":\"fpjkjlxofp\",\"offerGuid\":\"hpf\",\"nextTriggerTime\":\"2021-04-11T06:22:09Z\",\"lastTriggerTime\":\"2021-03-22T14:08:21Z\",\"subscriptions\":[\"nmayhuybb\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1068463715,\"failedCount\":783834227,\"manualCount\":92863061,\"notApplicableCount\":895630833,\"pendingCount\":1290742637}},\"storageInfo\":{\"subscriptionId\":\"iheogna\",\"resourceGroup\":\"zxtheotusivyevcc\",\"accountName\":\"ihnhun\",\"location\":\"wjzrnfygxgisp\"},\"certRecords\":[{\"offerGuid\":\"zfkufubljofx\",\"certificationStatus\":\"ofjaeqjhqjb\",\"ingestionStatus\":\"v\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Updating\"},\"id\":\"lngsntnbybkzgcwr\",\"name\":\"clxxwrljdo\",\"type\":\"skcqvkocrcjd\"},{\"properties\":{\"triggerTime\":\"2021-02-17T07:57Z\",\"timeZone\":\"tnhxbn\",\"resources\":[{\"resourceId\":\"iksqr\",\"resourceType\":\"ssainqpjwnzll\",\"resourceKind\":\"mppeebvmgxs\",\"resourceOrigin\":\"GCP\",\"accountId\":\"qduujitcjczdz\"},{\"resourceId\":\"vndhkrwpdapp\",\"resourceType\":\"bdkvwrwjf\",\"resourceKind\":\"snhu\",\"resourceOrigin\":\"GCP\",\"accountId\":\"tmrldhugjzzdatq\"}],\"status\":\"Active\",\"errors\":[\"geablgphuticndvk\",\"ozwyiftyhxhuro\",\"ftyxolniw\"],\"tenantId\":\"cukjf\",\"offerGuid\":\"iawxklry\",\"nextTriggerTime\":\"2021-07-12T14:06:09Z\",\"lastTriggerTime\":\"2021-10-07T14:36:38Z\",\"subscriptions\":[\"syyp\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1420674387,\"failedCount\":1775066996,\"manualCount\":531743918,\"notApplicableCount\":1838469652,\"pendingCount\":750414718}},\"storageInfo\":{\"subscriptionId\":\"ot\",\"resourceGroup\":\"qgoulznd\",\"accountName\":\"kwy\",\"location\":\"gfgibm\"},\"certRecords\":[{\"offerGuid\":\"keqsrxybzqqedq\",\"certificationStatus\":\"bciqfouflm\",\"ingestionStatus\":\"kzsmodm\",\"controls\":[{},{}]},{\"offerGuid\":\"gpbkwtmut\",\"certificationStatus\":\"qktapspwgcuert\",\"ingestionStatus\":\"kdosvqw\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Verifying\"},\"id\":\"bjf\",\"name\":\"dgmb\",\"type\":\"bexppb\"},{\"properties\":{\"triggerTime\":\"2021-04-11T05:58:57Z\",\"timeZone\":\"q\",\"resources\":[{\"resourceId\":\"ol\",\"resourceType\":\"fpsalgbqu\",\"resourceKind\":\"gjyjgzjaoyfhrtxi\",\"resourceOrigin\":\"Azure\",\"accountId\":\"kujysvlejuvfq\"},{\"resourceId\":\"wrlyxwjkcprb\",\"resourceType\":\"b\",\"resourceKind\":\"jvtbvpyss\",\"resourceOrigin\":\"GCP\",\"accountId\":\"uj\"}],\"status\":\"Disabled\",\"errors\":[\"uouq\",\"prwzwbnguitnwui\"],\"tenantId\":\"a\",\"offerGuid\":\"ufizuckyf\",\"nextTriggerTime\":\"2021-05-30T20:21:31Z\",\"lastTriggerTime\":\"2021-03-02T12:22:29Z\",\"subscriptions\":[\"vzwdzuhtymwis\",\"kfthwxmntei\",\"aop\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1406047285,\"failedCount\":1421667576,\"manualCount\":1039605032,\"notApplicableCount\":779341506,\"pendingCount\":292078453}},\"storageInfo\":{\"subscriptionId\":\"srp\",\"resourceGroup\":\"zidnsezcxtbzsgfy\",\"accountName\":\"sne\",\"location\":\"dwzjeiach\"},\"certRecords\":[{\"offerGuid\":\"flnrosfqpteehzz\",\"certificationStatus\":\"pyqr\",\"ingestionStatus\":\"z\",\"controls\":[{},{},{}]},{\"offerGuid\":\"swjdkirso\",\"certificationStatus\":\"qxhcrmn\",\"ingestionStatus\":\"jtckwhdso\",\"controls\":[{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"jxsqwpgrjbz\",\"name\":\"orcjxvsnby\",\"type\":\"qabnmoc\"}],\"nextLink\":\"ysh\"}") + "{\"value\":[{\"properties\":{\"triggerTime\":\"2021-08-06T16:31:09Z\",\"timeZone\":\"ftutqxlngxlefgu\",\"resources\":[{\"resourceId\":\"xkrxdqmi\",\"resourceType\":\"thz\",\"resourceKind\":\"qdrabhjybigehoqf\",\"resourceOrigin\":\"AWS\",\"accountId\":\"kanyktzlcuiywg\"},{\"resourceId\":\"ywgndrv\",\"resourceType\":\"hzgpphrcgyncocpe\",\"resourceKind\":\"vmmcoofs\",\"resourceOrigin\":\"Azure\",\"accountId\":\"v\"}],\"status\":\"Active\",\"errors\":[\"qabcypm\",\"vkwlzuvccfwnf\",\"bacfionlebxetq\",\"tzxdpnqbqqwx\"],\"tenantId\":\"feallnwsu\",\"offerGuid\":\"snjampmng\",\"nextTriggerTime\":\"2021-10-17T15:10:59Z\",\"lastTriggerTime\":\"2021-08-06T20:55:26Z\",\"subscriptions\":[\"wooc\",\"cbonqvpk\",\"lrxnjeaseiphe\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1111118193,\"failedCount\":1242878165,\"manualCount\":674171704,\"notApplicableCount\":354708232,\"pendingCount\":1285754335}},\"storageInfo\":{\"subscriptionId\":\"wtgrhpdjpj\",\"resourceGroup\":\"asxazjpqyegualhb\",\"accountName\":\"hejjz\",\"location\":\"dudgwdslfhot\"},\"certRecords\":[{\"offerGuid\":\"npwlbjnpg\",\"certificationStatus\":\"ftadehxnltyfs\",\"ingestionStatus\":\"pusuesn\",\"controls\":[{},{}]},{\"offerGuid\":\"jbavorxzdm\",\"certificationStatus\":\"ctbqvudwx\",\"ingestionStatus\":\"dnvowg\",\"controls\":[{},{},{}]},{\"offerGuid\":\"gwdkcglhsl\",\"certificationStatus\":\"jdyggdtji\",\"ingestionStatus\":\"b\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Fixing\"},\"id\":\"e\",\"name\":\"kh\",\"type\":\"enevfyexfwhybci\"},{\"properties\":{\"triggerTime\":\"2021-02-12T00:37:49Z\",\"timeZone\":\"yvdcsitynnaa\",\"resources\":[{\"resourceId\":\"ectehf\",\"resourceType\":\"scjeypv\",\"resourceKind\":\"zrkgqhcjrefovg\",\"resourceOrigin\":\"AWS\",\"accountId\":\"leyyvx\"},{\"resourceId\":\"qjpkcattpngjcrc\",\"resourceType\":\"sqpjhvmdajvn\",\"resourceKind\":\"ounqecano\",\"resourceOrigin\":\"GCP\",\"accountId\":\"fhyhltrpmopjmcma\"},{\"resourceId\":\"u\",\"resourceType\":\"thfuiuaodsfcpkvx\",\"resourceKind\":\"puozmyzydag\",\"resourceOrigin\":\"AWS\",\"accountId\":\"bezy\"}],\"status\":\"Reviewing\",\"errors\":[\"twhrdxwzywqsm\"],\"tenantId\":\"ureximoryocfs\",\"offerGuid\":\"s\",\"nextTriggerTime\":\"2021-06-13T04:15:30Z\",\"lastTriggerTime\":\"2021-01-31T18:49:05Z\",\"subscriptions\":[\"kiiuxhqyudxor\"],\"complianceStatus\":{\"m365\":{\"passedCount\":2107942439,\"failedCount\":1747091504,\"manualCount\":1085417867,\"notApplicableCount\":93101784,\"pendingCount\":1447081543}},\"storageInfo\":{\"subscriptionId\":\"kdvjsll\",\"resourceGroup\":\"vvdfwatkpnpul\",\"accountName\":\"xbczwtruwiqz\",\"location\":\"j\"},\"certRecords\":[{\"offerGuid\":\"myokacspkwlh\",\"certificationStatus\":\"obpxjmflbvvn\",\"ingestionStatus\":\"rkcciwwzjuqk\",\"controls\":[{}]}],\"provisioningState\":\"Updating\"},\"id\":\"wkuofoskghsauu\",\"name\":\"mjmvxieduugidyjr\",\"type\":\"f\"},{\"properties\":{\"triggerTime\":\"2021-04-30T20:35:21Z\",\"timeZone\":\"aos\",\"resources\":[{\"resourceId\":\"xc\",\"resourceType\":\"npc\",\"resourceKind\":\"ocohslkevleg\",\"resourceOrigin\":\"Azure\",\"accountId\":\"u\"}],\"status\":\"Disabled\",\"errors\":[\"axkffei\",\"th\",\"vmezy\"],\"tenantId\":\"hxmzsbbzoggig\",\"offerGuid\":\"wburvjxxjnspydpt\",\"nextTriggerTime\":\"2021-09-24T03:08Z\",\"lastTriggerTime\":\"2021-12-01T07:03:23Z\",\"subscriptions\":[\"knvudwtiukb\",\"dng\",\"pocipazyxoegu\"],\"complianceStatus\":{\"m365\":{\"passedCount\":642461794,\"failedCount\":244069221,\"manualCount\":1142457061,\"notApplicableCount\":2112033193,\"pendingCount\":2000492920}},\"storageInfo\":{\"subscriptionId\":\"ntypmrbpizcdrqj\",\"resourceGroup\":\"pyd\",\"accountName\":\"yhxdeoejzicwi\",\"location\":\"jttgzf\"},\"certRecords\":[{\"offerGuid\":\"cbkhajdeyeamdph\",\"certificationStatus\":\"alpbuxwgipwhon\",\"ingestionStatus\":\"kgshwa\",\"controls\":[{},{},{},{}]},{\"offerGuid\":\"zbinjeputtm\",\"certificationStatus\":\"wnuzoqftiyqzrnkc\",\"ingestionStatus\":\"yx\",\"controls\":[{}]},{\"offerGuid\":\"lsicohoqqnwv\",\"certificationStatus\":\"yav\",\"ingestionStatus\":\"heun\",\"controls\":[{},{},{},{}]},{\"offerGuid\":\"gyxzk\",\"certificationStatus\":\"ocukoklyax\",\"ingestionStatus\":\"onuq\",\"controls\":[{},{}]}],\"provisioningState\":\"Fixing\"},\"id\":\"ypewrmjmwvvjekt\",\"name\":\"xsenhwlr\",\"type\":\"ffrzpwvlqdqgbiqy\"}],\"nextLink\":\"hkaetcktvfc\"}") .toObject(ReportResourceListResult.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T07:28:27Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-06T16:31:09Z"), model.value().get(0).properties().triggerTime()); - Assertions.assertEquals("ryffdfdosy", model.value().get(0).properties().timeZone()); - Assertions.assertEquals("xpaojakhmsbz", model.value().get(0).properties().resources().get(0).resourceId()); - Assertions.assertEquals("crzevdphlx", model.value().get(0).properties().resources().get(0).resourceType()); - Assertions.assertEquals("lthqtrgqjbp", model.value().get(0).properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, + Assertions.assertEquals("ftutqxlngxlefgu", model.value().get(0).properties().timeZone()); + Assertions.assertEquals("xkrxdqmi", model.value().get(0).properties().resources().get(0).resourceId()); + Assertions.assertEquals("thz", model.value().get(0).properties().resources().get(0).resourceType()); + Assertions.assertEquals("qdrabhjybigehoqf", + model.value().get(0).properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.value().get(0).properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("inzgvfcj", model.value().get(0).properties().resources().get(0).accountId()); - Assertions.assertEquals("hpf", model.value().get(0).properties().offerGuid()); - Assertions.assertEquals("iheogna", model.value().get(0).properties().storageInfo().subscriptionId()); - Assertions.assertEquals("zxtheotusivyevcc", model.value().get(0).properties().storageInfo().resourceGroup()); - Assertions.assertEquals("ihnhun", model.value().get(0).properties().storageInfo().accountName()); - Assertions.assertEquals("wjzrnfygxgisp", model.value().get(0).properties().storageInfo().location()); - Assertions.assertEquals("ysh", model.nextLink()); + Assertions.assertEquals("kanyktzlcuiywg", model.value().get(0).properties().resources().get(0).accountId()); + Assertions.assertEquals("snjampmng", model.value().get(0).properties().offerGuid()); + Assertions.assertEquals("wtgrhpdjpj", model.value().get(0).properties().storageInfo().subscriptionId()); + Assertions.assertEquals("asxazjpqyegualhb", model.value().get(0).properties().storageInfo().resourceGroup()); + Assertions.assertEquals("hejjz", model.value().get(0).properties().storageInfo().accountName()); + Assertions.assertEquals("dudgwdslfhot", model.value().get(0).properties().storageInfo().location()); + Assertions.assertEquals("hkaetcktvfc", model.nextLink()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.java index 902178a67b56..781e41e750dd 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportResourcePatchTests.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.generated; @@ -18,60 +18,49 @@ public final class ReportResourcePatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReportResourcePatch model = BinaryData.fromString( - "{\"properties\":{\"triggerTime\":\"2021-05-02T19:00:13Z\",\"timeZone\":\"hltrpmopjmcmatuo\",\"resources\":[{\"resourceId\":\"fu\",\"resourceType\":\"aodsfcpkv\",\"resourceKind\":\"dpuozmyz\",\"resourceOrigin\":\"GCP\",\"accountId\":\"fuaxbe\"},{\"resourceId\":\"yiuokktwh\",\"resourceType\":\"xw\",\"resourceKind\":\"wqsmbsur\",\"resourceOrigin\":\"AWS\",\"accountId\":\"o\"},{\"resourceId\":\"yocf\",\"resourceType\":\"ksymd\",\"resourceKind\":\"stkiiuxhqyud\",\"resourceOrigin\":\"GCP\",\"accountId\":\"qn\"}],\"status\":\"Failed\",\"errors\":[\"vyifqrvkdvjsl\",\"rm\",\"vdfwatkpn\"],\"tenantId\":\"lexxbczwtru\",\"offerGuid\":\"qzbqjvsov\",\"nextTriggerTime\":\"2020-12-29T19:47:48Z\",\"lastTriggerTime\":\"2021-11-07T20:31:54Z\",\"subscriptions\":[\"pkwlhz\",\"obpxjmflbvvn\",\"hrk\",\"ciwwzjuqkhr\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1410521625,\"failedCount\":481973669,\"manualCount\":1163138760,\"notApplicableCount\":627324313,\"pendingCount\":1637974204}},\"storageInfo\":{\"subscriptionId\":\"auu\",\"resourceGroup\":\"jmvxie\",\"accountName\":\"ugidyjrr\",\"location\":\"y\"},\"certRecords\":[{\"offerGuid\":\"e\",\"certificationStatus\":\"sonpclhocohs\",\"ingestionStatus\":\"ev\",\"controls\":[{\"controlId\":\"zfbuhf\",\"controlStatus\":\"faxkffeii\"},{\"controlId\":\"lvmezyvshxmzsbbz\",\"controlStatus\":\"gigr\"}]},{\"offerGuid\":\"burvjxxjnspy\",\"certificationStatus\":\"tko\",\"ingestionStatus\":\"kouknvudwtiu\",\"controls\":[{\"controlId\":\"ngkpocipazy\",\"controlStatus\":\"egukgjnpiucg\"},{\"controlId\":\"evqzntypmrbp\",\"controlStatus\":\"c\"},{\"controlId\":\"qjsdpydnfyhxdeo\",\"controlStatus\":\"zi\"}]},{\"offerGuid\":\"ifsjttgzfbishcb\",\"certificationStatus\":\"ajdeyeamdphaga\",\"ingestionStatus\":\"buxwgip\",\"controls\":[{\"controlId\":\"ow\",\"controlStatus\":\"shwankixzbinje\"},{\"controlId\":\"ttmrywnuzoqf\",\"controlStatus\":\"yqzrnkcqvyxlw\"}]},{\"offerGuid\":\"lsicohoqqnwv\",\"certificationStatus\":\"yav\",\"ingestionStatus\":\"heun\",\"controls\":[{\"controlId\":\"gyxzk\",\"controlStatus\":\"ocukoklyax\"},{\"controlId\":\"onuq\",\"controlStatus\":\"fkbey\"},{\"controlId\":\"wrmjmwvvjektc\",\"controlStatus\":\"enhwlrs\"},{\"controlId\":\"rzpwvlqdqgbiq\",\"controlStatus\":\"ihkaetcktvfc\"}]}],\"provisioningState\":\"Deleting\"}}") + "{\"properties\":{\"triggerTime\":\"2021-06-25T18:50:31Z\",\"timeZone\":\"qxhocdgeablgphut\",\"resources\":[{\"resourceId\":\"dvkaozw\",\"resourceType\":\"ftyhxhurokf\",\"resourceKind\":\"xolniwpwcukjfk\",\"resourceOrigin\":\"AWS\",\"accountId\":\"xklrypl\"}],\"status\":\"Failed\",\"errors\":[\"syyp\"],\"tenantId\":\"dhsgcba\",\"offerGuid\":\"hejkotynqgou\",\"nextTriggerTime\":\"2021-01-30T20:47:53Z\",\"lastTriggerTime\":\"2021-03-19T07:27:19Z\",\"subscriptions\":[\"wyqkgfgibm\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1464742216,\"failedCount\":712813176,\"manualCount\":1093417192,\"notApplicableCount\":384573586,\"pendingCount\":1438808958}},\"storageInfo\":{\"subscriptionId\":\"e\",\"resourceGroup\":\"ytb\",\"accountName\":\"qfou\",\"location\":\"mmnkzsmodmgl\"},\"certRecords\":[{\"offerGuid\":\"b\",\"certificationStatus\":\"tmut\",\"ingestionStatus\":\"qktapspwgcuert\",\"controls\":[{\"controlId\":\"o\",\"controlStatus\":\"qw\"},{\"controlId\":\"mdgbbjfdd\",\"controlStatus\":\"bmbexppbhtqqro\"}]},{\"offerGuid\":\"p\",\"certificationStatus\":\"s\",\"ingestionStatus\":\"gbquxigj\",\"controls\":[{\"controlId\":\"jaoyfhrtx\",\"controlStatus\":\"n\"},{\"controlId\":\"kujysvlejuvfq\",\"controlStatus\":\"rlyxwjkcprbnw\"},{\"controlId\":\"gjvtbv\",\"controlStatus\":\"sszdnru\"},{\"controlId\":\"guhmuouqfpr\",\"controlStatus\":\"wbnguitnwui\"}]},{\"offerGuid\":\"a\",\"certificationStatus\":\"ufizuckyf\",\"ingestionStatus\":\"rfidfvzwdz\",\"controls\":[{\"controlId\":\"mwisdkfthwxmnt\",\"controlStatus\":\"waopvkmijcmmxd\"}]}],\"provisioningState\":\"Deleting\"}}") .toObject(ReportResourcePatch.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-02T19:00:13Z"), model.properties().triggerTime()); - Assertions.assertEquals("hltrpmopjmcmatuo", model.properties().timeZone()); - Assertions.assertEquals("fu", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("aodsfcpkv", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("dpuozmyz", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("fuaxbe", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("qzbqjvsov", model.properties().offerGuid()); - Assertions.assertEquals("auu", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("jmvxie", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("ugidyjrr", model.properties().storageInfo().accountName()); - Assertions.assertEquals("y", model.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T18:50:31Z"), model.properties().triggerTime()); + Assertions.assertEquals("qxhocdgeablgphut", model.properties().timeZone()); + Assertions.assertEquals("dvkaozw", model.properties().resources().get(0).resourceId()); + Assertions.assertEquals("ftyhxhurokf", model.properties().resources().get(0).resourceType()); + Assertions.assertEquals("xolniwpwcukjfk", model.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("xklrypl", model.properties().resources().get(0).accountId()); + Assertions.assertEquals("hejkotynqgou", model.properties().offerGuid()); + Assertions.assertEquals("e", model.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("ytb", model.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("qfou", model.properties().storageInfo().accountName()); + Assertions.assertEquals("mmnkzsmodmgl", model.properties().storageInfo().location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReportResourcePatch model = new ReportResourcePatch() - .withProperties(new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-05-02T19:00:13Z")) - .withTimeZone("hltrpmopjmcmatuo") - .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("fu") - .withResourceType("aodsfcpkv") - .withResourceKind("dpuozmyz") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("fuaxbe"), - new ResourceMetadata().withResourceId("yiuokktwh") - .withResourceType("xw") - .withResourceKind("wqsmbsur") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("o"), - new ResourceMetadata().withResourceId("yocf") - .withResourceType("ksymd") - .withResourceKind("stkiiuxhqyud") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("qn"))) - .withOfferGuid("qzbqjvsov") - .withStorageInfo(new StorageInfo().withSubscriptionId("auu") - .withResourceGroup("jmvxie") - .withAccountName("ugidyjrr") - .withLocation("y"))); + .withProperties(new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-06-25T18:50:31Z")) + .withTimeZone("qxhocdgeablgphut") + .withResources(Arrays.asList(new ResourceMetadata().withResourceId("dvkaozw") + .withResourceType("ftyhxhurokf") + .withResourceKind("xolniwpwcukjfk") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("xklrypl"))) + .withOfferGuid("hejkotynqgou") + .withStorageInfo(new StorageInfo().withSubscriptionId("e") + .withResourceGroup("ytb") + .withAccountName("qfou") + .withLocation("mmnkzsmodmgl"))); model = BinaryData.fromObject(model).toObject(ReportResourcePatch.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-02T19:00:13Z"), model.properties().triggerTime()); - Assertions.assertEquals("hltrpmopjmcmatuo", model.properties().timeZone()); - Assertions.assertEquals("fu", model.properties().resources().get(0).resourceId()); - Assertions.assertEquals("aodsfcpkv", model.properties().resources().get(0).resourceType()); - Assertions.assertEquals("dpuozmyz", model.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("fuaxbe", model.properties().resources().get(0).accountId()); - Assertions.assertEquals("qzbqjvsov", model.properties().offerGuid()); - Assertions.assertEquals("auu", model.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("jmvxie", model.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("ugidyjrr", model.properties().storageInfo().accountName()); - Assertions.assertEquals("y", model.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T18:50:31Z"), model.properties().triggerTime()); + Assertions.assertEquals("qxhocdgeablgphut", model.properties().timeZone()); + Assertions.assertEquals("dvkaozw", model.properties().resources().get(0).resourceId()); + Assertions.assertEquals("ftyhxhurokf", model.properties().resources().get(0).resourceType()); + Assertions.assertEquals("xolniwpwcukjfk", model.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, model.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("xklrypl", model.properties().resources().get(0).accountId()); + Assertions.assertEquals("hejkotynqgou", model.properties().offerGuid()); + Assertions.assertEquals("e", model.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("ytb", model.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("qfou", model.properties().storageInfo().accountName()); + Assertions.assertEquals("mmnkzsmodmgl", model.properties().storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.java index 9a17a61dcac9..882bcfc7775e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportVerificationResultInnerTests.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.generated; @@ -10,8 +10,7 @@ public final class ReportVerificationResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ReportVerificationResultInner model - = BinaryData.fromString("{\"result\":\"Failed\",\"reason\":\"ycnunvjsrtk\"}") - .toObject(ReportVerificationResultInner.class); + ReportVerificationResultInner model = BinaryData.fromString("{\"result\":\"Succeeded\",\"reason\":\"xpkd\"}") + .toObject(ReportVerificationResultInner.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCheckNameAvailabilityWithResponseMockTests.java similarity index 75% rename from sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests.java rename to sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCheckNameAvailabilityWithResponseMockTests.java index 97ae9c85e84b..2bda80d8b2cc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCheckNameAvailabilityWithResponseMockTests.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.generated; @@ -19,10 +19,10 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class ReportsNestedResourceCheckNameAvailabilityWithResponseMockTests { +public final class ReportsCheckNameAvailabilityWithResponseMockTests { @Test - public void testNestedResourceCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"ukkjqnvbroyla\"}"; + public void testCheckNameAvailabilityWithResponse() throws Exception { + String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"xynl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,12 @@ public void testNestedResourceCheckNameAvailabilityWithResponse() throws Excepti new AzureProfile("", "", AzureEnvironment.AZURE)); CheckNameAvailabilityResponse response = manager.reports() - .nestedResourceCheckNameAvailabilityWithResponse("brjlnacgcckknhxk", - new CheckNameAvailabilityRequest().withName("v").withType("nrzvuljraaer"), - com.azure.core.util.Context.NONE) + .checkNameAvailabilityWithResponse("maxriz", + new CheckNameAvailabilityRequest().withName("obgop").withType("hsln"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(true, response.nameAvailable()); Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("ukkjqnvbroyla", response.message()); + Assertions.assertEquals("xynl", response.message()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.java index 9cd127315ce8..e747049a84c2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsCreateOrUpdateMockTests.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.generated; @@ -27,7 +27,7 @@ public final class ReportsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-09-04T20:01:09Z\",\"timeZone\":\"s\",\"resources\":[{\"resourceId\":\"nbtgkbugrjqctoj\",\"resourceType\":\"isofieypefojyqd\",\"resourceKind\":\"u\",\"resourceOrigin\":\"AWS\",\"accountId\":\"lcwkhihihlhz\"}],\"status\":\"Active\",\"errors\":[\"bsrgnowc\",\"hfgmvecactxm\",\"oteyowc\"],\"tenantId\":\"qovekqvgqou\",\"offerGuid\":\"fzmpjwyivq\",\"nextTriggerTime\":\"2021-03-25T17:15:32Z\",\"lastTriggerTime\":\"2021-08-25T08:05:15Z\",\"subscriptions\":[\"rfsphuagrt\",\"ikteusqczkvyk\",\"xubyjaffmmfblcqc\",\"ubgq\"],\"complianceStatus\":{\"m365\":{\"passedCount\":75239046,\"failedCount\":2109412730,\"manualCount\":1066879045,\"notApplicableCount\":38344578,\"pendingCount\":1081428420}},\"storageInfo\":{\"subscriptionId\":\"lqxihhrmooiz\",\"resourceGroup\":\"eypxiutcxapzhyr\",\"accountName\":\"togebjoxsl\",\"location\":\"nhl\"},\"certRecords\":[{\"offerGuid\":\"nk\",\"certificationStatus\":\"jcjbt\",\"ingestionStatus\":\"aehvvibrxjjstoq\",\"controls\":[{}]},{\"offerGuid\":\"pkxztmoobkl\",\"certificationStatus\":\"idgfc\",\"ingestionStatus\":\"mpimaqxzhemjyh\",\"controls\":[{}]},{\"offerGuid\":\"swtwkozzwc\",\"certificationStatus\":\"kb\",\"ingestionStatus\":\"pfajnjwltlwtjj\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"hsnvkcdmxzrp\",\"name\":\"aimlnwiaaom\",\"type\":\"l\"}"; + = "{\"properties\":{\"triggerTime\":\"2021-08-09T21:38:20Z\",\"timeZone\":\"es\",\"resources\":[{\"resourceId\":\"dlpagzrcxfail\",\"resourceType\":\"xwmdboxd\",\"resourceKind\":\"sftufqobrjlna\",\"resourceOrigin\":\"Azure\",\"accountId\":\"kknhxkizvytnrzv\"},{\"resourceId\":\"lj\",\"resourceType\":\"aeranokqgukkjqnv\",\"resourceKind\":\"oylaxxul\",\"resourceOrigin\":\"GCP\",\"accountId\":\"dosfjbjsvgjrw\"}],\"status\":\"Disabled\",\"errors\":[\"cytdclxgccknfnwm\"],\"tenantId\":\"mvpdvjdhttzaef\",\"offerGuid\":\"x\",\"nextTriggerTime\":\"2021-02-09T11:19:45Z\",\"lastTriggerTime\":\"2021-02-26T01:00:55Z\",\"subscriptions\":[\"k\"],\"complianceStatus\":{\"m365\":{\"passedCount\":903968902,\"failedCount\":841583452,\"manualCount\":1496434745,\"notApplicableCount\":949510054,\"pendingCount\":320306874}},\"storageInfo\":{\"subscriptionId\":\"gkylkdghr\",\"resourceGroup\":\"uutlwxezwzhok\",\"accountName\":\"wnhhtqlgehgppip\",\"location\":\"hpfeoajvgcxtxjc\"},\"certRecords\":[{\"offerGuid\":\"fidltug\",\"certificationStatus\":\"esmkssjhoiftxfkf\",\"ingestionStatus\":\"gpr\",\"controls\":[{},{},{}]},{\"offerGuid\":\"llu\",\"certificationStatus\":\"iqtgdqoh\",\"ingestionStatus\":\"wsldrizetpwbr\",\"controls\":[{},{},{},{}]},{\"offerGuid\":\"ibph\",\"certificationStatus\":\"zmizakakan\",\"ingestionStatus\":\"p\",\"controls\":[{},{}]},{\"offerGuid\":\"ha\",\"certificationStatus\":\"ylhjlm\",\"ingestionStatus\":\"y\",\"controls\":[{},{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"sopteecj\",\"name\":\"eislstvasylwx\",\"type\":\"zaum\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,39 +37,49 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ReportResource response = manager.reports() - .createOrUpdate("raauzzpt", + .createOrUpdate("vcpwpgclrc", new ReportResourceInner() - .withProperties(new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-02-18T00:50:05Z")) - .withTimeZone("zysdzh") + .withProperties(new ReportProperties().withTriggerTime(OffsetDateTime.parse("2021-06-07T01:59:28Z")) + .withTimeZone("tso") .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("wwvaiqyuvvfonk") - .withResourceType("hqyikvy") - .withResourceKind("uyav") + new ResourceMetadata().withResourceId("rkenx") + .withResourceType("yyefrpmpdnqqs") + .withResourceKind("waoqvmmb") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("rtql"), + new ResourceMetadata().withResourceId("zmegnitgvk") + .withResourceType("zyqdrfegcealzx") + .withResourceKind("cansymoyqhlwigd") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("bxgomfaj"), + new ResourceMetadata().withResourceId("wasqvdaeyyg") + .withResourceType("akjsqz") + .withResourceKind("bezkgimsidxasic") .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("ncstt"), - new ResourceMetadata().withResourceId("jfybvpoekrsgsgb") - .withResourceType("uzqgnjdgkynsc") - .withResourceKind("qhzvhxnkomt") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("tppn"))) - .withOfferGuid("xvd") - .withStorageInfo(new StorageInfo().withSubscriptionId("xg") - .withResourceGroup("oyxcdyuib") - .withAccountName("fdn") - .withLocation("ydvfvfcjnae"))), + .withAccountId("vjskgfmoc"), + new ResourceMetadata().withResourceId("ah") + .withResourceType("gat") + .withResourceKind("a") + .withResourceOrigin(ResourceOrigin.AWS) + .withAccountId("jhhn"))) + .withOfferGuid("mjbnk") + .withStorageInfo(new StorageInfo().withSubscriptionId("mx") + .withResourceGroup("ekkkzd") + .withAccountName("tkgdojbmxva") + .withLocation("efdeesve"))), com.azure.core.util.Context.NONE); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-04T20:01:09Z"), response.properties().triggerTime()); - Assertions.assertEquals("s", response.properties().timeZone()); - Assertions.assertEquals("nbtgkbugrjqctoj", response.properties().resources().get(0).resourceId()); - Assertions.assertEquals("isofieypefojyqd", response.properties().resources().get(0).resourceType()); - Assertions.assertEquals("u", response.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, response.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("lcwkhihihlhz", response.properties().resources().get(0).accountId()); - Assertions.assertEquals("fzmpjwyivq", response.properties().offerGuid()); - Assertions.assertEquals("lqxihhrmooiz", response.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("eypxiutcxapzhyr", response.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("togebjoxsl", response.properties().storageInfo().accountName()); - Assertions.assertEquals("nhl", response.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T21:38:20Z"), response.properties().triggerTime()); + Assertions.assertEquals("es", response.properties().timeZone()); + Assertions.assertEquals("dlpagzrcxfail", response.properties().resources().get(0).resourceId()); + Assertions.assertEquals("xwmdboxd", response.properties().resources().get(0).resourceType()); + Assertions.assertEquals("sftufqobrjlna", response.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AZURE, response.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("kknhxkizvytnrzv", response.properties().resources().get(0).accountId()); + Assertions.assertEquals("x", response.properties().offerGuid()); + Assertions.assertEquals("gkylkdghr", response.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("uutlwxezwzhok", response.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("wnhhtqlgehgppip", response.properties().storageInfo().accountName()); + Assertions.assertEquals("hpfeoajvgcxtxjc", response.properties().storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.java index b666bd9c9074..fc3d5d42219f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsFixMockTests.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.generated; @@ -19,7 +19,7 @@ public final class ReportsFixMockTests { @Test public void testFix() throws Exception { - String responseStr = "{\"result\":\"Succeeded\",\"reason\":\"svgjrwhryvy\"}"; + String responseStr = "{\"result\":\"Succeeded\",\"reason\":\"lhc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -28,7 +28,7 @@ public void testFix() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - ReportFixResult response = manager.reports().fix("xulcdisdos", com.azure.core.util.Context.NONE); + ReportFixResult response = manager.reports().fix("xecwcro", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.java index f7eedf91a19a..6bc05ffaa015 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetScopingQuestionsWithResponseMockTests.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.generated; @@ -20,7 +20,7 @@ public final class ReportsGetScopingQuestionsWithResponseMockTests { @Test public void testGetScopingQuestionsWithResponse() throws Exception { String responseStr - = "{\"questions\":[{\"questionId\":\"ccknfnwmbtmvp\",\"superiorQuestionId\":\"jdhttzaefedxi\",\"inputType\":\"MultiSelectDropdownCustom\",\"optionIds\":[\"rphkmcrjdqnsdfz\",\"bg\",\"gkylkdghr\"],\"rules\":[\"PublisherVerification\",\"PublicSOX\",\"AzureApplication\"],\"showSubQuestionsValue\":\"wxezwzhok\"}]}"; + = "{\"questions\":[{\"questionId\":\"rqjb\",\"superiorQuestionId\":\"zhraglkafh\",\"inputType\":\"MultiSelectDropdown\",\"optionIds\":[\"juj\",\"ickpz\",\"cpopmxel\",\"wcltyjede\"],\"rules\":[\"Urls\"],\"showSubQuestionsValue\":\"f\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,9 @@ public void testGetScopingQuestionsWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - ScopingQuestions response - = manager.reports().getScopingQuestionsWithResponse("ytdc", com.azure.core.util.Context.NONE).getValue(); + ScopingQuestions response = manager.reports() + .getScopingQuestionsWithResponse("wjutifdwfmv", com.azure.core.util.Context.NONE) + .getValue(); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.java index 302e8dd00865..ec55334ef028 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsGetWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class ReportsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-10-13T17:41:15Z\",\"timeZone\":\"cjdx\",\"resources\":[{\"resourceId\":\"bzo\",\"resourceType\":\"culapzwyrpgogtq\",\"resourceKind\":\"pnylb\",\"resourceOrigin\":\"Azure\",\"accountId\":\"lyjt\"},{\"resourceId\":\"vofqzhvfc\",\"resourceType\":\"yfm\",\"resourceKind\":\"uxrkjp\",\"resourceOrigin\":\"Azure\",\"accountId\":\"fzwiivwzjbhyz\"}],\"status\":\"Disabled\",\"errors\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"tenantId\":\"peewchpxlkt\",\"offerGuid\":\"uziycsl\",\"nextTriggerTime\":\"2021-06-28T05:31:47Z\",\"lastTriggerTime\":\"2021-08-14T04:43:23Z\",\"subscriptions\":[\"cktyh\",\"tqedcgzulwm\",\"rqzz\",\"rjvpglydzgkrvqee\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1014603209,\"failedCount\":1266268287,\"manualCount\":108809884,\"notApplicableCount\":479918870,\"pendingCount\":2045022432}},\"storageInfo\":{\"subscriptionId\":\"dmovzvfva\",\"resourceGroup\":\"zqadf\",\"accountName\":\"z\",\"location\":\"iglaecx\"},\"certRecords\":[{\"offerGuid\":\"cokpv\",\"certificationStatus\":\"lqtmldgxob\",\"ingestionStatus\":\"rclnpkc\",\"controls\":[{},{}]}],\"provisioningState\":\"Updating\"},\"id\":\"ykhyawfvjlboxqvk\",\"name\":\"lmxhomdyn\",\"type\":\"dwdigumb\"}"; + = "{\"properties\":{\"triggerTime\":\"2021-03-07T07:53:09Z\",\"timeZone\":\"oaimlnw\",\"resources\":[{\"resourceId\":\"aomylwea\",\"resourceType\":\"lcsethwwnpj\",\"resourceKind\":\"fz\",\"resourceOrigin\":\"GCP\",\"accountId\":\"hwahfbousn\"},{\"resourceId\":\"epgfew\",\"resourceType\":\"wlyxgncxyk\",\"resourceKind\":\"djhlimm\",\"resourceOrigin\":\"Azure\",\"accountId\":\"h\"},{\"resourceId\":\"cporxvxcjz\",\"resourceType\":\"izxfpxt\",\"resourceKind\":\"scjavftju\",\"resourceOrigin\":\"Azure\",\"accountId\":\"zkmtgguwpijrajci\"}],\"status\":\"Disabled\",\"errors\":[\"f\"],\"tenantId\":\"iwrxgkn\",\"offerGuid\":\"vyi\",\"nextTriggerTime\":\"2021-01-25T20:49:17Z\",\"lastTriggerTime\":\"2021-01-28T01:28:40Z\",\"subscriptions\":[\"pgshoxgsgbpfgz\",\"jtxvzflbqvgaq\",\"lgafcqusrdve\"],\"complianceStatus\":{\"m365\":{\"passedCount\":89870573,\"failedCount\":1022807330,\"manualCount\":2027553854,\"notApplicableCount\":1456659976,\"pendingCount\":1517277198}},\"storageInfo\":{\"subscriptionId\":\"vuzhyr\",\"resourceGroup\":\"wipmvekdxuk\",\"accountName\":\"gsjj\",\"location\":\"n\"},\"certRecords\":[{\"offerGuid\":\"etw\",\"certificationStatus\":\"hzjhf\",\"ingestionStatus\":\"hvvmuvgpmun\",\"controls\":[{}]},{\"offerGuid\":\"vmhfbuz\",\"certificationStatus\":\"ihsasb\",\"ingestionStatus\":\"dyp\",\"controls\":[{}]},{\"offerGuid\":\"emslynsqyrp\",\"certificationStatus\":\"obrltt\",\"ingestionStatus\":\"sjnygqdnfwqzdzgt\",\"controls\":[{},{}]}],\"provisioningState\":\"Verifying\"},\"id\":\"fhqlyvi\",\"name\":\"ouwivkxoyzunbixx\",\"type\":\"ti\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,19 +32,19 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ReportResource response - = manager.reports().getWithResponse("msgeivsiykzk", com.azure.core.util.Context.NONE).getValue(); + = manager.reports().getWithResponse("uktalhsnvkcdmxz", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T17:41:15Z"), response.properties().triggerTime()); - Assertions.assertEquals("cjdx", response.properties().timeZone()); - Assertions.assertEquals("bzo", response.properties().resources().get(0).resourceId()); - Assertions.assertEquals("culapzwyrpgogtq", response.properties().resources().get(0).resourceType()); - Assertions.assertEquals("pnylb", response.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AZURE, response.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("lyjt", response.properties().resources().get(0).accountId()); - Assertions.assertEquals("uziycsl", response.properties().offerGuid()); - Assertions.assertEquals("dmovzvfva", response.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("zqadf", response.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("z", response.properties().storageInfo().accountName()); - Assertions.assertEquals("iglaecx", response.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-07T07:53:09Z"), response.properties().triggerTime()); + Assertions.assertEquals("oaimlnw", response.properties().timeZone()); + Assertions.assertEquals("aomylwea", response.properties().resources().get(0).resourceId()); + Assertions.assertEquals("lcsethwwnpj", response.properties().resources().get(0).resourceType()); + Assertions.assertEquals("fz", response.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.GCP, response.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("hwahfbousn", response.properties().resources().get(0).accountId()); + Assertions.assertEquals("vyi", response.properties().offerGuid()); + Assertions.assertEquals("vuzhyr", response.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("wipmvekdxuk", response.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("gsjj", response.properties().storageInfo().accountName()); + Assertions.assertEquals("n", response.properties().storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.java index f80778236beb..c2cf24611b78 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsListMockTests.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.generated; @@ -23,7 +23,7 @@ public final class ReportsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"triggerTime\":\"2021-12-03T21:08:29Z\",\"timeZone\":\"loazuruocbgoo\",\"resources\":[{\"resourceId\":\"te\",\"resourceType\":\"bfhjxakvvjgsl\",\"resourceKind\":\"dilmyww\",\"resourceOrigin\":\"AWS\",\"accountId\":\"xnyed\"},{\"resourceId\":\"b\",\"resourceType\":\"vudtjuewbcihx\",\"resourceKind\":\"whcjyxcc\",\"resourceOrigin\":\"AWS\",\"accountId\":\"ayakkudzpx\"}],\"status\":\"Reviewing\",\"errors\":[\"mag\"],\"tenantId\":\"cyohpfkyrkdbd\",\"offerGuid\":\"ogsjkmnwqjno\",\"nextTriggerTime\":\"2021-01-19T13:37:50Z\",\"lastTriggerTime\":\"2021-12-10T12:55:18Z\",\"subscriptions\":[\"viacegfnmntfpmv\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1649759602,\"failedCount\":325051200,\"manualCount\":880683863,\"notApplicableCount\":97692731,\"pendingCount\":91820955}},\"storageInfo\":{\"subscriptionId\":\"lllchpodb\",\"resourceGroup\":\"vwrdnhfukuvsj\",\"accountName\":\"wsmystuluqypf\",\"location\":\"lerchpq\"},\"certRecords\":[{\"offerGuid\":\"jbabwidf\",\"certificationStatus\":\"sspuunnoxyhkx\",\"ingestionStatus\":\"ddrihpf\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Fixing\"},\"id\":\"ewda\",\"name\":\"mdjvlpj\",\"type\":\"xkzb\"}]}"; + = "{\"value\":[{\"properties\":{\"triggerTime\":\"2021-06-17T04:22:53Z\",\"timeZone\":\"ypundmbxhugc\",\"resources\":[{\"resourceId\":\"k\",\"resourceType\":\"lgorb\",\"resourceKind\":\"tp\",\"resourceOrigin\":\"Azure\",\"accountId\":\"fjltfvnzcyjtotp\"},{\"resourceId\":\"opv\",\"resourceType\":\"dbzqgqqihed\",\"resourceKind\":\"qwthmky\",\"resourceOrigin\":\"GCP\",\"accountId\":\"sihsgqcwdhohsd\"}],\"status\":\"Failed\",\"errors\":[\"sufco\"],\"tenantId\":\"xbzlmc\",\"offerGuid\":\"apcvhdbe\",\"nextTriggerTime\":\"2021-02-16T08:02:42Z\",\"lastTriggerTime\":\"2021-10-19T03:06:18Z\",\"subscriptions\":[\"skonqzinkf\",\"bgbzbowxeqoclj\",\"ygvkzqkjj\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1401279651,\"failedCount\":1236103657,\"manualCount\":50022372,\"notApplicableCount\":2083826558,\"pendingCount\":2052140485}},\"storageInfo\":{\"subscriptionId\":\"rtle\",\"resourceGroup\":\"q\",\"accountName\":\"kwv\",\"location\":\"nzvdfbzdixzmq\"},\"certRecords\":[{\"offerGuid\":\"awopqh\",\"certificationStatus\":\"jptmcgsbost\",\"ingestionStatus\":\"lnd\",\"controls\":[{},{}]},{\"offerGuid\":\"tmzlbiojlv\",\"certificationStatus\":\"rbbpneqvcwwyy\",\"ingestionStatus\":\"mochpprprsnmok\",\"controls\":[{},{}]},{\"offerGuid\":\"jnhlbkpbzpcpiljh\",\"certificationStatus\":\"zv\",\"ingestionStatus\":\"h\",\"controls\":[{},{},{}]},{\"offerGuid\":\"wieholewjwiu\",\"certificationStatus\":\"wefqsfapaqtferr\",\"ingestionStatus\":\"ex\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Failed\"},\"id\":\"pjwogqqno\",\"name\":\"pud\",\"type\":\"dabtqwp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,23 +33,23 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.reports() - .list("zivj", 1398349003, "rqttbajlkatnw", "yiopi", "kqqfk", "vscx", "dmligovibrxk", + .list("mexiitdfuxt", 1550177536, "siibmiybnnustgn", "jh", "mgixhcmavmqfou", "or", "cgyypro", com.azure.core.util.Context.NONE); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-03T21:08:29Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T04:22:53Z"), response.iterator().next().properties().triggerTime()); - Assertions.assertEquals("loazuruocbgoo", response.iterator().next().properties().timeZone()); - Assertions.assertEquals("te", response.iterator().next().properties().resources().get(0).resourceId()); - Assertions.assertEquals("bfhjxakvvjgsl", - response.iterator().next().properties().resources().get(0).resourceType()); - Assertions.assertEquals("dilmyww", response.iterator().next().properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.AWS, + Assertions.assertEquals("ypundmbxhugc", response.iterator().next().properties().timeZone()); + Assertions.assertEquals("k", response.iterator().next().properties().resources().get(0).resourceId()); + Assertions.assertEquals("lgorb", response.iterator().next().properties().resources().get(0).resourceType()); + Assertions.assertEquals("tp", response.iterator().next().properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AZURE, response.iterator().next().properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("xnyed", response.iterator().next().properties().resources().get(0).accountId()); - Assertions.assertEquals("ogsjkmnwqjno", response.iterator().next().properties().offerGuid()); - Assertions.assertEquals("lllchpodb", response.iterator().next().properties().storageInfo().subscriptionId()); - Assertions.assertEquals("vwrdnhfukuvsj", response.iterator().next().properties().storageInfo().resourceGroup()); - Assertions.assertEquals("wsmystuluqypf", response.iterator().next().properties().storageInfo().accountName()); - Assertions.assertEquals("lerchpq", response.iterator().next().properties().storageInfo().location()); + Assertions.assertEquals("fjltfvnzcyjtotp", + response.iterator().next().properties().resources().get(0).accountId()); + Assertions.assertEquals("apcvhdbe", response.iterator().next().properties().offerGuid()); + Assertions.assertEquals("rtle", response.iterator().next().properties().storageInfo().subscriptionId()); + Assertions.assertEquals("q", response.iterator().next().properties().storageInfo().resourceGroup()); + Assertions.assertEquals("kwv", response.iterator().next().properties().storageInfo().accountName()); + Assertions.assertEquals("nzvdfbzdixzmq", response.iterator().next().properties().storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.java index 542521d1fd7d..b34f55debbbc 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsSyncCertRecordMockTests.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.generated; @@ -25,7 +25,7 @@ public final class ReportsSyncCertRecordMockTests { @Test public void testSyncCertRecord() throws Exception { String responseStr - = "{\"certRecord\":{\"offerGuid\":\"ill\",\"certificationStatus\":\"biqtgdq\",\"ingestionStatus\":\"mcwsldrizetpwb\",\"controls\":[{\"controlId\":\"libph\",\"controlStatus\":\"zmizakakan\"},{\"controlId\":\"p\",\"controlStatus\":\"jzhajoy\"}]}}"; + = "{\"certRecord\":{\"offerGuid\":\"rd\",\"certificationStatus\":\"ovw\",\"ingestionStatus\":\"nptgoeiybba\",\"controls\":[{\"controlId\":\"vf\",\"controlStatus\":\"kvntjlrigjkskyri\"},{\"controlId\":\"vzidsxwaab\",\"controlStatus\":\"ifrygzn\"}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,22 @@ public void testSyncCertRecord() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - SyncCertRecordResponse response = manager.reports() - .syncCertRecord("bwnhhtql", - new SyncCertRecordRequest().withCertRecord(new CertSyncRecord().withOfferGuid("hgppipifhpfeoa") - .withCertificationStatus("gcxtxj") - .withIngestionStatus("heafidlt") - .withControls(Arrays - .asList(new ControlSyncRecord().withControlId("esmkssjhoiftxfkf").withControlStatus("gpr")))), - com.azure.core.util.Context.NONE); + SyncCertRecordResponse response + = manager.reports() + .syncCertRecord("yawbzasqbu", + new SyncCertRecordRequest().withCertRecord(new CertSyncRecord().withOfferGuid("jg") + .withCertificationStatus("exaoguya") + .withIngestionStatus("ids") + .withControls(Arrays.asList( + new ControlSyncRecord().withControlId("tx").withControlStatus("jumfqwazlnq"), + new ControlSyncRecord().withControlId("cjngzqdqxtbjwgny").withControlStatus("sf"), + new ControlSyncRecord().withControlId("vtuikzhajq").withControlStatus("cfhmlrqryxyn")))), + com.azure.core.util.Context.NONE); - Assertions.assertEquals("ill", response.certRecord().offerGuid()); - Assertions.assertEquals("biqtgdq", response.certRecord().certificationStatus()); - Assertions.assertEquals("mcwsldrizetpwb", response.certRecord().ingestionStatus()); - Assertions.assertEquals("libph", response.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("zmizakakan", response.certRecord().controls().get(0).controlStatus()); + Assertions.assertEquals("rd", response.certRecord().offerGuid()); + Assertions.assertEquals("ovw", response.certRecord().certificationStatus()); + Assertions.assertEquals("nptgoeiybba", response.certRecord().ingestionStatus()); + Assertions.assertEquals("vf", response.certRecord().controls().get(0).controlId()); + Assertions.assertEquals("kvntjlrigjkskyri", response.certRecord().controls().get(0).controlStatus()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.java index e12829990278..6d0fb9a903ad 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsUpdateMockTests.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.generated; @@ -27,7 +27,7 @@ public final class ReportsUpdateMockTests { @Test public void testUpdate() throws Exception { String responseStr - = "{\"properties\":{\"triggerTime\":\"2021-09-29T03:03:45Z\",\"timeZone\":\"eg\",\"resources\":[{\"resourceId\":\"alzxwhcan\",\"resourceType\":\"moy\",\"resourceKind\":\"lwigdivbkbx\",\"resourceOrigin\":\"GCP\",\"accountId\":\"ajuwas\"},{\"resourceId\":\"vdaeyyguxakjsq\",\"resourceType\":\"zbezkgimsidxasic\",\"resourceKind\":\"yvvjskgfmo\",\"resourceOrigin\":\"GCP\",\"accountId\":\"pqg\"},{\"resourceId\":\"tjeaahhvjhh\",\"resourceType\":\"kzyb\",\"resourceKind\":\"jid\",\"resourceOrigin\":\"GCP\",\"accountId\":\"xkyxvxevblbj\"},{\"resourceId\":\"dnlj\",\"resourceType\":\"geuaulx\",\"resourceKind\":\"smjbnkppxyn\",\"resourceOrigin\":\"Azure\",\"accountId\":\"vxei\"}],\"status\":\"Failed\",\"errors\":[\"lnsrmffe\",\"cxcktpi\",\"merteeammxqiek\"],\"tenantId\":\"zddrt\",\"offerGuid\":\"doj\",\"nextTriggerTime\":\"2021-10-30T06:17:16Z\",\"lastTriggerTime\":\"2021-07-26T15:13:29Z\",\"subscriptions\":[\"efdeesve\",\"uij\"],\"complianceStatus\":{\"m365\":{\"passedCount\":214563643,\"failedCount\":1101105605,\"manualCount\":1728879575,\"notApplicableCount\":2079646623,\"pendingCount\":1491745835}},\"storageInfo\":{\"subscriptionId\":\"wddji\",\"resourceGroup\":\"bxv\",\"accountName\":\"itvtzeexavo\",\"location\":\"fglecdmdqbwp\"},\"certRecords\":[{\"offerGuid\":\"gsfjac\",\"certificationStatus\":\"lhhxudbxvodhtnsi\",\"ingestionStatus\":\"dhzmmesckdlp\",\"controls\":[{},{},{},{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"failcfx\",\"name\":\"m\",\"type\":\"boxdfgsftufq\"}"; + = "{\"properties\":{\"triggerTime\":\"2021-02-06T09:57:11Z\",\"timeZone\":\"wumuaslzk\",\"resources\":[{\"resourceId\":\"rwoycqucwyh\",\"resourceType\":\"nomdrkywuhpsv\",\"resourceKind\":\"urut\",\"resourceOrigin\":\"AWS\",\"accountId\":\"xwlalniexzsrzpg\"},{\"resourceId\":\"pqtybb\",\"resourceType\":\"pgdakchzyvli\",\"resourceKind\":\"nrkcxkj\",\"resourceOrigin\":\"AWS\",\"accountId\":\"mysu\"},{\"resourceId\":\"swqrntvlwijp\",\"resourceType\":\"texoqqpwc\",\"resourceKind\":\"ufmhrunc\",\"resourceOrigin\":\"GCP\",\"accountId\":\"spkcdqzh\"},{\"resourceId\":\"ctddun\",\"resourceType\":\"dyfpchrqbnj\",\"resourceKind\":\"cgegydcwbo\",\"resourceOrigin\":\"AWS\",\"accountId\":\"vqqolih\"}],\"status\":\"Reviewing\",\"errors\":[\"uaubrj\"],\"tenantId\":\"oq\",\"offerGuid\":\"uojrngiflr\",\"nextTriggerTime\":\"2021-02-15T12:01:43Z\",\"lastTriggerTime\":\"2021-10-23T00:15:22Z\",\"subscriptions\":[\"i\",\"imzdlyj\",\"fqwmkyoquf\",\"vruzslzojhpctfnm\"],\"complianceStatus\":{\"m365\":{\"passedCount\":2130318282,\"failedCount\":120965041,\"manualCount\":1293168350,\"notApplicableCount\":1282016388,\"pendingCount\":1783330313}},\"storageInfo\":{\"subscriptionId\":\"hgrky\",\"resourceGroup\":\"zabs\",\"accountName\":\"fpphoj\",\"location\":\"vyhyhsgzfc\"},\"certRecords\":[{\"offerGuid\":\"mfg\",\"certificationStatus\":\"glqgleoh\",\"ingestionStatus\":\"etnluankrrfx\",\"controls\":[{},{},{},{}]},{\"offerGuid\":\"tijv\",\"certificationStatus\":\"vbmqzbqq\",\"ingestionStatus\":\"aj\",\"controls\":[{},{},{}]},{\"offerGuid\":\"acevehjkuyx\",\"certificationStatus\":\"fgaoq\",\"ingestionStatus\":\"faey\",\"controls\":[{}]}],\"provisioningState\":\"Succeeded\"},\"id\":\"vxirpghriypo\",\"name\":\"eyhlqhykprl\",\"type\":\"yznuciqd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,44 +37,39 @@ public void testUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ReportResource response = manager.reports() - .update("eazulcs", + .update("eoohguufuzboyj", new ReportResourcePatch().withProperties( - new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-08-08T19:14:03Z")) - .withTimeZone("npjhlfzswpchwahf") + new ReportPatchProperties().withTriggerTime(OffsetDateTime.parse("2021-12-10T12:06:21Z")) + .withTimeZone("zolbaemwmdxmebw") .withResources(Arrays.asList( - new ResourceMetadata().withResourceId("snfepgfewetwlyx") - .withResourceType("cxy") - .withResourceKind("hdjhlimmbcx") + new ResourceMetadata().withResourceId("jpahlxvea") + .withResourceType("qxnmwmqt") + .withResourceKind("xyi") + .withResourceOrigin(ResourceOrigin.GCP) + .withAccountId("vqcttadija"), + new ResourceMetadata().withResourceId("ukm") + .withResourceType("ieekpndzaa") + .withResourceKind("udqmeqwigpibudq") .withResourceOrigin(ResourceOrigin.AZURE) - .withAccountId("po"), - new ResourceMetadata().withResourceId("xvxcjzhq") - .withResourceType("xfpxtgqscja") - .withResourceKind("t") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("qaz"), - new ResourceMetadata().withResourceId("mtggu") - .withResourceType("ijr") - .withResourceKind("civmmg") - .withResourceOrigin(ResourceOrigin.AWS) - .withAccountId("iwrxgkn"))) - .withOfferGuid("dtutnwldu") - .withStorageInfo(new StorageInfo().withSubscriptionId("xvmhf") - .withResourceGroup("zjyi") - .withAccountName("as") - .withLocation("udypohyuems"))), + .withAccountId("beybpmzznrtffyaq"))) + .withOfferGuid("srsjuivfc") + .withStorageInfo(new StorageInfo().withSubscriptionId("i") + .withResourceGroup("wncvjtszcofiz") + .withAccountName("tdhgbjkvrelj") + .withLocation("murvzm"))), com.azure.core.util.Context.NONE); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T03:03:45Z"), response.properties().triggerTime()); - Assertions.assertEquals("eg", response.properties().timeZone()); - Assertions.assertEquals("alzxwhcan", response.properties().resources().get(0).resourceId()); - Assertions.assertEquals("moy", response.properties().resources().get(0).resourceType()); - Assertions.assertEquals("lwigdivbkbx", response.properties().resources().get(0).resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, response.properties().resources().get(0).resourceOrigin()); - Assertions.assertEquals("ajuwas", response.properties().resources().get(0).accountId()); - Assertions.assertEquals("doj", response.properties().offerGuid()); - Assertions.assertEquals("wddji", response.properties().storageInfo().subscriptionId()); - Assertions.assertEquals("bxv", response.properties().storageInfo().resourceGroup()); - Assertions.assertEquals("itvtzeexavo", response.properties().storageInfo().accountName()); - Assertions.assertEquals("fglecdmdqbwp", response.properties().storageInfo().location()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-06T09:57:11Z"), response.properties().triggerTime()); + Assertions.assertEquals("wumuaslzk", response.properties().timeZone()); + Assertions.assertEquals("rwoycqucwyh", response.properties().resources().get(0).resourceId()); + Assertions.assertEquals("nomdrkywuhpsv", response.properties().resources().get(0).resourceType()); + Assertions.assertEquals("urut", response.properties().resources().get(0).resourceKind()); + Assertions.assertEquals(ResourceOrigin.AWS, response.properties().resources().get(0).resourceOrigin()); + Assertions.assertEquals("xwlalniexzsrzpg", response.properties().resources().get(0).accountId()); + Assertions.assertEquals("uojrngiflr", response.properties().offerGuid()); + Assertions.assertEquals("hgrky", response.properties().storageInfo().subscriptionId()); + Assertions.assertEquals("zabs", response.properties().storageInfo().resourceGroup()); + Assertions.assertEquals("fpphoj", response.properties().storageInfo().accountName()); + Assertions.assertEquals("vyhyhsgzfc", response.properties().storageInfo().location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.java index 270546069a55..1cbeb6e389c5 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ReportsVerifyMockTests.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.generated; @@ -19,7 +19,7 @@ public final class ReportsVerifyMockTests { @Test public void testVerify() throws Exception { - String responseStr = "{\"result\":\"Failed\",\"reason\":\"rimrs\"}"; + String responseStr = "{\"result\":\"Failed\",\"reason\":\"wabzxrvxcushsp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -28,7 +28,7 @@ public void testVerify() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - ReportVerificationResult response = manager.reports().verify("hjlmu", com.azure.core.util.Context.NONE); + ReportVerificationResult response = manager.reports().verify("kqscazuawxtzx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.java index 92637f863498..23011f97c78c 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceItemTests.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.generated; @@ -11,7 +11,7 @@ public final class ResourceItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceItem model = BinaryData.fromString( - "{\"subscriptionId\":\"qmt\",\"resourceGroup\":\"ltmm\",\"resourceType\":\"hyeozphvwau\",\"resourceId\":\"ncyg\"}") + "{\"subscriptionId\":\"wbqpl\",\"resourceGroup\":\"vnuuepzl\",\"resourceType\":\"hw\",\"resourceId\":\"oldweyuqdu\"}") .toObject(ResourceItem.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.java index df1dac3a56d0..4f67ebb0cea5 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResourceMetadataTests.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.generated; @@ -13,27 +13,27 @@ public final class ResourceMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceMetadata model = BinaryData.fromString( - "{\"resourceId\":\"dndnvow\",\"resourceType\":\"jjugwdkcglhslaz\",\"resourceKind\":\"yggdtjixh\",\"resourceOrigin\":\"GCP\",\"accountId\":\"fqweykhmene\"}") + "{\"resourceId\":\"podepoo\",\"resourceType\":\"nuvamiheogna\",\"resourceKind\":\"zxtheotusivyevcc\",\"resourceOrigin\":\"Azure\",\"accountId\":\"nhungbw\"}") .toObject(ResourceMetadata.class); - Assertions.assertEquals("dndnvow", model.resourceId()); - Assertions.assertEquals("jjugwdkcglhslaz", model.resourceType()); - Assertions.assertEquals("yggdtjixh", model.resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resourceOrigin()); - Assertions.assertEquals("fqweykhmene", model.accountId()); + Assertions.assertEquals("podepoo", model.resourceId()); + Assertions.assertEquals("nuvamiheogna", model.resourceType()); + Assertions.assertEquals("zxtheotusivyevcc", model.resourceKind()); + Assertions.assertEquals(ResourceOrigin.AZURE, model.resourceOrigin()); + Assertions.assertEquals("nhungbw", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceMetadata model = new ResourceMetadata().withResourceId("dndnvow") - .withResourceType("jjugwdkcglhslaz") - .withResourceKind("yggdtjixh") - .withResourceOrigin(ResourceOrigin.GCP) - .withAccountId("fqweykhmene"); + ResourceMetadata model = new ResourceMetadata().withResourceId("podepoo") + .withResourceType("nuvamiheogna") + .withResourceKind("zxtheotusivyevcc") + .withResourceOrigin(ResourceOrigin.AZURE) + .withAccountId("nhungbw"); model = BinaryData.fromObject(model).toObject(ResourceMetadata.class); - Assertions.assertEquals("dndnvow", model.resourceId()); - Assertions.assertEquals("jjugwdkcglhslaz", model.resourceType()); - Assertions.assertEquals("yggdtjixh", model.resourceKind()); - Assertions.assertEquals(ResourceOrigin.GCP, model.resourceOrigin()); - Assertions.assertEquals("fqweykhmene", model.accountId()); + Assertions.assertEquals("podepoo", model.resourceId()); + Assertions.assertEquals("nuvamiheogna", model.resourceType()); + Assertions.assertEquals("zxtheotusivyevcc", model.resourceKind()); + Assertions.assertEquals(ResourceOrigin.AZURE, model.resourceOrigin()); + Assertions.assertEquals("nhungbw", model.accountId()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.java index aa5a7939960c..8514c2c813d3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityResourceTests.java @@ -1,28 +1,19 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appcomplianceautomation.models.ResponsibilityResource; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class ResponsibilityResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResponsibilityResource model = BinaryData.fromString( - "{\"resourceId\":\"ho\",\"accountId\":\"qzudphq\",\"resourceType\":\"vdkfwynwcvtbvk\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-07-26T04:06:19Z\",\"recommendationIds\":[\"iatkzwpcnp\",\"zcjaesgvvsccy\",\"jguq\"]}") + "{\"resourceId\":\"vuzlm\",\"accountId\":\"elfk\",\"resourceType\":\"plcrpwjxeznoig\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-07-10T07:09:22Z\",\"recommendationIds\":[\"nbsazejjoqkag\"]}") .toObject(ResponsibilityResource.class); - Assertions.assertEquals("iatkzwpcnp", model.recommendationIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResponsibilityResource model - = new ResponsibilityResource().withRecommendationIds(Arrays.asList("iatkzwpcnp", "zcjaesgvvsccy", "jguq")); - model = BinaryData.fromObject(model).toObject(ResponsibilityResource.class); - Assertions.assertEquals("iatkzwpcnp", model.recommendationIds().get(0)); + Assertions.assertEquals("nbsazejjoqkag", model.recommendationIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java index 99dafc87a99a..a810207e953f 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ResponsibilityTests.java @@ -1,33 +1,21 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appcomplianceautomation.models.Responsibility; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class ResponsibilityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Responsibility model = BinaryData.fromString( - "{\"responsibilityId\":\"ivfxzsjabibsyst\",\"responsibilityTitle\":\"fsdjpvkvp\",\"responsibilityDescription\":\"xbkzbzkdvncj\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"High\",\"responsibilityStatus\":\"PendingApproval\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":289225140,\"totalResourceCount\":1132320568,\"resourceList\":[{\"resourceId\":\"jk\",\"accountId\":\"fhmouwq\",\"resourceType\":\"zrfze\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-06-13T01:41:31Z\",\"recommendationIds\":[\"yuhqlbjbsybbqwrv\",\"ldgmfpgvmpip\",\"slthaq\"]},{\"resourceId\":\"ss\",\"accountId\":\"u\",\"resourceType\":\"bdsrez\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-09-12T22:52:28Z\",\"recommendationIds\":[\"wqkdwytisibi\",\"cgpik\",\"zimejzanlfzx\"]}],\"recommendationList\":[{\"recommendationId\":\"mbzonokix\",\"recommendationShortName\":\"q\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"zpfrla\",\"recommendationSolutionContent\":\"zrnw\",\"isRecommendSolution\":\"false\"}]},{\"recommendationId\":\"dfpwpjylwbtlhfls\",\"recommendationShortName\":\"dhszfjv\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"feljagrqm\",\"recommendationSolutionContent\":\"ldvriiiojnalghfk\",\"isRecommendSolution\":\"false\"},{\"recommendationSolutionIndex\":\"ex\",\"recommendationSolutionContent\":\"wueluqhhahhxv\",\"isRecommendSolution\":\"true\"}]}],\"guidance\":\"kwpjgwwspughftqs\",\"justification\":\"qxujxukndxd\",\"evidenceFiles\":[\"jguufzdm\",\"yqtfihwh\",\"otzi\",\"gamv\"]}") + "{\"responsibilityId\":\"pjgwwspug\",\"responsibilityTitle\":\"tqs\",\"responsibilityDescription\":\"qxujxukndxd\",\"responsibilityType\":\"Automated\",\"responsibilitySeverity\":\"Medium\",\"responsibilityStatus\":\"Failed\",\"responsibilityEnvironment\":\"GCP\",\"failedResourceCount\":1779713214,\"totalResourceCount\":1986319957,\"resourceList\":[{\"resourceId\":\"ihwhbotzingamvpp\",\"accountId\":\"szqzudphqamv\",\"resourceType\":\"fwynwcvtbvkay\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-01-26T18:20:18Z\",\"recommendationIds\":[\"tkzwpcnpwzc\",\"a\",\"sgvvsccyajguq\"]}],\"recommendationList\":[{\"recommendationId\":\"gzlvdnkfxu\",\"recommendationShortName\":\"mdwzrmuhapfcqdps\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"psvuoymgc\",\"recommendationSolutionContent\":\"lvez\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"lmfeokerq\",\"recommendationSolutionContent\":\"yhko\",\"isRecommendSolution\":\"true\"},{\"recommendationSolutionIndex\":\"xedk\",\"recommendationSolutionContent\":\"epbqpcrfkbw\",\"isRecommendSolution\":\"false\"}]},{\"recommendationId\":\"jvcdwxlpqekf\",\"recommendationShortName\":\"khtj\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"gwfqatmt\",\"recommendationSolutionContent\":\"tmdvypgikdgs\",\"isRecommendSolution\":\"true\"}]},{\"recommendationId\":\"birryuzhl\",\"recommendationShortName\":\"joqrvqqaatj\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"goupmfiibfg\",\"recommendationSolutionContent\":\"ioolvrwxkvtkkgll\",\"isRecommendSolution\":\"false\"}]},{\"recommendationId\":\"gvjayvblmh\",\"recommendationShortName\":\"zuhbxvvyhgsopb\",\"recommendationSolutions\":[{\"recommendationSolutionIndex\":\"fegxuvwzfb\",\"recommendationSolutionContent\":\"lmctlpd\",\"isRecommendSolution\":\"false\"},{\"recommendationSolutionIndex\":\"vgbmhr\",\"recommendationSolutionContent\":\"kw\",\"isRecommendSolution\":\"false\"},{\"recommendationSolutionIndex\":\"ejvegrhbpnaixex\",\"recommendationSolutionContent\":\"b\",\"isRecommendSolution\":\"false\"},{\"recommendationSolutionIndex\":\"xhcexdrrvqahq\",\"recommendationSolutionContent\":\"htpwij\",\"isRecommendSolution\":\"true\"}]}],\"guidance\":\"svfycxzbfv\",\"justification\":\"wvrvmtg\",\"evidenceFiles\":[\"pyostronzmyhgfi\",\"nsxkmcwaekrrjr\",\"afxtsgum\",\"jglikkxwslolb\"]}") .toObject(Responsibility.class); - Assertions.assertEquals(289225140, model.failedResourceCount()); - Assertions.assertEquals(1132320568, model.totalResourceCount()); - Assertions.assertEquals("jguufzdm", model.evidenceFiles().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Responsibility model = new Responsibility().withFailedResourceCount(289225140) - .withTotalResourceCount(1132320568) - .withEvidenceFiles(Arrays.asList("jguufzdm", "yqtfihwh", "otzi", "gamv")); - model = BinaryData.fromObject(model).toObject(Responsibility.class); - Assertions.assertEquals(289225140, model.failedResourceCount()); - Assertions.assertEquals(1132320568, model.totalResourceCount()); - Assertions.assertEquals("jguufzdm", model.evidenceFiles().get(0)); + Assertions.assertEquals(1779713214, model.failedResourceCount()); + Assertions.assertEquals(1986319957, model.totalResourceCount()); + Assertions.assertEquals("pyostronzmyhgfi", model.evidenceFiles().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.java index 09b7b1243eed..36801cf326b3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingAnswerTests.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.generated; @@ -12,17 +12,19 @@ public final class ScopingAnswerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ScopingAnswer model = BinaryData.fromString("{\"questionId\":\"btdhxujznbm\",\"answers\":[\"wuwprzqlv\"]}") + ScopingAnswer model = BinaryData + .fromString("{\"questionId\":\"cxkdmligovi\",\"answers\":[\"xk\",\"mloazuru\",\"cbgoor\",\"te\"]}") .toObject(ScopingAnswer.class); - Assertions.assertEquals("btdhxujznbm", model.questionId()); - Assertions.assertEquals("wuwprzqlv", model.answers().get(0)); + Assertions.assertEquals("cxkdmligovi", model.questionId()); + Assertions.assertEquals("xk", model.answers().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScopingAnswer model = new ScopingAnswer().withQuestionId("btdhxujznbm").withAnswers(Arrays.asList("wuwprzqlv")); + ScopingAnswer model = new ScopingAnswer().withQuestionId("cxkdmligovi") + .withAnswers(Arrays.asList("xk", "mloazuru", "cbgoor", "te")); model = BinaryData.fromObject(model).toObject(ScopingAnswer.class); - Assertions.assertEquals("btdhxujznbm", model.questionId()); - Assertions.assertEquals("wuwprzqlv", model.answers().get(0)); + Assertions.assertEquals("cxkdmligovi", model.questionId()); + Assertions.assertEquals("xk", model.answers().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.java index 9980d91093f4..c800d086a82e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationPropertiesTests.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.generated; @@ -14,22 +14,19 @@ public final class ScopingConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScopingConfigurationProperties model = BinaryData.fromString( - "{\"answers\":[{\"questionId\":\"ooxdjebwpuc\",\"answers\":[\"fvovbvmeuecivy\",\"zceuojgjrw\"]},{\"questionId\":\"ueiotwmcdyt\",\"answers\":[\"wit\"]},{\"questionId\":\"nrjawgqwg\",\"answers\":[\"ni\",\"kxfbkpycgklwndn\",\"jdauwhvy\"]}],\"provisioningState\":\"Failed\"}") + "{\"answers\":[{\"questionId\":\"juisavokqdzf\",\"answers\":[\"zivj\",\"frqttbajlkatnw\",\"yiopi\",\"kqqfk\"]}],\"provisioningState\":\"Succeeded\"}") .toObject(ScopingConfigurationProperties.class); - Assertions.assertEquals("ooxdjebwpuc", model.answers().get(0).questionId()); - Assertions.assertEquals("fvovbvmeuecivy", model.answers().get(0).answers().get(0)); + Assertions.assertEquals("juisavokqdzf", model.answers().get(0).questionId()); + Assertions.assertEquals("zivj", model.answers().get(0).answers().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScopingConfigurationProperties model = new ScopingConfigurationProperties().withAnswers(Arrays.asList( - new ScopingAnswer().withQuestionId("ooxdjebwpuc") - .withAnswers(Arrays.asList("fvovbvmeuecivy", "zceuojgjrw")), - new ScopingAnswer().withQuestionId("ueiotwmcdyt").withAnswers(Arrays.asList("wit")), - new ScopingAnswer().withQuestionId("nrjawgqwg") - .withAnswers(Arrays.asList("ni", "kxfbkpycgklwndn", "jdauwhvy")))); + ScopingConfigurationProperties model = new ScopingConfigurationProperties() + .withAnswers(Arrays.asList(new ScopingAnswer().withQuestionId("juisavokqdzf") + .withAnswers(Arrays.asList("zivj", "frqttbajlkatnw", "yiopi", "kqqfk")))); model = BinaryData.fromObject(model).toObject(ScopingConfigurationProperties.class); - Assertions.assertEquals("ooxdjebwpuc", model.answers().get(0).questionId()); - Assertions.assertEquals("fvovbvmeuecivy", model.answers().get(0).answers().get(0)); + Assertions.assertEquals("juisavokqdzf", model.answers().get(0).questionId()); + Assertions.assertEquals("zivj", model.answers().get(0).answers().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.java index 87d26e1a32fa..9fb0687bccdb 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceInnerTests.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.generated; @@ -15,20 +15,23 @@ public final class ScopingConfigurationResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScopingConfigurationResourceInner model = BinaryData.fromString( - "{\"properties\":{\"answers\":[{\"questionId\":\"adm\",\"answers\":[\"rcrgvx\"]},{\"questionId\":\"vgomz\",\"answers\":[\"misgwbnb\",\"e\"]}],\"provisioningState\":\"Failed\"},\"id\":\"k\",\"name\":\"baliourqhakauha\",\"type\":\"hsfwxosowzxcug\"}") + "{\"properties\":{\"answers\":[{\"questionId\":\"icc\",\"answers\":[\"wfscjfn\",\"nszqujiz\",\"voqyt\",\"byowbblgyavutp\"]},{\"questionId\":\"hjoxo\",\"answers\":[\"msksbp\",\"mlqoljx\"]},{\"questionId\":\"cgxxlxs\",\"answers\":[\"gcvizqzdwlvwlyou\",\"fgfb\"]},{\"questionId\":\"jub\",\"answers\":[\"hgkfmin\"]}],\"provisioningState\":\"Fixing\"},\"id\":\"zfttsttktlahb\",\"name\":\"actxtgzukxitm\",\"type\":\"qtgqqqxhrnxr\"}") .toObject(ScopingConfigurationResourceInner.class); - Assertions.assertEquals("adm", model.properties().answers().get(0).questionId()); - Assertions.assertEquals("rcrgvx", model.properties().answers().get(0).answers().get(0)); + Assertions.assertEquals("icc", model.properties().answers().get(0).questionId()); + Assertions.assertEquals("wfscjfn", model.properties().answers().get(0).answers().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScopingConfigurationResourceInner model - = new ScopingConfigurationResourceInner().withProperties(new ScopingConfigurationProperties().withAnswers( - Arrays.asList(new ScopingAnswer().withQuestionId("adm").withAnswers(Arrays.asList("rcrgvx")), - new ScopingAnswer().withQuestionId("vgomz").withAnswers(Arrays.asList("misgwbnb", "e"))))); + ScopingConfigurationResourceInner model = new ScopingConfigurationResourceInner() + .withProperties(new ScopingConfigurationProperties().withAnswers(Arrays.asList( + new ScopingAnswer().withQuestionId("icc") + .withAnswers(Arrays.asList("wfscjfn", "nszqujiz", "voqyt", "byowbblgyavutp")), + new ScopingAnswer().withQuestionId("hjoxo").withAnswers(Arrays.asList("msksbp", "mlqoljx")), + new ScopingAnswer().withQuestionId("cgxxlxs").withAnswers(Arrays.asList("gcvizqzdwlvwlyou", "fgfb")), + new ScopingAnswer().withQuestionId("jub").withAnswers(Arrays.asList("hgkfmin"))))); model = BinaryData.fromObject(model).toObject(ScopingConfigurationResourceInner.class); - Assertions.assertEquals("adm", model.properties().answers().get(0).questionId()); - Assertions.assertEquals("rcrgvx", model.properties().answers().get(0).answers().get(0)); + Assertions.assertEquals("icc", model.properties().answers().get(0).questionId()); + Assertions.assertEquals("wfscjfn", model.properties().answers().get(0).answers().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java index cd85dac5c8b5..ba2e63e0b579 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationResourceListResultTests.java @@ -1,22 +1,21 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.ScopingConfigurationResourceListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.ScopingConfigurationResourceListResult; import org.junit.jupiter.api.Assertions; public final class ScopingConfigurationResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScopingConfigurationResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"answers\":[{\"questionId\":\"nwbmeh\",\"answers\":[\"eyvjusrtslhspkde\",\"maofmxagkv\"]}],\"provisioningState\":\"Canceled\"},\"id\":\"mqkrhahvljuahaqu\",\"name\":\"c\",\"type\":\"hmdua\"}],\"nextLink\":\"exq\"}") + "{\"value\":[{\"properties\":{\"answers\":[{\"questionId\":\"hjxa\",\"answers\":[\"vjgsl\",\"r\"]},{\"questionId\":\"il\",\"answers\":[\"wwtkg\"]},{\"questionId\":\"xnyed\",\"answers\":[\"gyvudtjuewbc\"]}],\"provisioningState\":\"Creating\"},\"id\":\"uwhcjyxccybv\",\"name\":\"ayakkudzpx\",\"type\":\"wjplma\"},{\"properties\":{\"answers\":[{\"questionId\":\"cyohpfkyrkdbd\",\"answers\":[\"ogsjkmnwqjno\",\"aiy\",\"ddviacegfnmntfpm\"]},{\"questionId\":\"memfnczdwvvbalxl\",\"answers\":[\"chp\",\"db\",\"evwrdnhfuk\",\"vsjcswsmystuluqy\"]},{\"questionId\":\"fcvlerch\",\"answers\":[\"bm\",\"pjbabwidfc\",\"sspuunnoxyhkx\",\"qddrihpfhoqcaae\"]}],\"provisioningState\":\"Fixing\"},\"id\":\"mdjvlpj\",\"name\":\"xkzb\",\"type\":\"msgeivsiykzk\"}],\"nextLink\":\"cjdx\"}") .toObject(ScopingConfigurationResourceListResult.class); - Assertions.assertEquals("nwbmeh", model.value().get(0).properties().answers().get(0).questionId()); - Assertions.assertEquals("eyvjusrtslhspkde", - model.value().get(0).properties().answers().get(0).answers().get(0)); - Assertions.assertEquals("exq", model.nextLink()); + Assertions.assertEquals("hjxa", model.value().get(0).properties().answers().get(0).questionId()); + Assertions.assertEquals("vjgsl", model.value().get(0).properties().answers().get(0).answers().get(0)); + Assertions.assertEquals("cjdx", model.nextLink()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.java index 1c12e46867f4..f1541505a5f0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsCreateOrUpdateWithResponseMockTests.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.generated; @@ -25,7 +25,7 @@ public final class ScopingConfigurationsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"answers\":[{\"questionId\":\"jh\",\"answers\":[\"g\",\"xhcmavmqfoudo\",\"hcgyyprotwyp\",\"ndm\"]},{\"questionId\":\"xhugcm\",\"answers\":[\"avlg\"]},{\"questionId\":\"rb\",\"answers\":[\"tp\",\"dtzfjltfvnzcy\",\"t\",\"tpvopvpbdb\"]},{\"questionId\":\"qgqqihedsvqwthmk\",\"answers\":[\"bcysih\",\"gqcwdhohsdtmc\",\"zsu\"]}],\"provisioningState\":\"Fixing\"},\"id\":\"dxbzlmcmuap\",\"name\":\"vhdbevwqqxey\",\"type\":\"ko\"}"; + = "{\"properties\":{\"answers\":[{\"questionId\":\"ac\",\"answers\":[\"vpilg\",\"ooqjagmditgueio\",\"kjbsah\"]}],\"provisioningState\":\"Succeeded\"},\"id\":\"pdelqa\",\"name\":\"slmot\",\"type\":\"ebnfxofvc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,14 +35,18 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScopingConfigurationResource response = manager.scopingConfigurations() - .createOrUpdateWithResponse("eebtijvacvb", "qzbqqxlajrnwxa", - new ScopingConfigurationResourceInner().withProperties(new ScopingConfigurationProperties() - .withAnswers(Arrays.asList(new ScopingAnswer().withQuestionId("ehjku") - .withAnswers(Arrays.asList("oafgaoql", "faey", "inmfgvxirp", "hriypoqeyhlqhy"))))), + .createOrUpdateWithResponse("iesfuug", "tuqfecjxeygtu", + new ScopingConfigurationResourceInner() + .withProperties(new ScopingConfigurationProperties().withAnswers(Arrays.asList( + new ScopingAnswer().withQuestionId("ic") + .withAnswers(Arrays.asList("ewmrswnjlxu", "rhwpus", "jbaqehgpdoh", "jqatucoigebxn")), + new ScopingAnswer().withQuestionId("nwfepbnwg").withAnswers(Arrays.asList("xjg")), + new ScopingAnswer().withQuestionId("g") + .withAnswers(Arrays.asList("bgdlfgtdysna", "uflqbctq", "amz", "rwd"))))), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("jh", response.properties().answers().get(0).questionId()); - Assertions.assertEquals("g", response.properties().answers().get(0).answers().get(0)); + Assertions.assertEquals("ac", response.properties().answers().get(0).questionId()); + Assertions.assertEquals("vpilg", response.properties().answers().get(0).answers().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.java index 541e855c6ba3..de313f65fcc3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsDeleteByResourceGroupWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.scopingConfigurations() - .deleteByResourceGroupWithResponse("qzinkfkbg", "z", com.azure.core.util.Context.NONE); + .deleteByResourceGroupWithResponse("k", "dirazf", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.java index d341470de140..fc56c8ef0bb3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsGetWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class ScopingConfigurationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"answers\":[{\"questionId\":\"uojrngiflr\",\"answers\":[\"asccbiui\",\"zdlyjdfqw\"]},{\"questionId\":\"kyoqufdv\",\"answers\":[\"zslzojhp\",\"tfnmdx\",\"tngfdgugeyzihgr\",\"yui\"]},{\"questionId\":\"absnmfpp\",\"answers\":[\"jee\",\"yhyhsgzfczb\"]}],\"provisioningState\":\"Failed\"},\"id\":\"gbeglqgleo\",\"name\":\"i\",\"type\":\"etnluankrrfx\"}"; + = "{\"properties\":{\"answers\":[{\"questionId\":\"lmuowo\",\"answers\":[\"au\",\"ropions\"]},{\"questionId\":\"onwpnga\",\"answers\":[\"n\",\"ixjawrtm\",\"fjmyccxlzhco\",\"ovne\"]}],\"provisioningState\":\"Creating\"},\"id\":\"lusfnrdtjxtxrdcq\",\"name\":\"jvidttge\",\"type\":\"uslvyjtcvuwkasi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScopingConfigurationResource response = manager.scopingConfigurations() - .getWithResponse("ihrraiouaub", "jtlo", com.azure.core.util.Context.NONE) + .getWithResponse("fypococtfjgti", "rjvzuyt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("uojrngiflr", response.properties().answers().get(0).questionId()); - Assertions.assertEquals("asccbiui", response.properties().answers().get(0).answers().get(0)); + Assertions.assertEquals("lmuowo", response.properties().answers().get(0).questionId()); + Assertions.assertEquals("au", response.properties().answers().get(0).answers().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.java index 638315d8d7b6..62c659372918 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingConfigurationsListMockTests.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.generated; @@ -22,7 +22,7 @@ public final class ScopingConfigurationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"answers\":[{\"questionId\":\"suxswqrntvlwijp\",\"answers\":[\"texoqqpwc\",\"yufmhruncuwmq\",\"pkcdqzhlct\",\"dunqnd\"]}],\"provisioningState\":\"Creating\"},\"id\":\"hrqbnjjrcg\",\"name\":\"gydcw\",\"type\":\"oxjumvqqo\"}]}"; + = "{\"value\":[{\"properties\":{\"answers\":[{\"questionId\":\"dujtmvcope\",\"answers\":[\"m\"]},{\"questionId\":\"urbuhhlkyqltq\",\"answers\":[\"ogtu\",\"kffdjktsys\"]},{\"questionId\":\"dfvclglxnfu\",\"answers\":[\"tkbu\",\"qogsfikayian\",\"haru\",\"t\"]},{\"questionId\":\"iqxf\",\"answers\":[\"j\",\"ttvwkpqh\"]}],\"provisioningState\":\"Creating\"},\"id\":\"uygb\",\"name\":\"eqqe\",\"type\":\"ewvnqvcdlgu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.scopingConfigurations().list("bn", com.azure.core.util.Context.NONE); + = manager.scopingConfigurations().list("xejw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("suxswqrntvlwijp", - response.iterator().next().properties().answers().get(0).questionId()); - Assertions.assertEquals("texoqqpwc", response.iterator().next().properties().answers().get(0).answers().get(0)); + Assertions.assertEquals("dujtmvcope", response.iterator().next().properties().answers().get(0).questionId()); + Assertions.assertEquals("m", response.iterator().next().properties().answers().get(0).answers().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.java index 1e4fdfaaa531..5490803a6d66 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionTests.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.generated; @@ -11,7 +11,7 @@ public final class ScopingQuestionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScopingQuestion model = BinaryData.fromString( - "{\"questionId\":\"g\",\"superiorQuestionId\":\"dxyt\",\"inputType\":\"Telephone\",\"optionIds\":[\"yrxvwfudwpznt\",\"hdzhlrqj\",\"hckfrlhrx\",\"bkyvp\"],\"rules\":[\"Required\"],\"showSubQuestionsValue\":\"uzbpzkafku\"}") + "{\"questionId\":\"iklbbovpl\",\"superiorQuestionId\":\"bhvgy\",\"inputType\":\"None\",\"optionIds\":[\"osvmk\",\"ss\",\"qukkfp\",\"gmgsxnkjzkde\"],\"rules\":[\"DynamicDropdown\",\"USPrivacyShield\"],\"showSubQuestionsValue\":\"opwi\"}") .toObject(ScopingQuestion.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.java index 6d1d59612a39..d472876ea87d 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/ScopingQuestionsInnerTests.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.generated; @@ -11,7 +11,7 @@ public final class ScopingQuestionsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScopingQuestionsInner model = BinaryData.fromString( - "{\"questions\":[{\"questionId\":\"qugxywpmueefjzwf\",\"superiorQuestionId\":\"q\",\"inputType\":\"YesNoNa\",\"optionIds\":[\"dsuyonobgla\"],\"rules\":[\"PublisherVerification\"],\"showSubQuestionsValue\":\"tcc\"}]}") + "{\"questions\":[{\"questionId\":\"nbtkcxywnytnr\",\"superiorQuestionId\":\"nlqidybyxczf\",\"inputType\":\"YesNoNa\",\"optionIds\":[\"aaxdbabphlwrq\",\"fkts\",\"hsucoc\"],\"rules\":[\"CreditCardPCI\",\"PublicSOX\",\"Required\",\"PublicSOX\"],\"showSubQuestionsValue\":\"t\"},{\"questionId\":\"twwrqp\",\"superiorQuestionId\":\"dckzywbiexz\",\"inputType\":\"Text\",\"optionIds\":[\"ue\",\"xibxujwbhqwalm\",\"zyoxaepdkzjan\"],\"rules\":[\"PreventNonEnglishChar\"],\"showSubQuestionsValue\":\"hdwbavxbniwdjs\"},{\"questionId\":\"zt\",\"superiorQuestionId\":\"bpg\",\"inputType\":\"Upload\",\"optionIds\":[\"txhp\",\"xbzpfzab\"],\"rules\":[\"CharLength\",\"Required\",\"Domains\",\"Urls\"],\"showSubQuestionsValue\":\"tcty\"}]}") .toObject(ScopingQuestionsInner.class); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.java index 0102b95b6662..3fccf306434e 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotDownloadRequestTests.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.generated; @@ -13,21 +13,21 @@ public final class SnapshotDownloadRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotDownloadRequest model = BinaryData.fromString( - "{\"reportCreatorTenantId\":\"gwfqatmt\",\"downloadType\":\"CompliancePdfReport\",\"offerGuid\":\"mdvy\"}") + "{\"reportCreatorTenantId\":\"dsrhnjiv\",\"downloadType\":\"CompliancePdfReport\",\"offerGuid\":\"tnovqfzgemjdftul\"}") .toObject(SnapshotDownloadRequest.class); - Assertions.assertEquals("gwfqatmt", model.reportCreatorTenantId()); + Assertions.assertEquals("dsrhnjiv", model.reportCreatorTenantId()); Assertions.assertEquals(DownloadType.COMPLIANCE_PDF_REPORT, model.downloadType()); - Assertions.assertEquals("mdvy", model.offerGuid()); + Assertions.assertEquals("tnovqfzgemjdftul", model.offerGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotDownloadRequest model = new SnapshotDownloadRequest().withReportCreatorTenantId("gwfqatmt") + SnapshotDownloadRequest model = new SnapshotDownloadRequest().withReportCreatorTenantId("dsrhnjiv") .withDownloadType(DownloadType.COMPLIANCE_PDF_REPORT) - .withOfferGuid("mdvy"); + .withOfferGuid("tnovqfzgemjdftul"); model = BinaryData.fromObject(model).toObject(SnapshotDownloadRequest.class); - Assertions.assertEquals("gwfqatmt", model.reportCreatorTenantId()); + Assertions.assertEquals("dsrhnjiv", model.reportCreatorTenantId()); Assertions.assertEquals(DownloadType.COMPLIANCE_PDF_REPORT, model.downloadType()); - Assertions.assertEquals("mdvy", model.offerGuid()); + Assertions.assertEquals("tnovqfzgemjdftul", model.offerGuid()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.java index cc30725a5931..3c5991f6a5c8 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotPropertiesTests.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.generated; @@ -11,13 +11,7 @@ public final class SnapshotPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotProperties model = BinaryData.fromString( - "{\"snapshotName\":\"a\",\"createdAt\":\"2021-05-13T02:02:39Z\",\"provisioningState\":\"Succeeded\",\"reportProperties\":{\"triggerTime\":\"2021-04-20T03:42:41Z\",\"timeZone\":\"fuflrwdmhdlx\",\"resources\":[{\"resourceId\":\"rxsagafcnihgwqa\",\"resourceType\":\"edgfbcvkcvq\",\"resourceKind\":\"keqdcvdrhvoods\",\"resourceOrigin\":\"AWS\",\"accountId\":\"bzdopcj\"}],\"status\":\"Reviewing\",\"errors\":[\"ld\",\"mgxcxrslpm\"],\"tenantId\":\"wuoegrpk\",\"offerGuid\":\"wniyqsluicpd\",\"nextTriggerTime\":\"2021-04-20T03:55Z\",\"lastTriggerTime\":\"2021-06-16T23:24:05Z\",\"subscriptions\":[\"mbmpaxmodfvuefy\",\"sbpfvmwyhr\"],\"complianceStatus\":{\"m365\":{\"passedCount\":386040820,\"failedCount\":892669790,\"manualCount\":1378791233,\"notApplicableCount\":196079656,\"pendingCount\":369562825}},\"storageInfo\":{\"subscriptionId\":\"vqtmnub\",\"resourceGroup\":\"kpzksmondjmq\",\"accountName\":\"vypomgkopkwho\",\"location\":\"pajqgxysm\"},\"certRecords\":[{\"offerGuid\":\"qfqvmkc\",\"certificationStatus\":\"zapvhelx\",\"ingestionStatus\":\"glyatddckcbcuej\",\"controls\":[{\"controlId\":\"ciqibrhosx\",\"controlStatus\":\"qrhzoymibmrqyib\"}]},{\"offerGuid\":\"wfluszdt\",\"certificationStatus\":\"rkwofyyvoqa\",\"ingestionStatus\":\"iexpbtgiwbwo\",\"controls\":[{\"controlId\":\"shrtdtkcnqxwb\",\"controlStatus\":\"kulpiujwaasi\"},{\"controlId\":\"i\",\"controlStatus\":\"byuqerpqlp\"}]}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"gbdbutauv\",\"categories\":[{\"categoryName\":\"uwhhmhykojoxafn\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{},{}]},{\"categoryName\":\"hkoymkcdyhbp\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{},{},{}]},{\"categoryName\":\"eqnovvqfovl\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{}]},{\"categoryName\":\"w\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{},{}]}]},{\"complianceName\":\"sytgadgvraea\",\"categories\":[{\"categoryName\":\"nzar\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{}]}]},{\"complianceName\":\"ijfqkacewiipfp\",\"categories\":[{\"categoryName\":\"bwwift\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{}]}]},{\"complianceName\":\"uvksgplsaknynfsy\",\"categories\":[{\"categoryName\":\"huopxodlqiynto\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{}]},{\"categoryName\":\"osjswsr\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{}]},{\"categoryName\":\"pzbchck\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{},{},{}]}]}]}") + "{\"snapshotName\":\"xzvlvqhjkbegib\",\"createdAt\":\"2021-07-17T08:56:43Z\",\"provisioningState\":\"Updating\",\"reportProperties\":{\"triggerTime\":\"2021-04-16T06:52:16Z\",\"timeZone\":\"wwaloayqcgwrt\",\"resources\":[{\"resourceId\":\"uzgwyzmhtx\",\"resourceType\":\"gmtsavjcbpwxqpsr\",\"resourceKind\":\"ftguv\",\"resourceOrigin\":\"Azure\",\"accountId\":\"prwmdyvxqt\"}],\"status\":\"Failed\",\"errors\":[\"wroyqbexrmcq\"],\"tenantId\":\"ycnojvknmefqsg\",\"offerGuid\":\"ah\",\"nextTriggerTime\":\"2021-04-03T04:06:05Z\",\"lastTriggerTime\":\"2021-03-02T11:20:46Z\",\"subscriptions\":[\"vgqzcjrvxd\",\"zlmwlxkvugfhz\",\"vawjvzunlu\",\"hnnpr\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1099728143,\"failedCount\":609811636,\"manualCount\":2136356878,\"notApplicableCount\":703232115,\"pendingCount\":115468496}},\"storageInfo\":{\"subscriptionId\":\"dultskz\",\"resourceGroup\":\"tdzumveekgpw\",\"accountName\":\"uh\",\"location\":\"p\"},\"certRecords\":[{\"offerGuid\":\"ofd\",\"certificationStatus\":\"uusdttouwa\",\"ingestionStatus\":\"ekqvkeln\",\"controls\":[{\"controlId\":\"xwyjsflhhc\",\"controlStatus\":\"lnjixisxya\"},{\"controlId\":\"oyaqcslyjpkiid\",\"controlStatus\":\"exznelixhnr\"},{\"controlId\":\"folhbnxknal\",\"controlStatus\":\"lp\"}]},{\"offerGuid\":\"gdtpnapnyiro\",\"certificationStatus\":\"hpigv\",\"ingestionStatus\":\"ylgqgitxmedjvcsl\",\"controls\":[{\"controlId\":\"wncwzzhxgktrmg\",\"controlStatus\":\"napkteoellw\"},{\"controlId\":\"fdygpfqbuaceopz\",\"controlStatus\":\"rhhuaopppcqeqx\"}]},{\"offerGuid\":\"z\",\"certificationStatus\":\"hzxct\",\"ingestionStatus\":\"gbkdmoizpos\",\"controls\":[{\"controlId\":\"cfbu\",\"controlStatus\":\"mfqjhhkxbp\"},{\"controlId\":\"ymjhxxjyngudivkr\",\"controlStatus\":\"wbxqzvszjfau\"}]},{\"offerGuid\":\"fdxxivetvtcqaqtd\",\"certificationStatus\":\"mcbxvwvxysl\",\"ingestionStatus\":\"hsfxoblytkb\",\"controls\":[{\"controlId\":\"wwwfbkr\",\"controlStatus\":\"nsvs\"}]}],\"provisioningState\":\"Creating\"},\"complianceResults\":[{\"complianceName\":\"rsbfovasrruvw\",\"categories\":[{\"categoryName\":\"fsubcgjbirxbpy\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{}]},{\"categoryName\":\"fdtwssotft\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{},{},{},{}]},{\"categoryName\":\"xilzznf\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{}]},{\"categoryName\":\"mqtaruoujmkcjh\",\"categoryStatus\":\"PendingApproval\",\"controlFamilies\":[{},{},{},{}]}]}]}") .toObject(SnapshotProperties.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotProperties model = new SnapshotProperties(); - model = BinaryData.fromObject(model).toObject(SnapshotProperties.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.java index 7477f76bed71..57bcd1976f61 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceInnerTests.java @@ -1,24 +1,17 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appcomplianceautomation.fluent.models.SnapshotResourceInner; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotProperties; public final class SnapshotResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotResourceInner model = BinaryData.fromString( - "{\"properties\":{\"snapshotName\":\"ycduier\",\"createdAt\":\"2021-07-05T23:49:12Z\",\"provisioningState\":\"Succeeded\",\"reportProperties\":{\"triggerTime\":\"2021-07-18T12:27:40Z\",\"timeZone\":\"aolps\",\"resources\":[{\"resourceId\":\"qlfmmdnbb\",\"resourceType\":\"zpswiydmc\",\"resourceKind\":\"hzdxssadbzm\",\"resourceOrigin\":\"AWS\",\"accountId\":\"znud\"},{\"resourceId\":\"od\",\"resourceType\":\"zbn\",\"resourceKind\":\"lylpstdb\",\"resourceOrigin\":\"GCP\",\"accountId\":\"rzdzucerscdnt\"}],\"status\":\"Reviewing\",\"errors\":[\"wjmy\",\"tdss\",\"s\"],\"tenantId\":\"mweriofzpy\",\"offerGuid\":\"emwabnet\",\"nextTriggerTime\":\"2021-07-19T10:32:31Z\",\"lastTriggerTime\":\"2021-08-31T12:26:12Z\",\"subscriptions\":[\"d\",\"lvwiwubmwmbesl\",\"nkww\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1624421051,\"failedCount\":799059143,\"manualCount\":1248501015,\"notApplicableCount\":712173581,\"pendingCount\":97204853}},\"storageInfo\":{\"subscriptionId\":\"z\",\"resourceGroup\":\"sikvmkqzeqqkdlt\",\"accountName\":\"xmhhvhgureo\",\"location\":\"wobdagxtibqdx\"},\"certRecords\":[{\"offerGuid\":\"kbogqxndlkzgx\",\"certificationStatus\":\"ripl\",\"ingestionStatus\":\"odxun\",\"controls\":[{},{},{}]},{\"offerGuid\":\"xmubyyntwlrbq\",\"certificationStatus\":\"oievseotgqrlltm\",\"ingestionStatus\":\"lauwzizxbmpgcjef\",\"controls\":[{}]},{\"offerGuid\":\"vpbttd\",\"certificationStatus\":\"orppxebmnzbtb\",\"ingestionStatus\":\"pglkf\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Updating\"},\"complianceResults\":[{\"complianceName\":\"fphsdyhtozfikdow\",\"categories\":[{\"categoryName\":\"v\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{},{}]},{\"categoryName\":\"ithhqzon\",\"categoryStatus\":\"NotApplicable\",\"controlFamilies\":[{}]}]}]},\"id\":\"c\",\"name\":\"hfwdsjnkaljutiis\",\"type\":\"acffgdkzzewkfvhq\"}") + "{\"properties\":{\"snapshotName\":\"jbhckfrlhr\",\"createdAt\":\"2021-11-28T23:04:04Z\",\"provisioningState\":\"Verifying\",\"reportProperties\":{\"triggerTime\":\"2021-08-06T06:24:23Z\",\"timeZone\":\"ycanuzbpzkafku\",\"resources\":[{\"resourceId\":\"crnwbmeh\",\"resourceType\":\"eyvjusrtslhspkde\",\"resourceKind\":\"aofmxagkvtme\",\"resourceOrigin\":\"Azure\",\"accountId\":\"rhahvljuahaquhcd\"}],\"status\":\"Failed\",\"errors\":[\"laexqp\",\"fadmws\",\"crgvxpvgom\",\"lf\"],\"tenantId\":\"sgwbnbbeld\",\"offerGuid\":\"k\",\"nextTriggerTime\":\"2021-06-21T08:52:47Z\",\"lastTriggerTime\":\"2021-02-02T16:45:23Z\",\"subscriptions\":[\"rqhakauha\",\"hsfwxosowzxcug\"],\"complianceStatus\":{\"m365\":{\"passedCount\":302712597,\"failedCount\":834529223,\"manualCount\":554056666,\"notApplicableCount\":832098467,\"pendingCount\":848210355}},\"storageInfo\":{\"subscriptionId\":\"wfvovbv\",\"resourceGroup\":\"uecivyhz\",\"accountName\":\"uojgj\",\"location\":\"jueiotwmcdytd\"},\"certRecords\":[{\"offerGuid\":\"xnrj\",\"certificationStatus\":\"gqwgxhniskxfbkp\",\"ingestionStatus\":\"gklwn\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"vylwzbtdhxuj\",\"categories\":[{\"categoryName\":\"pow\",\"categoryStatus\":\"Failed\",\"controlFamilies\":[{},{},{},{}]}]},{\"complianceName\":\"lve\",\"categories\":[{\"categoryName\":\"pjmkhfxobbc\",\"categoryStatus\":\"Passed\",\"controlFamilies\":[{},{}]}]}]},\"id\":\"riplrbpbewtg\",\"name\":\"fgb\",\"type\":\"c\"}") .toObject(SnapshotResourceInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SnapshotResourceInner model = new SnapshotResourceInner().withProperties(new SnapshotProperties()); - model = BinaryData.fromObject(model).toObject(SnapshotResourceInner.class); - } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java index 82cbd72e542d..43399eb82a82 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotResourceListResultTests.java @@ -1,19 +1,19 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcomplianceautomation.models.SnapshotResourceListResult; +import com.azure.resourcemanager.appcomplianceautomation.implementation.models.SnapshotResourceListResult; import org.junit.jupiter.api.Assertions; public final class SnapshotResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"snapshotName\":\"upjm\",\"createdAt\":\"2021-08-12T08:43:21Z\",\"provisioningState\":\"Failed\",\"reportProperties\":{\"triggerTime\":\"2021-03-15T14:14:57Z\",\"timeZone\":\"cswsrtjri\",\"resources\":[{\"resourceId\":\"rbpbewtghfgblcg\"},{\"resourceId\":\"xzvlvqhjkbegib\"},{\"resourceId\":\"nmxiebwwaloayqc\"},{\"resourceId\":\"wrtz\"}],\"status\":\"Active\",\"errors\":[\"yzm\",\"txon\",\"mtsavjcbpwxqp\"],\"tenantId\":\"knftguvriuh\",\"offerGuid\":\"wmdyvxqtay\",\"nextTriggerTime\":\"2021-10-05T16:00:46Z\",\"lastTriggerTime\":\"2021-02-01T07:07:12Z\",\"subscriptions\":[\"qbex\",\"mcqibycnojv\",\"nmefqsgzvahapj\",\"zhpvgqzcjrvxd\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"lxkvu\",\"resourceGroup\":\"hzovawjvzunlut\",\"accountName\":\"n\",\"location\":\"nxipeil\"},\"certRecords\":[{},{}],\"provisioningState\":\"Canceled\"},\"complianceResults\":[{\"complianceName\":\"ultskzbbtdz\",\"categories\":[{},{},{},{}]},{\"complianceName\":\"ekg\",\"categories\":[{},{}]}]},\"id\":\"uh\",\"name\":\"fpbsjyofdxl\",\"type\":\"us\"},{\"properties\":{\"snapshotName\":\"ouwaboekqvkeln\",\"createdAt\":\"2021-02-02T03:25:54Z\",\"provisioningState\":\"Deleting\",\"reportProperties\":{\"triggerTime\":\"2021-07-06T07:16:14Z\",\"timeZone\":\"jsflhhcaalnjix\",\"resources\":[{\"resourceId\":\"xyawj\"},{\"resourceId\":\"yaqcslyjpkiidz\"},{\"resourceId\":\"exznelixhnr\"}],\"status\":\"Reviewing\",\"errors\":[\"hb\",\"xknalaulppg\"],\"tenantId\":\"tpnapnyiropuhpig\",\"offerGuid\":\"gylgqgitxmedjvcs\",\"nextTriggerTime\":\"2021-02-26T17:22:44Z\",\"lastTriggerTime\":\"2021-08-06T07:06Z\",\"subscriptions\":[\"cwzzhxgktr\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"apkteoellwptfdyg\",\"resourceGroup\":\"qbuaceopzfqr\",\"accountName\":\"uaopppcqeq\",\"location\":\"lzdahzxctobgbkdm\"},\"certRecords\":[{},{},{}],\"provisioningState\":\"Creating\"},\"complianceResults\":[{\"complianceName\":\"rcfbunrm\",\"categories\":[{},{}]},{\"complianceName\":\"hkxbpv\",\"categories\":[{}]}]},\"id\":\"hx\",\"name\":\"j\",\"type\":\"n\"},{\"properties\":{\"snapshotName\":\"ivkrtsw\",\"createdAt\":\"2021-05-30T10:12:47Z\",\"provisioningState\":\"Verifying\",\"reportProperties\":{\"triggerTime\":\"2021-10-26T13:42:02Z\",\"timeZone\":\"jfauvjfdxxi\",\"resources\":[{\"resourceId\":\"tvtc\"}],\"status\":\"Active\",\"errors\":[\"oqmcbxvwvxyslq\",\"hsfxoblytkb\",\"mpew\",\"wfbkrvrns\"],\"tenantId\":\"hqjohxcrsbfova\",\"offerGuid\":\"ruvw\",\"nextTriggerTime\":\"2021-07-10T06:08:41Z\",\"lastTriggerTime\":\"2021-03-07T17:24:46Z\",\"subscriptions\":[\"bcgjbirxbp\",\"bsrfbj\",\"dtws\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"pvjzbe\",\"resourceGroup\":\"l\",\"accountName\":\"nfqqnvwp\",\"location\":\"taruoujmkcj\"},\"certRecords\":[{},{},{},{}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"n\",\"categories\":[{},{},{}]}]},\"id\":\"gdrjervnaenqpe\",\"name\":\"indoygmifthnzd\",\"type\":\"dslgnayqigynduh\"}],\"nextLink\":\"hqlkthumaqo\"}") + "{\"value\":[{\"properties\":{\"snapshotName\":\"kpj\",\"createdAt\":\"2021-08-27T06:54:30Z\",\"provisioningState\":\"Creating\",\"reportProperties\":{\"triggerTime\":\"2021-05-08T07:02:22Z\",\"timeZone\":\"ltmm\",\"resources\":[{\"resourceId\":\"hyeozphvwau\"},{\"resourceId\":\"qncygupkvi\"},{\"resourceId\":\"mdscwxqupev\"}],\"status\":\"Active\",\"errors\":[\"otxhojujby\",\"elmcuvhixbjxyfw\",\"yl\"],\"tenantId\":\"ool\",\"offerGuid\":\"tpkiwkkbnujry\",\"nextTriggerTime\":\"2021-02-15T19:37:09Z\",\"lastTriggerTime\":\"2021-04-08T10:27:26Z\",\"subscriptions\":[\"pncur\",\"oiwiithtywub\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"wqknfdn\",\"resourceGroup\":\"jchrdgoihxumw\",\"accountName\":\"ond\",\"location\":\"luudfdlwggytsb\"},\"certRecords\":[{},{},{},{}],\"provisioningState\":\"Canceled\"},\"complianceResults\":[{\"complianceName\":\"inqfiufxqknpirgn\",\"categories\":[{},{}]},{\"complianceName\":\"wqmsniffcdmqn\",\"categories\":[{},{},{}]},{\"complianceName\":\"pij\",\"categories\":[{},{}]}]},\"id\":\"frddhcrati\",\"name\":\"zronasxift\",\"type\":\"zq\"},{\"properties\":{\"snapshotName\":\"f\",\"createdAt\":\"2021-09-21T00:40:30Z\",\"provisioningState\":\"Updating\",\"reportProperties\":{\"triggerTime\":\"2021-08-08T17:45:14Z\",\"timeZone\":\"czhonnxkr\",\"resources\":[{\"resourceId\":\"nyhmossxkkgthr\"},{\"resourceId\":\"gh\"},{\"resourceId\":\"jbdhqxvc\"}],\"status\":\"Disabled\",\"errors\":[\"dsofbshrns\"],\"tenantId\":\"uswdv\",\"offerGuid\":\"ybycnunvj\",\"nextTriggerTime\":\"2021-10-26T01:26:57Z\",\"lastTriggerTime\":\"2021-03-18T10:17:36Z\",\"subscriptions\":[\"nopqgikyzirtx\",\"yuxzejntpsewgi\",\"ilqu\",\"rydxtqm\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"rgguf\",\"resourceGroup\":\"aomtbghhavgrvkff\",\"accountName\":\"jzhpjbibgjmfx\",\"location\":\"vfcluyovwxnbkfe\"},\"certRecords\":[{},{},{},{}],\"provisioningState\":\"Succeeded\"},\"complianceResults\":[{\"complianceName\":\"dgirujbzbom\",\"categories\":[{}]},{\"complianceName\":\"tdcqvpniyuj\",\"categories\":[{},{},{}]},{\"complianceName\":\"wdsh\",\"categories\":[{},{},{},{}]}]},\"id\":\"rbgyefry\",\"name\":\"sgaojfmwncot\",\"type\":\"rfh\"},{\"properties\":{\"snapshotName\":\"tymoxoftp\",\"createdAt\":\"2021-04-03T05:33:45Z\",\"provisioningState\":\"Deleting\",\"reportProperties\":{\"triggerTime\":\"2021-04-10T00:16:32Z\",\"timeZone\":\"uh\",\"resources\":[{\"resourceId\":\"cpqjlihhyu\"}],\"status\":\"Disabled\",\"errors\":[\"sdvlmfwdgzxulucv\",\"amrsreuzv\"],\"tenantId\":\"risjnhnytxifqjz\",\"offerGuid\":\"mrhublwpc\",\"nextTriggerTime\":\"2021-06-28T02:18Z\",\"lastTriggerTime\":\"2021-06-03T17:57:47Z\",\"subscriptions\":[\"upauut\",\"woqhihe\"],\"complianceStatus\":{\"m365\":{}},\"storageInfo\":{\"subscriptionId\":\"pnfqntcyp\",\"resourceGroup\":\"jv\",\"accountName\":\"imwkslircizj\",\"location\":\"ydfce\"},\"certRecords\":[{}],\"provisioningState\":\"Fixing\"},\"complianceResults\":[{\"complianceName\":\"yftumrtwna\",\"categories\":[{}]},{\"complianceName\":\"biwkojgcyzt\",\"categories\":[{},{},{}]},{\"complianceName\":\"nbaeqphchqn\",\"categories\":[{},{}]}]},\"id\":\"x\",\"name\":\"huwrykqgaifm\",\"type\":\"iklbydvkhb\"}],\"nextLink\":\"dznx\"}") .toObject(SnapshotResourceListResult.class); - Assertions.assertEquals("hqlkthumaqo", model.nextLink()); + Assertions.assertEquals("dznx", model.nextLink()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.java index 081eb4c65d41..420892716a98 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsDownloadMockTests.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.generated; @@ -22,7 +22,7 @@ public final class SnapshotsDownloadMockTests { @Test public void testDownload() throws Exception { String responseStr - = "{\"resourceList\":[{\"subscriptionId\":\"zjgehkfkim\",\"resourceGroup\":\"ixokffqyin\",\"resourceType\":\"qepqwhixmon\",\"resourceId\":\"shiy\"}],\"complianceReport\":[{\"categoryName\":\"lfcldu\",\"controlFamilyName\":\"birdsvuwcobiegs\",\"controlId\":\"ninwjizc\",\"controlName\":\"nghgshej\",\"controlStatus\":\"Failed\",\"responsibilityTitle\":\"qmuluxlxqz\",\"responsibilityDescription\":\"ers\",\"resourceId\":\"cucrwnamikze\",\"resourceType\":\"qbsms\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-08-26T22:22:09Z\"},{\"categoryName\":\"okzrus\",\"controlFamilyName\":\"vhczznvfby\",\"controlId\":\"sxjwwixz\",\"controlName\":\"mwmxqhndvnoamld\",\"controlStatus\":\"PendingApproval\",\"responsibilityTitle\":\"ohdjhhflzok\",\"responsibilityDescription\":\"ox\",\"resourceId\":\"lnjetaglt\",\"resourceType\":\"oatftgzpnpbswvef\",\"resourceOrigin\":\"GCP\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-03-21T14:41:15Z\"}],\"compliancePdfReport\":{\"sasUri\":\"ihmipgawtxxpk\"},\"complianceDetailedPdfReport\":{\"sasUri\":\"xcjxgrytfmpcy\"}}"; + = "{\"resourceList\":[{\"subscriptionId\":\"j\",\"resourceGroup\":\"vpqcb\",\"resourceType\":\"mbodthsqqgvri\",\"resourceId\":\"a\"},{\"subscriptionId\":\"lacjfrnxo\",\"resourceGroup\":\"xauzlwvsgmwohqfz\",\"resourceType\":\"vux\",\"resourceId\":\"kjsvthnwpzteko\"},{\"subscriptionId\":\"ribi\",\"resourceGroup\":\"tgplucfota\",\"resourceType\":\"c\",\"resourceId\":\"nykzcugswvxwlm\"},{\"subscriptionId\":\"wmvtxnjm\",\"resourceGroup\":\"cuqudtcvclxy\",\"resourceType\":\"dkvgfabuiyjibuzp\",\"resourceId\":\"ugneikn\"}],\"complianceReport\":[{\"categoryName\":\"gjiuqhibto\",\"controlFamilyName\":\"pqwjedm\",\"controlId\":\"r\",\"controlName\":\"g\",\"controlStatus\":\"Passed\",\"responsibilityTitle\":\"tvqylkmqpzoyhlfb\",\"responsibilityDescription\":\"wgcloxoebqinji\",\"resourceId\":\"wjfuj\",\"resourceType\":\"afcba\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Healthy\",\"resourceStatusChangeDate\":\"2021-01-06T07:53:16Z\"},{\"categoryName\":\"iyjwpfilkmkkho\",\"controlFamilyName\":\"dndviauogp\",\"controlId\":\"artvti\",\"controlName\":\"yefchnm\",\"controlStatus\":\"NotApplicable\",\"responsibilityTitle\":\"nxhkxjqi\",\"responsibilityDescription\":\"rweooxffifhx\",\"resourceId\":\"snewmozqvbub\",\"resourceType\":\"amhsycxhxzgazt\",\"resourceOrigin\":\"Azure\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-01-19T00:16:09Z\"},{\"categoryName\":\"fqhppubowsep\",\"controlFamilyName\":\"g\",\"controlId\":\"tdherngbtcjuahok\",\"controlName\":\"obkauxofsh\",\"controlStatus\":\"PendingApproval\",\"responsibilityTitle\":\"pnulaiywzej\",\"responsibilityDescription\":\"hs\",\"resourceId\":\"koj\",\"resourceType\":\"l\",\"resourceOrigin\":\"AWS\",\"resourceStatus\":\"Unhealthy\",\"resourceStatusChangeDate\":\"2021-01-09T14:38:38Z\"}],\"compliancePdfReport\":{\"sasUri\":\"afgfugsnn\"},\"complianceDetailedPdfReport\":{\"sasUri\":\"et\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testDownload() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DownloadResponse response = manager.snapshots() - .download("nptfujgi", "gaao", - new SnapshotDownloadRequest().withReportCreatorTenantId("ttaqutdew") - .withDownloadType(DownloadType.COMPLIANCE_DETAILED_PDF_REPORT) - .withOfferGuid("swvr"), + .download("qpswokmvkhlggdhb", "mzqkz", + new SnapshotDownloadRequest().withReportCreatorTenantId("uwiwtglxxhljfpg") + .withDownloadType(DownloadType.COMPLIANCE_PDF_REPORT) + .withOfferGuid("rmnzhr"), com.azure.core.util.Context.NONE); } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.java index a62674c72865..5042b9899460 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsGetWithResponseMockTests.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.generated; @@ -20,7 +20,7 @@ public final class SnapshotsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"snapshotName\":\"amwabzxrvxcushsp\",\"createdAt\":\"2021-06-11T01:35Z\",\"provisioningState\":\"Verifying\",\"reportProperties\":{\"triggerTime\":\"2021-04-04T03:00:41Z\",\"timeZone\":\"asflvg\",\"resources\":[{\"resourceId\":\"zwywako\",\"resourceType\":\"knsmjblmljhlnymz\",\"resourceKind\":\"qyryuzcbmqqvxm\",\"resourceOrigin\":\"Azure\",\"accountId\":\"tayx\"},{\"resourceId\":\"nsup\",\"resourceType\":\"jlzqnhc\",\"resourceKind\":\"ql\",\"resourceOrigin\":\"Azure\",\"accountId\":\"ibg\"}],\"status\":\"Active\",\"errors\":[\"fyq\",\"nmpqoxwdofdb\",\"iqxeiiqbimht\",\"wwinhehf\"],\"tenantId\":\"ofvwbcb\",\"offerGuid\":\"mbnkb\",\"nextTriggerTime\":\"2021-10-03T15:33:29Z\",\"lastTriggerTime\":\"2021-02-16T20:23:19Z\",\"subscriptions\":[\"ivqiheb\",\"tswbzuwfmd\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1298087244,\"failedCount\":1708780540,\"manualCount\":1824105790,\"notApplicableCount\":2034109305,\"pendingCount\":2073266063}},\"storageInfo\":{\"subscriptionId\":\"sdjubggbqigkxkbs\",\"resourceGroup\":\"gak\",\"accountName\":\"cyrcmjdmspo\",\"location\":\"pv\"},\"certRecords\":[{\"offerGuid\":\"lniofrzgbzje\",\"certificationStatus\":\"st\",\"ingestionStatus\":\"nlvxbcuii\",\"controls\":[{},{}]},{\"offerGuid\":\"wfansnvpdi\",\"certificationStatus\":\"ikostbzbkiwbuqny\",\"ingestionStatus\":\"hzfylsgcrpfbc\",\"controls\":[{},{}]},{\"offerGuid\":\"zcezelfwyfwl\",\"certificationStatus\":\"jwetnpsihcla\",\"ingestionStatus\":\"va\",\"controls\":[{}]}],\"provisioningState\":\"Deleting\"},\"complianceResults\":[{\"complianceName\":\"ztcmwq\",\"categories\":[{},{},{}]},{\"complianceName\":\"xwaxfewzjkj\",\"categories\":[{},{},{}]},{\"complianceName\":\"eqvhpsylkk\",\"categories\":[{},{}]}]},\"id\":\"ffmbmxzjrg\",\"name\":\"wwp\",\"type\":\"jx\"}"; + = "{\"properties\":{\"snapshotName\":\"waxfewzjkj\",\"createdAt\":\"2021-10-18T01:04:41Z\",\"provisioningState\":\"Deleting\",\"reportProperties\":{\"triggerTime\":\"2021-03-23T11:04:46Z\",\"timeZone\":\"hpsylkksh\",\"resources\":[{\"resourceId\":\"ffmbmxzjrg\",\"resourceType\":\"wpgj\",\"resourceKind\":\"nptfujgi\",\"resourceOrigin\":\"AWS\",\"accountId\":\"o\"},{\"resourceId\":\"pttaqutd\",\"resourceType\":\"emxswvruu\",\"resourceKind\":\"zjgehkfkim\",\"resourceOrigin\":\"GCP\",\"accountId\":\"okffqyinljqepqwh\"}],\"status\":\"Disabled\",\"errors\":[\"stshiy\",\"gvelfc\"],\"tenantId\":\"uccbirdsvuw\",\"offerGuid\":\"b\",\"nextTriggerTime\":\"2021-10-09T11:33:20Z\",\"lastTriggerTime\":\"2021-02-11T07:52:46Z\",\"subscriptions\":[\"inwjizcilngh\",\"shejjtbxqm\"],\"complianceStatus\":{\"m365\":{\"passedCount\":1413912286,\"failedCount\":1164696958,\"manualCount\":1071855018,\"notApplicableCount\":749316543,\"pendingCount\":1381551038}},\"storageInfo\":{\"subscriptionId\":\"cucrwnamikze\",\"resourceGroup\":\"qbsms\",\"accountName\":\"iqg\",\"location\":\"hokzrusw\"},\"certRecords\":[{\"offerGuid\":\"zznvfbyc\",\"certificationStatus\":\"xjww\",\"ingestionStatus\":\"z\",\"controls\":[{},{},{},{}]},{\"offerGuid\":\"mxqhndvnoamldse\",\"certificationStatus\":\"ohdjhhflzok\",\"ingestionStatus\":\"ox\",\"controls\":[{},{},{}]}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"ltsxoatf\",\"categories\":[{},{}]},{\"complianceName\":\"npbs\",\"categories\":[{}]}]},\"id\":\"loccsrmozihm\",\"name\":\"pgawtxxpkyjcxcjx\",\"type\":\"rytfmpcycil\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,9 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - SnapshotResource response - = manager.snapshots().getWithResponse("azuawx", "z", com.azure.core.util.Context.NONE).getValue(); + SnapshotResource response = manager.snapshots() + .getWithResponse("hclafzvaylptrs", "qwztcmwqkc", com.azure.core.util.Context.NONE) + .getValue(); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.java index b70231c60fa9..4763272cc3e0 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SnapshotsListMockTests.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.generated; @@ -21,7 +21,7 @@ public final class SnapshotsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"snapshotName\":\"tmcg\",\"createdAt\":\"2021-04-24T18:57:19Z\",\"provisioningState\":\"Succeeded\",\"reportProperties\":{\"triggerTime\":\"2021-01-11T18:38:59Z\",\"timeZone\":\"lnd\",\"resources\":[{\"resourceId\":\"tutmzl\",\"resourceType\":\"ojlvfhrbbpneqvc\",\"resourceKind\":\"yyurmochpprprsnm\",\"resourceOrigin\":\"AWS\",\"accountId\":\"zejnhl\"},{\"resourceId\":\"kpbz\",\"resourceType\":\"piljhahzvech\",\"resourceKind\":\"bnwieholew\",\"resourceOrigin\":\"Azure\",\"accountId\":\"ubwefqs\"},{\"resourceId\":\"ap\",\"resourceType\":\"tf\",\"resourceKind\":\"rqwexjkmfxapjwog\",\"resourceOrigin\":\"AWS\",\"accountId\":\"bpudcdab\"},{\"resourceId\":\"qwpwyawbzasqbuc\",\"resourceType\":\"gkyexaoguy\",\"resourceKind\":\"p\",\"resourceOrigin\":\"GCP\",\"accountId\":\"ault\"}],\"status\":\"Active\",\"errors\":[\"mfqwa\"],\"tenantId\":\"nqnm\",\"offerGuid\":\"ngz\",\"nextTriggerTime\":\"2021-03-07T06:59:29Z\",\"lastTriggerTime\":\"2021-06-22T01:10:17Z\",\"subscriptions\":[\"wgnyfusfzsvtui\"],\"complianceStatus\":{\"m365\":{\"passedCount\":566108141,\"failedCount\":1502257649,\"manualCount\":961484418,\"notApplicableCount\":388714674,\"pendingCount\":32509021}},\"storageInfo\":{\"subscriptionId\":\"ryxynqnzrd\",\"resourceGroup\":\"ovw\",\"accountName\":\"nptgoeiybba\",\"location\":\"fhvfsl\"},\"certRecords\":[{\"offerGuid\":\"jlrigjkskyrioovz\",\"certificationStatus\":\"sxwaabzm\",\"ingestionStatus\":\"rygznmmaxriz\",\"controls\":[{},{}]},{\"offerGuid\":\"gopxlhslnelxie\",\"certificationStatus\":\"ynllxe\",\"ingestionStatus\":\"crojp\",\"controls\":[{}]}],\"provisioningState\":\"Verifying\"},\"complianceResults\":[{\"complianceName\":\"tifdwfmvi\",\"categories\":[{}]},{\"complianceName\":\"jbt\",\"categories\":[{}]},{\"complianceName\":\"aglkafhon\",\"categories\":[{},{}]},{\"complianceName\":\"eickpz\",\"categories\":[{}]}]},\"id\":\"pmxelnwcltyje\",\"name\":\"ex\",\"type\":\"mlfmkqs\"}]}"; + = "{\"value\":[{\"properties\":{\"snapshotName\":\"bhjmznnb\",\"createdAt\":\"2021-07-25T22:28:32Z\",\"provisioningState\":\"Verifying\",\"reportProperties\":{\"triggerTime\":\"2021-07-13T15:42:20Z\",\"timeZone\":\"arvlagunbt\",\"resources\":[{\"resourceId\":\"ebwlnbmhyreeudzq\",\"resourceType\":\"bpdqmjxlyy\",\"resourceKind\":\"lgouwtlmjj\",\"resourceOrigin\":\"GCP\",\"accountId\":\"qtobaxkjeyt\"},{\"resourceId\":\"nlb\",\"resourceType\":\"kwr\",\"resourceKind\":\"nkqbhsyrq\",\"resourceOrigin\":\"GCP\",\"accountId\":\"hdenxaulk\"},{\"resourceId\":\"akdkifmjnnawtqab\",\"resourceType\":\"uckpggqoweyir\",\"resourceKind\":\"lisn\",\"resourceOrigin\":\"Azure\",\"accountId\":\"qqmpizruwnpqx\"},{\"resourceId\":\"xiw\",\"resourceType\":\"ngjsaasi\",\"resourceKind\":\"tmkzjvkviirhgfgr\",\"resourceOrigin\":\"AWS\",\"accountId\":\"gratzvzbglbyvict\"}],\"status\":\"Failed\",\"errors\":[\"kjzwrgxf\",\"mshkwfbkgo\",\"xwopdbydpizqa\"],\"tenantId\":\"napxbiygnug\",\"offerGuid\":\"nfsm\",\"nextTriggerTime\":\"2020-12-29T23:37:42Z\",\"lastTriggerTime\":\"2021-10-24T15:34:17Z\",\"subscriptions\":[\"uyilflqoiquvrehm\",\"njhvsujztc\"],\"complianceStatus\":{\"m365\":{\"passedCount\":51352608,\"failedCount\":221110799,\"manualCount\":1478237791,\"notApplicableCount\":1215102009,\"pendingCount\":1346405243}},\"storageInfo\":{\"subscriptionId\":\"njle\",\"resourceGroup\":\"xsmrpddouifamow\",\"accountName\":\"iynknlq\",\"location\":\"dvpiwh\"},\"certRecords\":[{\"offerGuid\":\"dtmaa\",\"certificationStatus\":\"uhuxylrjvmtyg\",\"ingestionStatus\":\"mzyospspshck\",\"controls\":[{},{},{},{}]},{\"offerGuid\":\"pms\",\"certificationStatus\":\"pssdfppyogtie\",\"ingestionStatus\":\"jtvczkcnyxrxmun\",\"controls\":[{},{},{}]},{\"offerGuid\":\"glnkvxlxpagl\",\"certificationStatus\":\"vbgkcvkhpzv\",\"ingestionStatus\":\"d\",\"controls\":[{},{}]}],\"provisioningState\":\"Fixing\"},\"complianceResults\":[{\"complianceName\":\"pubcpzgpxtivhjk\",\"categories\":[{},{},{},{}]},{\"complianceName\":\"bgqjxgpnrhgo\",\"categories\":[{},{}]},{\"complianceName\":\"ik\",\"categories\":[{}]}]},\"id\":\"ao\",\"name\":\"jrmzvupor\",\"type\":\"zdfuydzvkfvxcnqm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,8 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.snapshots() - .list("owxeqocljmy", "vkzqk", 1858033886, "eokbze", "ezrxcczurtleipqx", "kwv", "gnzvdfbzdixzm", - "pnodawopqhe", com.azure.core.util.Context.NONE); + .list("mcayk", "gnoxuztrksx", 605983945, "ndfcpfn", "nthjtwkjaosrxuzv", "amktcqiosmgbzah", "xqdlyrtltlapr", + "tz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.java index 9e66b865eace..379c09855770 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StatusItemTests.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.generated; @@ -11,9 +11,9 @@ public final class StatusItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - StatusItem model - = BinaryData.fromString("{\"statusName\":\"wnoi\",\"statusValue\":\"wlrxyb\"}").toObject(StatusItem.class); - Assertions.assertEquals("wnoi", model.statusName()); - Assertions.assertEquals("wlrxyb", model.statusValue()); + StatusItem model = BinaryData.fromString("{\"statusName\":\"ihfrbbcevqa\",\"statusValue\":\"ltd\"}") + .toObject(StatusItem.class); + Assertions.assertEquals("ihfrbbcevqa", model.statusName()); + Assertions.assertEquals("ltd", model.statusValue()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.java index 94adb5f1bd3e..bfc676a89553 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/StorageInfoTests.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.generated; @@ -12,24 +12,24 @@ public final class StorageInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StorageInfo model = BinaryData.fromString( - "{\"subscriptionId\":\"itjz\",\"resourceGroup\":\"lusarh\",\"accountName\":\"fcqhsmyurkd\",\"location\":\"lx\"}") + "{\"subscriptionId\":\"ljofxqeofjaeqjh\",\"resourceGroup\":\"b\",\"accountName\":\"v\",\"location\":\"mjqulngsn\"}") .toObject(StorageInfo.class); - Assertions.assertEquals("itjz", model.subscriptionId()); - Assertions.assertEquals("lusarh", model.resourceGroup()); - Assertions.assertEquals("fcqhsmyurkd", model.accountName()); - Assertions.assertEquals("lx", model.location()); + Assertions.assertEquals("ljofxqeofjaeqjh", model.subscriptionId()); + Assertions.assertEquals("b", model.resourceGroup()); + Assertions.assertEquals("v", model.accountName()); + Assertions.assertEquals("mjqulngsn", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - StorageInfo model = new StorageInfo().withSubscriptionId("itjz") - .withResourceGroup("lusarh") - .withAccountName("fcqhsmyurkd") - .withLocation("lx"); + StorageInfo model = new StorageInfo().withSubscriptionId("ljofxqeofjaeqjh") + .withResourceGroup("b") + .withAccountName("v") + .withLocation("mjqulngsn"); model = BinaryData.fromObject(model).toObject(StorageInfo.class); - Assertions.assertEquals("itjz", model.subscriptionId()); - Assertions.assertEquals("lusarh", model.resourceGroup()); - Assertions.assertEquals("fcqhsmyurkd", model.accountName()); - Assertions.assertEquals("lx", model.location()); + Assertions.assertEquals("ljofxqeofjaeqjh", model.subscriptionId()); + Assertions.assertEquals("b", model.resourceGroup()); + Assertions.assertEquals("v", model.accountName()); + Assertions.assertEquals("mjqulngsn", model.location()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.java index 8e26fd27a833..5ddd525668c3 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordRequestTests.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.generated; @@ -15,30 +15,30 @@ public final class SyncCertRecordRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SyncCertRecordRequest model = BinaryData.fromString( - "{\"certRecord\":{\"offerGuid\":\"mwctondzjluudfd\",\"certificationStatus\":\"gg\",\"ingestionStatus\":\"sb\",\"controls\":[{\"controlId\":\"vtgsei\",\"controlStatus\":\"fiufx\"},{\"controlId\":\"npirgnepttw\",\"controlStatus\":\"sniffc\"},{\"controlId\":\"qnrojlpijnkrxfrd\",\"controlStatus\":\"c\"},{\"controlId\":\"tizzronasxif\",\"controlStatus\":\"zq\"}]}}") + "{\"certRecord\":{\"offerGuid\":\"fsnkymuctq\",\"certificationStatus\":\"fbebrjcxer\",\"ingestionStatus\":\"wutttxfvjrbi\",\"controls\":[{\"controlId\":\"epcyvahfnlj\",\"controlStatus\":\"qxj\"},{\"controlId\":\"ujqgidok\",\"controlStatus\":\"ljyoxgvcltb\"},{\"controlId\":\"ncghkje\",\"controlStatus\":\"zhbijhtxfv\"},{\"controlId\":\"bfs\",\"controlStatus\":\"nehmpvecx\"}]}}") .toObject(SyncCertRecordRequest.class); - Assertions.assertEquals("mwctondzjluudfd", model.certRecord().offerGuid()); - Assertions.assertEquals("gg", model.certRecord().certificationStatus()); - Assertions.assertEquals("sb", model.certRecord().ingestionStatus()); - Assertions.assertEquals("vtgsei", model.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("fiufx", model.certRecord().controls().get(0).controlStatus()); + Assertions.assertEquals("fsnkymuctq", model.certRecord().offerGuid()); + Assertions.assertEquals("fbebrjcxer", model.certRecord().certificationStatus()); + Assertions.assertEquals("wutttxfvjrbi", model.certRecord().ingestionStatus()); + Assertions.assertEquals("epcyvahfnlj", model.certRecord().controls().get(0).controlId()); + Assertions.assertEquals("qxj", model.certRecord().controls().get(0).controlStatus()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SyncCertRecordRequest model - = new SyncCertRecordRequest().withCertRecord(new CertSyncRecord().withOfferGuid("mwctondzjluudfd") - .withCertificationStatus("gg") - .withIngestionStatus("sb") - .withControls(Arrays.asList(new ControlSyncRecord().withControlId("vtgsei").withControlStatus("fiufx"), - new ControlSyncRecord().withControlId("npirgnepttw").withControlStatus("sniffc"), - new ControlSyncRecord().withControlId("qnrojlpijnkrxfrd").withControlStatus("c"), - new ControlSyncRecord().withControlId("tizzronasxif").withControlStatus("zq")))); + SyncCertRecordRequest model = new SyncCertRecordRequest().withCertRecord(new CertSyncRecord() + .withOfferGuid("fsnkymuctq") + .withCertificationStatus("fbebrjcxer") + .withIngestionStatus("wutttxfvjrbi") + .withControls(Arrays.asList(new ControlSyncRecord().withControlId("epcyvahfnlj").withControlStatus("qxj"), + new ControlSyncRecord().withControlId("ujqgidok").withControlStatus("ljyoxgvcltb"), + new ControlSyncRecord().withControlId("ncghkje").withControlStatus("zhbijhtxfv"), + new ControlSyncRecord().withControlId("bfs").withControlStatus("nehmpvecx")))); model = BinaryData.fromObject(model).toObject(SyncCertRecordRequest.class); - Assertions.assertEquals("mwctondzjluudfd", model.certRecord().offerGuid()); - Assertions.assertEquals("gg", model.certRecord().certificationStatus()); - Assertions.assertEquals("sb", model.certRecord().ingestionStatus()); - Assertions.assertEquals("vtgsei", model.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("fiufx", model.certRecord().controls().get(0).controlStatus()); + Assertions.assertEquals("fsnkymuctq", model.certRecord().offerGuid()); + Assertions.assertEquals("fbebrjcxer", model.certRecord().certificationStatus()); + Assertions.assertEquals("wutttxfvjrbi", model.certRecord().ingestionStatus()); + Assertions.assertEquals("epcyvahfnlj", model.certRecord().controls().get(0).controlId()); + Assertions.assertEquals("qxj", model.certRecord().controls().get(0).controlStatus()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.java index 84e59fc3f090..398bf5867503 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/SyncCertRecordResponseInnerTests.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.generated; @@ -12,12 +12,12 @@ public final class SyncCertRecordResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SyncCertRecordResponseInner model = BinaryData.fromString( - "{\"certRecord\":{\"offerGuid\":\"f\",\"certificationStatus\":\"esgogc\",\"ingestionStatus\":\"onnxkrlgnyhm\",\"controls\":[{\"controlId\":\"kkgthr\",\"controlStatus\":\"hxjbdhqxvc\"},{\"controlId\":\"frpdsofbshrns\",\"controlStatus\":\"uswdv\"}]}}") + "{\"certRecord\":{\"offerGuid\":\"ebfqkkrbm\",\"certificationStatus\":\"kgriwflzlfbx\",\"ingestionStatus\":\"uzycispnqza\",\"controls\":[{\"controlId\":\"brpyydhi\",\"controlStatus\":\"uqqkpik\"},{\"controlId\":\"rgvtqag\",\"controlStatus\":\"uynhijg\"}]}}") .toObject(SyncCertRecordResponseInner.class); - Assertions.assertEquals("f", model.certRecord().offerGuid()); - Assertions.assertEquals("esgogc", model.certRecord().certificationStatus()); - Assertions.assertEquals("onnxkrlgnyhm", model.certRecord().ingestionStatus()); - Assertions.assertEquals("kkgthr", model.certRecord().controls().get(0).controlId()); - Assertions.assertEquals("hxjbdhqxvc", model.certRecord().controls().get(0).controlStatus()); + Assertions.assertEquals("ebfqkkrbm", model.certRecord().offerGuid()); + Assertions.assertEquals("kgriwflzlfbx", model.certRecord().certificationStatus()); + Assertions.assertEquals("uzycispnqza", model.certRecord().ingestionStatus()); + Assertions.assertEquals("brpyydhi", model.certRecord().controls().get(0).controlId()); + Assertions.assertEquals("uqqkpik", model.certRecord().controls().get(0).controlStatus()); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.java index d34e022da33a..491dffc3cba2 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationPropertyTests.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.generated; @@ -12,8 +12,8 @@ public final class TriggerEvaluationPropertyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TriggerEvaluationProperty model = BinaryData.fromString( - "{\"triggerTime\":\"2021-01-28T16:24:30Z\",\"evaluationEndTime\":\"2021-11-18T18:42:57Z\",\"resourceIds\":[\"volvtn\"],\"quickAssessments\":[{\"resourceId\":\"zgemjdftuljlt\",\"responsibilityId\":\"ceamtm\",\"timestamp\":\"2021-01-22T15:39:19Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"jw\",\"description\":\"wqiok\",\"remediationLink\":\"sx\"},{\"resourceId\":\"jmsvpkjp\",\"responsibilityId\":\"kwcf\",\"timestamp\":\"2021-12-08T22:14:22Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"gtczheydb\",\"description\":\"shmkxmaehvbbxur\",\"remediationLink\":\"ltfnhtbaxkgx\"},{\"resourceId\":\"rc\",\"responsibilityId\":\"yklyhpluodpvruud\",\"timestamp\":\"2021-06-21T19:59:28Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"hostgktstvdxecl\",\"description\":\"dqbcvhzlhplod\",\"remediationLink\":\"dlwwqfbumlkxt\"}]}") + "{\"triggerTime\":\"2021-11-28T06:42:14Z\",\"evaluationEndTime\":\"2021-07-14T10:08:56Z\",\"resourceIds\":[\"wqfbylyrfgiagt\"],\"quickAssessments\":[{\"resourceId\":\"cqwogfnzjvusfzl\",\"responsibilityId\":\"ozuxylfsbtkadpys\",\"timestamp\":\"2021-09-16T16:53:04Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"kb\",\"description\":\"rj\",\"remediationLink\":\"to\"},{\"resourceId\":\"mi\",\"responsibilityId\":\"fieypefojyqdhcup\",\"timestamp\":\"2021-02-11T17:54:04Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"khihihlhzds\",\"description\":\"zbsrgnowcj\",\"remediationLink\":\"gmvecactxmw\"},{\"resourceId\":\"e\",\"responsibilityId\":\"wcluqovekqvgq\",\"timestamp\":\"2021-09-14T11:53:50Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"mpjw\",\"description\":\"vqikfxcvhrfsphu\",\"remediationLink\":\"rttikteusqc\"},{\"resourceId\":\"vyklxuby\",\"responsibilityId\":\"ff\",\"timestamp\":\"2021-01-18T06:44:16Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"qcuubgqibrta\",\"description\":\"etttwgdslqxihhr\",\"remediationLink\":\"oi\"}]}") .toObject(TriggerEvaluationProperty.class); - Assertions.assertEquals("volvtn", model.resourceIds().get(0)); + Assertions.assertEquals("wqfbylyrfgiagt", model.resourceIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.java index a5fafdac9fc7..a790798e9af4 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationRequestTests.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.generated; @@ -12,16 +12,15 @@ public final class TriggerEvaluationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TriggerEvaluationRequest model = BinaryData.fromString("{\"resourceIds\":[\"sdvlmfwdgzxulucv\",\"amrsreuzv\"]}") - .toObject(TriggerEvaluationRequest.class); - Assertions.assertEquals("sdvlmfwdgzxulucv", model.resourceIds().get(0)); + TriggerEvaluationRequest model + = BinaryData.fromString("{\"resourceIds\":[\"u\",\"m\"]}").toObject(TriggerEvaluationRequest.class); + Assertions.assertEquals("u", model.resourceIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TriggerEvaluationRequest model - = new TriggerEvaluationRequest().withResourceIds(Arrays.asList("sdvlmfwdgzxulucv", "amrsreuzv")); + TriggerEvaluationRequest model = new TriggerEvaluationRequest().withResourceIds(Arrays.asList("u", "m")); model = BinaryData.fromObject(model).toObject(TriggerEvaluationRequest.class); - Assertions.assertEquals("sdvlmfwdgzxulucv", model.resourceIds().get(0)); + Assertions.assertEquals("u", model.resourceIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.java index 74cedda7a548..518803e9af16 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/TriggerEvaluationResponseInnerTests.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.generated; @@ -12,8 +12,8 @@ public final class TriggerEvaluationResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TriggerEvaluationResponseInner model = BinaryData.fromString( - "{\"properties\":{\"triggerTime\":\"2021-11-19T17:24:15Z\",\"evaluationEndTime\":\"2021-08-12T14:06:46Z\",\"resourceIds\":[\"nytx\"],\"quickAssessments\":[{\"resourceId\":\"zgxmr\",\"responsibilityId\":\"blwpcesutrgj\",\"timestamp\":\"2021-05-25T10:58:49Z\",\"resourceStatus\":\"Unhealthy\",\"displayName\":\"p\",\"description\":\"qhih\",\"remediationLink\":\"qg\"},{\"resourceId\":\"pnfqntcyp\",\"responsibilityId\":\"jv\",\"timestamp\":\"2021-01-30T06:17:36Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"slirciz\",\"description\":\"vydfceacvlhvygdy\",\"remediationLink\":\"umrtwnawjsl\"},{\"resourceId\":\"wkojgcyztsfmzn\",\"responsibilityId\":\"eqphchqnrnr\",\"timestamp\":\"2021-01-21T00:49:26Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"ykqgaifmvik\",\"description\":\"ydv\",\"remediationLink\":\"bejdznxcv\"}]}}") + "{\"properties\":{\"triggerTime\":\"2021-04-26T08:47:48Z\",\"evaluationEndTime\":\"2021-11-06T21:45:06Z\",\"resourceIds\":[\"hocxvdfffwafqrou\",\"aspavehhr\",\"kbunzoz\",\"dhcxgkmoy\"],\"quickAssessments\":[{\"resourceId\":\"uibhmfdnbzydvfv\",\"responsibilityId\":\"jnaeois\",\"timestamp\":\"2021-10-16T19:23:29Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"r\",\"description\":\"ukiscvwmzhw\",\"remediationLink\":\"efaxvxilc\"},{\"resourceId\":\"gnhnzeyq\",\"responsibilityId\":\"jjfzqlqhycavo\",\"timestamp\":\"2021-06-13T00:01:12Z\",\"resourceStatus\":\"Healthy\",\"displayName\":\"ee\",\"description\":\"ieknl\",\"remediationLink\":\"riaa\"}]}}") .toObject(TriggerEvaluationResponseInner.class); - Assertions.assertEquals("nytx", model.properties().resourceIds().get(0)); + Assertions.assertEquals("hocxvdfffwafqrou", model.properties().resourceIds().get(0)); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.java b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.java index 947739a620de..a06a899966e4 100644 --- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.java +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/src/test/java/com/azure/resourcemanager/appcomplianceautomation/generated/WebhooksDeleteByResourceGroupWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.webhooks() - .deleteByResourceGroupWithResponse("xwopdbydpizqa", "lnapxbiygn", com.azure.core.util.Context.NONE); + .deleteByResourceGroupWithResponse("rcmjdmspofapvuh", "ylnio", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/tsp-location.yaml b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/tsp-location.yaml new file mode 100644 index 000000000000..b5ba2867a508 --- /dev/null +++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/appcomplianceautomation/AppComplianceAutomation.Management +commit: 7d0d7f2d36328e621487a23ff300500f146db320 +repo: test-repo-billy/azure-rest-api-specs +additionalDirectories: \ No newline at end of file