diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index bd1644944ed74..4d0c0cfb88fee 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.6 (Unreleased)
+## 1.0.0-beta.1 (2023-04-18)
+
+- Azure Resource Manager Security client library for Java. This package contains Microsoft Azure SDK for Security Management SDK. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md
index 960b33cd33f3f..014cf669049aa 100644
--- a/sdk/security/azure-resourcemanager-security/README.md
+++ b/sdk/security/azure-resourcemanager-security/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-security
- 1.0.0-beta.5
+ 1.0.0-beta.6
```
[//]: # ({x-version-update-end})
diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md
index 3972495626d94..a875a743b16fa 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -262,6 +262,11 @@
- [Get](#regulatorycompliancestandards_get)
- [List](#regulatorycompliancestandards_list)
+## ResourceProvider
+
+- [GetSensitivitySettings](#resourceprovider_getsensitivitysettings)
+- [UpdateSensitivitySettings](#resourceprovider_updatesensitivitysettings)
+
## SecureScoreControlDefinitions
- [List](#securescorecontroldefinitions_list)
@@ -320,6 +325,10 @@
- [List](#securitysolutionsreferencedata_list)
- [ListByHomeRegion](#securitysolutionsreferencedata_listbyhomeregion)
+## SensitivitySettings
+
+- [List](#sensitivitysettings_list)
+
## ServerVulnerabilityAssessment
- [CreateOrUpdate](#servervulnerabilityassessment_createorupdate)
@@ -4784,6 +4793,60 @@ public final class RegulatoryComplianceStandardsListSamples {
}
```
+### ResourceProvider_GetSensitivitySettings
+
+```java
+/** Samples for ResourceProvider GetSensitivitySettings. */
+public final class ResourceProviderGetSensitivitySettingsSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json
+ */
+ /**
+ * Sample code: Get sensitivity settings.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSensitivitySettings(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.resourceProviders().getSensitivitySettingsWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_UpdateSensitivitySettings
+
+```java
+import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for ResourceProvider UpdateSensitivitySettings. */
+public final class ResourceProviderUpdateSensitivitySettingsSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json
+ */
+ /**
+ * Sample code: Update sensitivity settings.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSensitivitySettings(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .resourceProviders()
+ .updateSensitivitySettingsWithResponse(
+ new UpdateSensitivitySettingsRequest()
+ .withSensitiveInfoTypesIds(
+ Arrays
+ .asList(
+ UUID.fromString("f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb"),
+ UUID.fromString("b452f22b-f87d-4f48-8490-ecf0873325b5"),
+ UUID.fromString("d59ee8b6-2618-404b-a5e7-aa377cd67543")))
+ .withSensitivityThresholdLabelOrder(2.0F)
+ .withSensitivityThresholdLabelId(UUID.fromString("f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### SecureScoreControlDefinitions_List
```java
@@ -5497,6 +5560,25 @@ public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
}
```
+### SensitivitySettings_List
+
+```java
+/** Samples for SensitivitySettings List. */
+public final class SensitivitySettingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json
+ */
+ /**
+ * Sample code: Get sensitivity settings list.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSensitivitySettingsList(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.sensitivitySettings().listWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ServerVulnerabilityAssessment_CreateOrUpdate
```java
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
index 80fd7da717a70..28710a6690923 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
@@ -65,6 +65,7 @@
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceControlsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceStandardsImpl;
+import com.azure.resourcemanager.security.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.security.implementation.SecureScoreControlDefinitionsImpl;
import com.azure.resourcemanager.security.implementation.SecureScoreControlsImpl;
import com.azure.resourcemanager.security.implementation.SecureScoresImpl;
@@ -76,6 +77,7 @@
import com.azure.resourcemanager.security.implementation.SecurityOperatorsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsReferenceDatasImpl;
+import com.azure.resourcemanager.security.implementation.SensitivitySettingsImpl;
import com.azure.resourcemanager.security.implementation.ServerVulnerabilityAssessmentsImpl;
import com.azure.resourcemanager.security.implementation.SettingsImpl;
import com.azure.resourcemanager.security.implementation.SoftwareInventoriesImpl;
@@ -127,6 +129,7 @@
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
import com.azure.resourcemanager.security.models.RegulatoryComplianceControls;
import com.azure.resourcemanager.security.models.RegulatoryComplianceStandards;
+import com.azure.resourcemanager.security.models.ResourceProviders;
import com.azure.resourcemanager.security.models.SecureScoreControlDefinitions;
import com.azure.resourcemanager.security.models.SecureScoreControls;
import com.azure.resourcemanager.security.models.SecureScores;
@@ -137,6 +140,7 @@
import com.azure.resourcemanager.security.models.SecurityOperators;
import com.azure.resourcemanager.security.models.SecuritySolutions;
import com.azure.resourcemanager.security.models.SecuritySolutionsReferenceDatas;
+import com.azure.resourcemanager.security.models.SensitivitySettings;
import com.azure.resourcemanager.security.models.ServerVulnerabilityAssessments;
import com.azure.resourcemanager.security.models.Settings;
import com.azure.resourcemanager.security.models.SoftwareInventories;
@@ -238,6 +242,10 @@ public final class SecurityManager {
private Connectors connectors;
+ private ResourceProviders resourceProviders;
+
+ private SensitivitySettings sensitivitySettings;
+
private Alerts alerts;
private Settings settings;
@@ -443,7 +451,7 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
.append("-")
.append("com.azure.resourcemanager.security")
.append("/")
- .append("1.0.0-beta.5");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -1014,6 +1022,30 @@ public Connectors connectors() {
return connectors;
}
+ /**
+ * Gets the resource collection API of ResourceProviders.
+ *
+ * @return Resource collection API of ResourceProviders.
+ */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /**
+ * Gets the resource collection API of SensitivitySettings.
+ *
+ * @return Resource collection API of SensitivitySettings.
+ */
+ public SensitivitySettings sensitivitySettings() {
+ if (this.sensitivitySettings == null) {
+ this.sensitivitySettings = new SensitivitySettingsImpl(clientObject.getSensitivitySettings(), this);
+ }
+ return sensitivitySettings;
+ }
+
/**
* Gets the resource collection API of Alerts.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ResourceProvidersClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ResourceProvidersClient.java
new file mode 100644
index 0000000000000..099992cef0fa5
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ResourceProvidersClient.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
+import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
+
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public interface ResourceProvidersClient {
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateSensitivitySettingsWithResponse(
+ UpdateSensitivitySettingsRequest sensitivitySettings, Context context);
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GetSensitivitySettingsResponseInner updateSensitivitySettings(UpdateSensitivitySettingsRequest sensitivitySettings);
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSensitivitySettingsWithResponse(Context context);
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @throws com.azure.core.management.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 data sensitivity settings for sensitive data discovery.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GetSensitivitySettingsResponseInner getSensitivitySettings();
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java
index 3632a9b918151..e7f30beda23eb 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java
@@ -324,6 +324,20 @@ public interface SecurityCenter {
*/
ConnectorsClient getConnectors();
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ ResourceProvidersClient getResourceProviders();
+
+ /**
+ * Gets the SensitivitySettingsClient object to access its operations.
+ *
+ * @return the SensitivitySettingsClient object.
+ */
+ SensitivitySettingsClient getSensitivitySettings();
+
/**
* Gets the AlertsClient object to access its operations.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.java
new file mode 100644
index 0000000000000..600866a35bde5
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner;
+
+/** An instance of this class provides access to all the operations defined in SensitivitySettingsClient. */
+public interface SensitivitySettingsClient {
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 list with a single sensitivity settings resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list with a single sensitivity settings resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GetSensitivitySettingsListResponseInner list();
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GetSensitivitySettingsListResponseInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GetSensitivitySettingsListResponseInner.java
new file mode 100644
index 0000000000000..0e2bf79a0bd50
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GetSensitivitySettingsListResponseInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list with a single sensitivity settings resource. */
+@Fluent
+public final class GetSensitivitySettingsListResponseInner {
+ /*
+ * The value property.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /** Creates an instance of GetSensitivitySettingsListResponseInner class. */
+ public GetSensitivitySettingsListResponseInner() {
+ }
+
+ /**
+ * Get the value property: The value property.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The value property.
+ *
+ * @param value the value value to set.
+ * @return the GetSensitivitySettingsListResponseInner object itself.
+ */
+ public GetSensitivitySettingsListResponseInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GetSensitivitySettingsResponseInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GetSensitivitySettingsResponseInner.java
new file mode 100644
index 0000000000000..b1418837f06b8
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GetSensitivitySettingsResponseInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsResponseProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Data sensitivity settings for sensitive data discovery. */
+@Fluent
+public final class GetSensitivitySettingsResponseInner extends ProxyResource {
+ /*
+ * The sensitivity settings properties
+ */
+ @JsonProperty(value = "properties")
+ private GetSensitivitySettingsResponseProperties properties;
+
+ /** Creates an instance of GetSensitivitySettingsResponseInner class. */
+ public GetSensitivitySettingsResponseInner() {
+ }
+
+ /**
+ * Get the properties property: The sensitivity settings properties.
+ *
+ * @return the properties value.
+ */
+ public GetSensitivitySettingsResponseProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The sensitivity settings properties.
+ *
+ * @param properties the properties value to set.
+ * @return the GetSensitivitySettingsResponseInner object itself.
+ */
+ public GetSensitivitySettingsResponseInner withProperties(GetSensitivitySettingsResponseProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GetSensitivitySettingsListResponseImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GetSensitivitySettingsListResponseImpl.java
new file mode 100644
index 0000000000000..cf452cee7ba56
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GetSensitivitySettingsListResponseImpl.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.implementation;
+
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsListResponse;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsResponse;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class GetSensitivitySettingsListResponseImpl implements GetSensitivitySettingsListResponse {
+ private GetSensitivitySettingsListResponseInner innerObject;
+
+ private final com.azure.resourcemanager.security.SecurityManager serviceManager;
+
+ GetSensitivitySettingsListResponseImpl(
+ GetSensitivitySettingsListResponseInner innerObject,
+ com.azure.resourcemanager.security.SecurityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new GetSensitivitySettingsResponseImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public GetSensitivitySettingsListResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.security.SecurityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GetSensitivitySettingsResponseImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GetSensitivitySettingsResponseImpl.java
new file mode 100644
index 0000000000000..b0a80f10452ad
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/GetSensitivitySettingsResponseImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.implementation;
+
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsResponse;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsResponseProperties;
+
+public final class GetSensitivitySettingsResponseImpl implements GetSensitivitySettingsResponse {
+ private GetSensitivitySettingsResponseInner innerObject;
+
+ private final com.azure.resourcemanager.security.SecurityManager serviceManager;
+
+ GetSensitivitySettingsResponseImpl(
+ GetSensitivitySettingsResponseInner innerObject,
+ com.azure.resourcemanager.security.SecurityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public GetSensitivitySettingsResponseProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public GetSensitivitySettingsResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.security.SecurityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ResourceProvidersClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ResourceProvidersClientImpl.java
new file mode 100644
index 0000000000000..9b600fe64146a
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ResourceProvidersClientImpl.java
@@ -0,0 +1,280 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.security.fluent.ResourceProvidersClient;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
+import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public final class ResourceProvidersClientImpl implements ResourceProvidersClient {
+ /** The proxy service used to perform REST calls. */
+ private final ResourceProvidersService service;
+
+ /** The service client containing this operation class. */
+ private final SecurityCenterImpl client;
+
+ /**
+ * Initializes an instance of ResourceProvidersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ResourceProvidersClientImpl(SecurityCenterImpl client) {
+ this.service =
+ RestProxy.create(ResourceProvidersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SecurityCenterResourceProviders to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SecurityCenterResour")
+ public interface ResourceProvidersService {
+ @Headers({"Content-Type: application/json"})
+ @Put("/providers/Microsoft.Security/sensitivitySettings/current")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> updateSensitivitySettings(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") UpdateSensitivitySettingsRequest sensitivitySettings,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.Security/sensitivitySettings/current")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getSensitivitySettings(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateSensitivitySettingsWithResponseAsync(
+ UpdateSensitivitySettingsRequest sensitivitySettings) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (sensitivitySettings == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sensitivitySettings is required and cannot be null."));
+ } else {
+ sensitivitySettings.validate();
+ }
+ final String apiVersion = "2023-02-15-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .updateSensitivitySettings(
+ this.client.getEndpoint(), apiVersion, sensitivitySettings, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateSensitivitySettingsWithResponseAsync(
+ UpdateSensitivitySettingsRequest sensitivitySettings, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (sensitivitySettings == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter sensitivitySettings is required and cannot be null."));
+ } else {
+ sensitivitySettings.validate();
+ }
+ final String apiVersion = "2023-02-15-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .updateSensitivitySettings(this.client.getEndpoint(), apiVersion, sensitivitySettings, accept, context);
+ }
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateSensitivitySettingsAsync(
+ UpdateSensitivitySettingsRequest sensitivitySettings) {
+ return updateSensitivitySettingsWithResponseAsync(sensitivitySettings)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateSensitivitySettingsWithResponse(
+ UpdateSensitivitySettingsRequest sensitivitySettings, Context context) {
+ return updateSensitivitySettingsWithResponseAsync(sensitivitySettings, context).block();
+ }
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GetSensitivitySettingsResponseInner updateSensitivitySettings(
+ UpdateSensitivitySettingsRequest sensitivitySettings) {
+ return updateSensitivitySettingsWithResponse(sensitivitySettings, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getSensitivitySettingsWithResponseAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String apiVersion = "2023-02-15-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.getSensitivitySettings(this.client.getEndpoint(), apiVersion, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getSensitivitySettingsWithResponseAsync(
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String apiVersion = "2023-02-15-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getSensitivitySettings(this.client.getEndpoint(), apiVersion, accept, context);
+ }
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getSensitivitySettingsAsync() {
+ return getSensitivitySettingsWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSensitivitySettingsWithResponse(Context context) {
+ return getSensitivitySettingsWithResponseAsync(context).block();
+ }
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GetSensitivitySettingsResponseInner getSensitivitySettings() {
+ return getSensitivitySettingsWithResponse(Context.NONE).getValue();
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ResourceProvidersImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ResourceProvidersImpl.java
new file mode 100644
index 0000000000000..ea74d0b57fd07
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ResourceProvidersImpl.java
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.security.fluent.ResourceProvidersClient;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsResponse;
+import com.azure.resourcemanager.security.models.ResourceProviders;
+import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
+
+public final class ResourceProvidersImpl implements ResourceProviders {
+ private static final ClientLogger LOGGER = new ClientLogger(ResourceProvidersImpl.class);
+
+ private final ResourceProvidersClient innerClient;
+
+ private final com.azure.resourcemanager.security.SecurityManager serviceManager;
+
+ public ResourceProvidersImpl(
+ ResourceProvidersClient innerClient, com.azure.resourcemanager.security.SecurityManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response updateSensitivitySettingsWithResponse(
+ UpdateSensitivitySettingsRequest sensitivitySettings, Context context) {
+ Response inner =
+ this.serviceClient().updateSensitivitySettingsWithResponse(sensitivitySettings, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new GetSensitivitySettingsResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public GetSensitivitySettingsResponse updateSensitivitySettings(
+ UpdateSensitivitySettingsRequest sensitivitySettings) {
+ GetSensitivitySettingsResponseInner inner = this.serviceClient().updateSensitivitySettings(sensitivitySettings);
+ if (inner != null) {
+ return new GetSensitivitySettingsResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getSensitivitySettingsWithResponse(Context context) {
+ Response inner =
+ this.serviceClient().getSensitivitySettingsWithResponse(context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new GetSensitivitySettingsResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public GetSensitivitySettingsResponse getSensitivitySettings() {
+ GetSensitivitySettingsResponseInner inner = this.serviceClient().getSensitivitySettings();
+ if (inner != null) {
+ return new GetSensitivitySettingsResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private ResourceProvidersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.security.SecurityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityCenterImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityCenterImpl.java
index 2f43f2f9a5532..7b368af77b2ca 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityCenterImpl.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityCenterImpl.java
@@ -63,6 +63,7 @@
import com.azure.resourcemanager.security.fluent.RegulatoryComplianceAssessmentsClient;
import com.azure.resourcemanager.security.fluent.RegulatoryComplianceControlsClient;
import com.azure.resourcemanager.security.fluent.RegulatoryComplianceStandardsClient;
+import com.azure.resourcemanager.security.fluent.ResourceProvidersClient;
import com.azure.resourcemanager.security.fluent.SecureScoreControlDefinitionsClient;
import com.azure.resourcemanager.security.fluent.SecureScoreControlsClient;
import com.azure.resourcemanager.security.fluent.SecureScoresClient;
@@ -74,6 +75,7 @@
import com.azure.resourcemanager.security.fluent.SecurityOperatorsClient;
import com.azure.resourcemanager.security.fluent.SecuritySolutionsClient;
import com.azure.resourcemanager.security.fluent.SecuritySolutionsReferenceDatasClient;
+import com.azure.resourcemanager.security.fluent.SensitivitySettingsClient;
import com.azure.resourcemanager.security.fluent.ServerVulnerabilityAssessmentsClient;
import com.azure.resourcemanager.security.fluent.SettingsClient;
import com.azure.resourcemanager.security.fluent.SoftwareInventoriesClient;
@@ -648,6 +650,30 @@ public ConnectorsClient getConnectors() {
return this.connectors;
}
+ /** The ResourceProvidersClient object to access its operations. */
+ private final ResourceProvidersClient resourceProviders;
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ public ResourceProvidersClient getResourceProviders() {
+ return this.resourceProviders;
+ }
+
+ /** The SensitivitySettingsClient object to access its operations. */
+ private final SensitivitySettingsClient sensitivitySettings;
+
+ /**
+ * Gets the SensitivitySettingsClient object to access its operations.
+ *
+ * @return the SensitivitySettingsClient object.
+ */
+ public SensitivitySettingsClient getSensitivitySettings() {
+ return this.sensitivitySettings;
+ }
+
/** The AlertsClient object to access its operations. */
private final AlertsClient alerts;
@@ -953,6 +979,8 @@ public SecurityOperatorsClient getSecurityOperators() {
this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsClientImpl(this);
this.securitySolutions = new SecuritySolutionsClientImpl(this);
this.connectors = new ConnectorsClientImpl(this);
+ this.resourceProviders = new ResourceProvidersClientImpl(this);
+ this.sensitivitySettings = new SensitivitySettingsClientImpl(this);
this.alerts = new AlertsClientImpl(this);
this.settings = new SettingsClientImpl(this);
this.ingestionSettings = new IngestionSettingsClientImpl(this);
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SensitivitySettingsClientImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SensitivitySettingsClientImpl.java
new file mode 100644
index 0000000000000..c771f61b3a11e
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SensitivitySettingsClientImpl.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.security.fluent.SensitivitySettingsClient;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in SensitivitySettingsClient. */
+public final class SensitivitySettingsClientImpl implements SensitivitySettingsClient {
+ /** The proxy service used to perform REST calls. */
+ private final SensitivitySettingsService service;
+
+ /** The service client containing this operation class. */
+ private final SecurityCenterImpl client;
+
+ /**
+ * Initializes an instance of SensitivitySettingsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ SensitivitySettingsClientImpl(SecurityCenterImpl client) {
+ this.service =
+ RestProxy.create(SensitivitySettingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SecurityCenterSensitivitySettings to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SecurityCenterSensit")
+ public interface SensitivitySettingsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.Security/sensitivitySettings")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 list with a single sensitivity settings resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWithResponseAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String apiVersion = "2023-02-15-preview";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 a list with a single sensitivity settings resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWithResponseAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String apiVersion = "2023-02-15-preview";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.list(this.client.getEndpoint(), apiVersion, accept, context);
+ }
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 list with a single sensitivity settings resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listAsync() {
+ return listWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 a list with a single sensitivity settings resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listWithResponse(Context context) {
+ return listWithResponseAsync(context).block();
+ }
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 list with a single sensitivity settings resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GetSensitivitySettingsListResponseInner list() {
+ return listWithResponse(Context.NONE).getValue();
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SensitivitySettingsImpl.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SensitivitySettingsImpl.java
new file mode 100644
index 0000000000000..209d1528fb419
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SensitivitySettingsImpl.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.security.fluent.SensitivitySettingsClient;
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner;
+import com.azure.resourcemanager.security.models.GetSensitivitySettingsListResponse;
+import com.azure.resourcemanager.security.models.SensitivitySettings;
+
+public final class SensitivitySettingsImpl implements SensitivitySettings {
+ private static final ClientLogger LOGGER = new ClientLogger(SensitivitySettingsImpl.class);
+
+ private final SensitivitySettingsClient innerClient;
+
+ private final com.azure.resourcemanager.security.SecurityManager serviceManager;
+
+ public SensitivitySettingsImpl(
+ SensitivitySettingsClient innerClient, com.azure.resourcemanager.security.SecurityManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response listWithResponse(Context context) {
+ Response inner = this.serviceClient().listWithResponse(context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new GetSensitivitySettingsListResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public GetSensitivitySettingsListResponse list() {
+ GetSensitivitySettingsListResponseInner inner = this.serviceClient().list();
+ if (inner != null) {
+ return new GetSensitivitySettingsListResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private SensitivitySettingsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.security.SecurityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BuiltInInfoType.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BuiltInInfoType.java
new file mode 100644
index 0000000000000..bf091ee530586
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/BuiltInInfoType.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Pre-configured sensitive information type. */
+@Fluent
+public final class BuiltInInfoType {
+ /*
+ * Display name of the info type
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Id of the info type
+ */
+ @JsonProperty(value = "id")
+ private UUID id;
+
+ /*
+ * Category of the built-in info type
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /** Creates an instance of BuiltInInfoType class. */
+ public BuiltInInfoType() {
+ }
+
+ /**
+ * Get the name property: Display name of the info type.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Display name of the info type.
+ *
+ * @param name the name value to set.
+ * @return the BuiltInInfoType object itself.
+ */
+ public BuiltInInfoType withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Id of the info type.
+ *
+ * @return the id value.
+ */
+ public UUID id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Id of the info type.
+ *
+ * @param id the id value to set.
+ * @return the BuiltInInfoType object itself.
+ */
+ public BuiltInInfoType withId(UUID id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the type property: Category of the built-in info type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Category of the built-in info type.
+ *
+ * @param type the type value to set.
+ * @return the BuiltInInfoType object itself.
+ */
+ public BuiltInInfoType withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsListResponse.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsListResponse.java
new file mode 100644
index 0000000000000..31d08ba42210b
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsListResponse.java
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner;
+import java.util.List;
+
+/** An immutable client-side representation of GetSensitivitySettingsListResponse. */
+public interface GetSensitivitySettingsListResponse {
+ /**
+ * Gets the value property: The value property.
+ *
+ * @return the value value.
+ */
+ List value();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsListResponseInner object.
+ *
+ * @return the inner object.
+ */
+ GetSensitivitySettingsListResponseInner innerModel();
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponse.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponse.java
new file mode 100644
index 0000000000000..32e2c0f60f398
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponse.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner;
+
+/** An immutable client-side representation of GetSensitivitySettingsResponse. */
+public interface GetSensitivitySettingsResponse {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the properties property: The sensitivity settings properties.
+ *
+ * @return the properties value.
+ */
+ GetSensitivitySettingsResponseProperties properties();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.security.fluent.models.GetSensitivitySettingsResponseInner object.
+ *
+ * @return the inner object.
+ */
+ GetSensitivitySettingsResponseInner innerModel();
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponseProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponseProperties.java
new file mode 100644
index 0000000000000..3e261692951f2
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponseProperties.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.UUID;
+
+/** The sensitivity settings properties. */
+@Fluent
+public final class GetSensitivitySettingsResponseProperties {
+ /*
+ * List of selected sensitive info types' IDs.
+ */
+ @JsonProperty(value = "sensitiveInfoTypesIds")
+ private List sensitiveInfoTypesIds;
+
+ /*
+ * The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If
+ * set to -1, sensitivity by labels is turned off
+ */
+ @JsonProperty(value = "sensitivityThresholdLabelOrder")
+ private Float sensitivityThresholdLabelOrder;
+
+ /*
+ * The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive.
+ */
+ @JsonProperty(value = "sensitivityThresholdLabelId")
+ private UUID sensitivityThresholdLabelId;
+
+ /*
+ * Microsoft information protection built-in and custom information types, labels, and integration status.
+ */
+ @JsonProperty(value = "mipInformation")
+ private GetSensitivitySettingsResponsePropertiesMipInformation mipInformation;
+
+ /** Creates an instance of GetSensitivitySettingsResponseProperties class. */
+ public GetSensitivitySettingsResponseProperties() {
+ }
+
+ /**
+ * Get the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.
+ *
+ * @return the sensitiveInfoTypesIds value.
+ */
+ public List sensitiveInfoTypesIds() {
+ return this.sensitiveInfoTypesIds;
+ }
+
+ /**
+ * Set the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.
+ *
+ * @param sensitiveInfoTypesIds the sensitiveInfoTypesIds value to set.
+ * @return the GetSensitivitySettingsResponseProperties object itself.
+ */
+ public GetSensitivitySettingsResponseProperties withSensitiveInfoTypesIds(List sensitiveInfoTypesIds) {
+ this.sensitiveInfoTypesIds = sensitiveInfoTypesIds;
+ return this;
+ }
+
+ /**
+ * Get the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label. Any label at or
+ * above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off.
+ *
+ * @return the sensitivityThresholdLabelOrder value.
+ */
+ public Float sensitivityThresholdLabelOrder() {
+ return this.sensitivityThresholdLabelOrder;
+ }
+
+ /**
+ * Set the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label. Any label at or
+ * above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off.
+ *
+ * @param sensitivityThresholdLabelOrder the sensitivityThresholdLabelOrder value to set.
+ * @return the GetSensitivitySettingsResponseProperties object itself.
+ */
+ public GetSensitivitySettingsResponseProperties withSensitivityThresholdLabelOrder(
+ Float sensitivityThresholdLabelOrder) {
+ this.sensitivityThresholdLabelOrder = sensitivityThresholdLabelOrder;
+ return this;
+ }
+
+ /**
+ * Get the sensitivityThresholdLabelId property: The id of the sensitivity threshold label. Any label at or above
+ * this rank will be considered sensitive.
+ *
+ * @return the sensitivityThresholdLabelId value.
+ */
+ public UUID sensitivityThresholdLabelId() {
+ return this.sensitivityThresholdLabelId;
+ }
+
+ /**
+ * Set the sensitivityThresholdLabelId property: The id of the sensitivity threshold label. Any label at or above
+ * this rank will be considered sensitive.
+ *
+ * @param sensitivityThresholdLabelId the sensitivityThresholdLabelId value to set.
+ * @return the GetSensitivitySettingsResponseProperties object itself.
+ */
+ public GetSensitivitySettingsResponseProperties withSensitivityThresholdLabelId(UUID sensitivityThresholdLabelId) {
+ this.sensitivityThresholdLabelId = sensitivityThresholdLabelId;
+ return this;
+ }
+
+ /**
+ * Get the mipInformation property: Microsoft information protection built-in and custom information types, labels,
+ * and integration status.
+ *
+ * @return the mipInformation value.
+ */
+ public GetSensitivitySettingsResponsePropertiesMipInformation mipInformation() {
+ return this.mipInformation;
+ }
+
+ /**
+ * Set the mipInformation property: Microsoft information protection built-in and custom information types, labels,
+ * and integration status.
+ *
+ * @param mipInformation the mipInformation value to set.
+ * @return the GetSensitivitySettingsResponseProperties object itself.
+ */
+ public GetSensitivitySettingsResponseProperties withMipInformation(
+ GetSensitivitySettingsResponsePropertiesMipInformation mipInformation) {
+ this.mipInformation = mipInformation;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (mipInformation() != null) {
+ mipInformation().validate();
+ }
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponsePropertiesMipInformation.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponsePropertiesMipInformation.java
new file mode 100644
index 0000000000000..3f853cadea939
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/GetSensitivitySettingsResponsePropertiesMipInformation.java
@@ -0,0 +1,140 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Microsoft information protection built-in and custom information types, labels, and integration status. */
+@Fluent
+public final class GetSensitivitySettingsResponsePropertiesMipInformation {
+ /*
+ * Microsoft information protection integration status
+ */
+ @JsonProperty(value = "mipIntegrationStatus")
+ private MipIntegrationStatus mipIntegrationStatus;
+
+ /*
+ * List of Microsoft information protection sensitivity labels
+ */
+ @JsonProperty(value = "labels")
+ private List labels;
+
+ /*
+ * List of custom user-defined information types
+ */
+ @JsonProperty(value = "customInfoTypes")
+ private List customInfoTypes;
+
+ /*
+ * List of pre-configured sensitive information types
+ */
+ @JsonProperty(value = "builtInInfoTypes")
+ private List builtInInfoTypes;
+
+ /** Creates an instance of GetSensitivitySettingsResponsePropertiesMipInformation class. */
+ public GetSensitivitySettingsResponsePropertiesMipInformation() {
+ }
+
+ /**
+ * Get the mipIntegrationStatus property: Microsoft information protection integration status.
+ *
+ * @return the mipIntegrationStatus value.
+ */
+ public MipIntegrationStatus mipIntegrationStatus() {
+ return this.mipIntegrationStatus;
+ }
+
+ /**
+ * Set the mipIntegrationStatus property: Microsoft information protection integration status.
+ *
+ * @param mipIntegrationStatus the mipIntegrationStatus value to set.
+ * @return the GetSensitivitySettingsResponsePropertiesMipInformation object itself.
+ */
+ public GetSensitivitySettingsResponsePropertiesMipInformation withMipIntegrationStatus(
+ MipIntegrationStatus mipIntegrationStatus) {
+ this.mipIntegrationStatus = mipIntegrationStatus;
+ return this;
+ }
+
+ /**
+ * Get the labels property: List of Microsoft information protection sensitivity labels.
+ *
+ * @return the labels value.
+ */
+ public List labels() {
+ return this.labels;
+ }
+
+ /**
+ * Set the labels property: List of Microsoft information protection sensitivity labels.
+ *
+ * @param labels the labels value to set.
+ * @return the GetSensitivitySettingsResponsePropertiesMipInformation object itself.
+ */
+ public GetSensitivitySettingsResponsePropertiesMipInformation withLabels(List labels) {
+ this.labels = labels;
+ return this;
+ }
+
+ /**
+ * Get the customInfoTypes property: List of custom user-defined information types.
+ *
+ * @return the customInfoTypes value.
+ */
+ public List customInfoTypes() {
+ return this.customInfoTypes;
+ }
+
+ /**
+ * Set the customInfoTypes property: List of custom user-defined information types.
+ *
+ * @param customInfoTypes the customInfoTypes value to set.
+ * @return the GetSensitivitySettingsResponsePropertiesMipInformation object itself.
+ */
+ public GetSensitivitySettingsResponsePropertiesMipInformation withCustomInfoTypes(List customInfoTypes) {
+ this.customInfoTypes = customInfoTypes;
+ return this;
+ }
+
+ /**
+ * Get the builtInInfoTypes property: List of pre-configured sensitive information types.
+ *
+ * @return the builtInInfoTypes value.
+ */
+ public List builtInInfoTypes() {
+ return this.builtInInfoTypes;
+ }
+
+ /**
+ * Set the builtInInfoTypes property: List of pre-configured sensitive information types.
+ *
+ * @param builtInInfoTypes the builtInInfoTypes value to set.
+ * @return the GetSensitivitySettingsResponsePropertiesMipInformation object itself.
+ */
+ public GetSensitivitySettingsResponsePropertiesMipInformation withBuiltInInfoTypes(
+ List builtInInfoTypes) {
+ this.builtInInfoTypes = builtInInfoTypes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (labels() != null) {
+ labels().forEach(e -> e.validate());
+ }
+ if (customInfoTypes() != null) {
+ customInfoTypes().forEach(e -> e.validate());
+ }
+ if (builtInInfoTypes() != null) {
+ builtInInfoTypes().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InfoType.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InfoType.java
new file mode 100644
index 0000000000000..1d7793150bb36
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/InfoType.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Custom user-defined information type. */
+@Fluent
+public final class InfoType {
+ /*
+ * Display name of the info type
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Id of the info type
+ */
+ @JsonProperty(value = "id")
+ private UUID id;
+
+ /*
+ * Description of the info type
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /** Creates an instance of InfoType class. */
+ public InfoType() {
+ }
+
+ /**
+ * Get the name property: Display name of the info type.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Display name of the info type.
+ *
+ * @param name the name value to set.
+ * @return the InfoType object itself.
+ */
+ public InfoType withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Id of the info type.
+ *
+ * @return the id value.
+ */
+ public UUID id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Id of the info type.
+ *
+ * @param id the id value to set.
+ * @return the InfoType object itself.
+ */
+ public InfoType withId(UUID id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the description property: Description of the info type.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of the info type.
+ *
+ * @param description the description value to set.
+ * @return the InfoType object itself.
+ */
+ public InfoType withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Label.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Label.java
new file mode 100644
index 0000000000000..6096f816fdb31
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/Label.java
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Microsoft information protection sensitivity label. */
+@Fluent
+public final class Label {
+ /*
+ * The display name of the label
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The ID of the label
+ */
+ @JsonProperty(value = "id")
+ private UUID id;
+
+ /*
+ * Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is.
+ */
+ @JsonProperty(value = "order")
+ private Float order;
+
+ /** Creates an instance of Label class. */
+ public Label() {
+ }
+
+ /**
+ * Get the name property: The display name of the label.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The display name of the label.
+ *
+ * @param name the name value to set.
+ * @return the Label object itself.
+ */
+ public Label withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: The ID of the label.
+ *
+ * @return the id value.
+ */
+ public UUID id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The ID of the label.
+ *
+ * @param id the id value to set.
+ * @return the Label object itself.
+ */
+ public Label withId(UUID id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the order property: Labels are ordered by sensitivity level. The higher the order of the label, the more
+ * sensitive it is.
+ *
+ * @return the order value.
+ */
+ public Float order() {
+ return this.order;
+ }
+
+ /**
+ * Set the order property: Labels are ordered by sensitivity level. The higher the order of the label, the more
+ * sensitive it is.
+ *
+ * @param order the order value to set.
+ * @return the Label object itself.
+ */
+ public Label withOrder(Float order) {
+ this.order = order;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MipIntegrationStatus.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MipIntegrationStatus.java
new file mode 100644
index 0000000000000..16cee50e5f5d4
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/MipIntegrationStatus.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Microsoft information protection integration status. */
+public final class MipIntegrationStatus extends ExpandableStringEnum {
+ /** Static value Ok for MipIntegrationStatus. */
+ public static final MipIntegrationStatus OK = fromString("Ok");
+
+ /** Static value noConsent for MipIntegrationStatus. */
+ public static final MipIntegrationStatus NO_CONSENT = fromString("noConsent");
+
+ /** Static value noAutoLabelingRules for MipIntegrationStatus. */
+ public static final MipIntegrationStatus NO_AUTO_LABELING_RULES = fromString("noAutoLabelingRules");
+
+ /** Static value noMipLabels for MipIntegrationStatus. */
+ public static final MipIntegrationStatus NO_MIP_LABELS = fromString("noMipLabels");
+
+ /**
+ * Creates a new instance of MipIntegrationStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public MipIntegrationStatus() {
+ }
+
+ /**
+ * Creates or finds a MipIntegrationStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding MipIntegrationStatus.
+ */
+ @JsonCreator
+ public static MipIntegrationStatus fromString(String name) {
+ return fromString(name, MipIntegrationStatus.class);
+ }
+
+ /**
+ * Gets known MipIntegrationStatus values.
+ *
+ * @return known MipIntegrationStatus values.
+ */
+ public static Collection values() {
+ return values(MipIntegrationStatus.class);
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceProviders.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceProviders.java
new file mode 100644
index 0000000000000..92981efe55328
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/ResourceProviders.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of ResourceProviders. */
+public interface ResourceProviders {
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
+ */
+ Response updateSensitivitySettingsWithResponse(
+ UpdateSensitivitySettingsRequest sensitivitySettings, Context context);
+
+ /**
+ * Updates data sensitivity settings for sensitive data discovery.
+ *
+ * @param sensitivitySettings The data sensitivity settings to update.
+ * @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 data sensitivity settings for sensitive data discovery.
+ */
+ GetSensitivitySettingsResponse updateSensitivitySettings(UpdateSensitivitySettingsRequest sensitivitySettings);
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @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 data sensitivity settings for sensitive data discovery along with {@link Response}.
+ */
+ Response getSensitivitySettingsWithResponse(Context context);
+
+ /**
+ * Gets data sensitivity settings for sensitive data discovery.
+ *
+ * @throws com.azure.core.management.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 data sensitivity settings for sensitive data discovery.
+ */
+ GetSensitivitySettingsResponse getSensitivitySettings();
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivitySettings.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivitySettings.java
new file mode 100644
index 0000000000000..a9990e6d66366
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/SensitivitySettings.java
@@ -0,0 +1,31 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of SensitivitySettings. */
+public interface SensitivitySettings {
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @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 list with a single sensitivity settings resource along with {@link Response}.
+ */
+ Response listWithResponse(Context context);
+
+ /**
+ * Gets a list with a single sensitivity settings resource.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list with a single sensitivity settings resource.
+ */
+ GetSensitivitySettingsListResponse list();
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateSensitivitySettingsRequest.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateSensitivitySettingsRequest.java
new file mode 100644
index 0000000000000..e001d9d631eb0
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/UpdateSensitivitySettingsRequest.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.UUID;
+
+/** Request to update data sensitivity settings for sensitive data discovery. */
+@Fluent
+public final class UpdateSensitivitySettingsRequest {
+ /*
+ * List of selected sensitive info types' IDs.
+ */
+ @JsonProperty(value = "sensitiveInfoTypesIds", required = true)
+ private List sensitiveInfoTypesIds;
+
+ /*
+ * The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If
+ * set to -1, sensitivity by labels is turned off
+ */
+ @JsonProperty(value = "sensitivityThresholdLabelOrder")
+ private Float sensitivityThresholdLabelOrder;
+
+ /*
+ * The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive.
+ */
+ @JsonProperty(value = "sensitivityThresholdLabelId")
+ private UUID sensitivityThresholdLabelId;
+
+ /** Creates an instance of UpdateSensitivitySettingsRequest class. */
+ public UpdateSensitivitySettingsRequest() {
+ }
+
+ /**
+ * Get the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.
+ *
+ * @return the sensitiveInfoTypesIds value.
+ */
+ public List sensitiveInfoTypesIds() {
+ return this.sensitiveInfoTypesIds;
+ }
+
+ /**
+ * Set the sensitiveInfoTypesIds property: List of selected sensitive info types' IDs.
+ *
+ * @param sensitiveInfoTypesIds the sensitiveInfoTypesIds value to set.
+ * @return the UpdateSensitivitySettingsRequest object itself.
+ */
+ public UpdateSensitivitySettingsRequest withSensitiveInfoTypesIds(List sensitiveInfoTypesIds) {
+ this.sensitiveInfoTypesIds = sensitiveInfoTypesIds;
+ return this;
+ }
+
+ /**
+ * Get the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label. Any label at or
+ * above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off.
+ *
+ * @return the sensitivityThresholdLabelOrder value.
+ */
+ public Float sensitivityThresholdLabelOrder() {
+ return this.sensitivityThresholdLabelOrder;
+ }
+
+ /**
+ * Set the sensitivityThresholdLabelOrder property: The order of the sensitivity threshold label. Any label at or
+ * above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off.
+ *
+ * @param sensitivityThresholdLabelOrder the sensitivityThresholdLabelOrder value to set.
+ * @return the UpdateSensitivitySettingsRequest object itself.
+ */
+ public UpdateSensitivitySettingsRequest withSensitivityThresholdLabelOrder(Float sensitivityThresholdLabelOrder) {
+ this.sensitivityThresholdLabelOrder = sensitivityThresholdLabelOrder;
+ return this;
+ }
+
+ /**
+ * Get the sensitivityThresholdLabelId property: The id of the sensitivity threshold label. Any label at or above
+ * this rank will be considered sensitive.
+ *
+ * @return the sensitivityThresholdLabelId value.
+ */
+ public UUID sensitivityThresholdLabelId() {
+ return this.sensitivityThresholdLabelId;
+ }
+
+ /**
+ * Set the sensitivityThresholdLabelId property: The id of the sensitivity threshold label. Any label at or above
+ * this rank will be considered sensitive.
+ *
+ * @param sensitivityThresholdLabelId the sensitivityThresholdLabelId value to set.
+ * @return the UpdateSensitivitySettingsRequest object itself.
+ */
+ public UpdateSensitivitySettingsRequest withSensitivityThresholdLabelId(UUID sensitivityThresholdLabelId) {
+ this.sensitivityThresholdLabelId = sensitivityThresholdLabelId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sensitiveInfoTypesIds() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property sensitiveInfoTypesIds in model UpdateSensitivitySettingsRequest"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(UpdateSensitivitySettingsRequest.class);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/ResourceProviderGetSensitivitySettingsSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/ResourceProviderGetSensitivitySettingsSamples.java
new file mode 100644
index 0000000000000..7fe1afbe71ca9
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/ResourceProviderGetSensitivitySettingsSamples.java
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.generated;
+
+/** Samples for ResourceProvider GetSensitivitySettings. */
+public final class ResourceProviderGetSensitivitySettingsSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json
+ */
+ /**
+ * Sample code: Get sensitivity settings.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSensitivitySettings(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.resourceProviders().getSensitivitySettingsWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/ResourceProviderUpdateSensitivitySettingsSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/ResourceProviderUpdateSensitivitySettingsSamples.java
new file mode 100644
index 0000000000000..1e65112e5d9bc
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/ResourceProviderUpdateSensitivitySettingsSamples.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.generated;
+
+import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for ResourceProvider UpdateSensitivitySettings. */
+public final class ResourceProviderUpdateSensitivitySettingsSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json
+ */
+ /**
+ * Sample code: Update sensitivity settings.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void updateSensitivitySettings(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .resourceProviders()
+ .updateSensitivitySettingsWithResponse(
+ new UpdateSensitivitySettingsRequest()
+ .withSensitiveInfoTypesIds(
+ Arrays
+ .asList(
+ UUID.fromString("f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb"),
+ UUID.fromString("b452f22b-f87d-4f48-8490-ecf0873325b5"),
+ UUID.fromString("d59ee8b6-2618-404b-a5e7-aa377cd67543")))
+ .withSensitivityThresholdLabelOrder(2.0F)
+ .withSensitivityThresholdLabelId(UUID.fromString("f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb")),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SensitivitySettingsListSamples.java b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SensitivitySettingsListSamples.java
new file mode 100644
index 0000000000000..84b4a591df9ac
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/generated/SensitivitySettingsListSamples.java
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.security.generated;
+
+/** Samples for SensitivitySettings List. */
+public final class SensitivitySettingsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json
+ */
+ /**
+ * Sample code: Get sensitivity settings list.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getSensitivitySettingsList(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager.sensitivitySettings().listWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadConnectivityStateAutoGeneratedTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadConnectivityStateAutoGeneratedTests.java
deleted file mode 100644
index 6017d8ddf8b65..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadConnectivityStateAutoGeneratedTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AadConnectivityState;
-import com.azure.resourcemanager.security.models.AadConnectivityStateAutoGenerated;
-import org.junit.jupiter.api.Assertions;
-
-public final class AadConnectivityStateAutoGeneratedTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AadConnectivityStateAutoGenerated model =
- BinaryData
- .fromString("{\"connectivityState\":\"NotLicensed\"}")
- .toObject(AadConnectivityStateAutoGenerated.class);
- Assertions.assertEquals(AadConnectivityState.NOT_LICENSED, model.connectivityState());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AadConnectivityStateAutoGenerated model =
- new AadConnectivityStateAutoGenerated().withConnectivityState(AadConnectivityState.NOT_LICENSED);
- model = BinaryData.fromObject(model).toObject(AadConnectivityStateAutoGenerated.class);
- Assertions.assertEquals(AadConnectivityState.NOT_LICENSED, model.connectivityState());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadExternalSecuritySolutionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadExternalSecuritySolutionTests.java
deleted file mode 100644
index c50ccc6f7816f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadExternalSecuritySolutionTests.java
+++ /dev/null
@@ -1,44 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AadConnectivityState;
-import com.azure.resourcemanager.security.models.AadExternalSecuritySolution;
-import com.azure.resourcemanager.security.models.AadSolutionProperties;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class AadExternalSecuritySolutionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AadExternalSecuritySolution model =
- BinaryData
- .fromString(
- "{\"kind\":\"AAD\",\"properties\":{\"connectivityState\":\"NotLicensed\",\"deviceVendor\":\"pezkis\",\"deviceType\":\"jm\",\"workspace\":{\"id\":\"syparybjufp\"},\"\":{\"uiyqvldaswvppi\":\"dataczjnc\",\"rr\":\"dataqqzlgcndhz\",\"uww\":\"datacfsrhkhgsn\"}},\"location\":\"phefsbzxlbz\",\"id\":\"omeikjcl\",\"name\":\"zacn\",\"type\":\"wpfsuqtaaz\"}")
- .toObject(AadExternalSecuritySolution.class);
- Assertions.assertEquals("pezkis", model.properties().deviceVendor());
- Assertions.assertEquals("jm", model.properties().deviceType());
- Assertions.assertEquals("syparybjufp", model.properties().workspace().id());
- Assertions.assertEquals(AadConnectivityState.NOT_LICENSED, model.properties().connectivityState());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AadExternalSecuritySolution model =
- new AadExternalSecuritySolution()
- .withProperties(
- new AadSolutionProperties()
- .withDeviceVendor("pezkis")
- .withDeviceType("jm")
- .withWorkspace(new ConnectedWorkspace().withId("syparybjufp"))
- .withConnectivityState(AadConnectivityState.NOT_LICENSED));
- model = BinaryData.fromObject(model).toObject(AadExternalSecuritySolution.class);
- Assertions.assertEquals("pezkis", model.properties().deviceVendor());
- Assertions.assertEquals("jm", model.properties().deviceType());
- Assertions.assertEquals("syparybjufp", model.properties().workspace().id());
- Assertions.assertEquals(AadConnectivityState.NOT_LICENSED, model.properties().connectivityState());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadSolutionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadSolutionPropertiesTests.java
deleted file mode 100644
index 37e583a94f5b1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AadSolutionPropertiesTests.java
+++ /dev/null
@@ -1,41 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AadConnectivityState;
-import com.azure.resourcemanager.security.models.AadSolutionProperties;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class AadSolutionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AadSolutionProperties model =
- BinaryData
- .fromString(
- "{\"connectivityState\":\"Discovered\",\"deviceVendor\":\"yxoyfp\",\"deviceType\":\"qi\",\"workspace\":{\"id\":\"xlhdj\"},\"\":{\"jriyb\":\"datacadwvpsozjii\",\"epnxwd\":\"datarz\",\"xaurs\":\"datawnjkgvfn\",\"pnqn\":\"dataftibtyibuyvpirfq\"}}")
- .toObject(AadSolutionProperties.class);
- Assertions.assertEquals("yxoyfp", model.deviceVendor());
- Assertions.assertEquals("qi", model.deviceType());
- Assertions.assertEquals("xlhdj", model.workspace().id());
- Assertions.assertEquals(AadConnectivityState.DISCOVERED, model.connectivityState());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AadSolutionProperties model =
- new AadSolutionProperties()
- .withDeviceVendor("yxoyfp")
- .withDeviceType("qi")
- .withWorkspace(new ConnectedWorkspace().withId("xlhdj"))
- .withConnectivityState(AadConnectivityState.DISCOVERED);
- model = BinaryData.fromObject(model).toObject(AadSolutionProperties.class);
- Assertions.assertEquals("yxoyfp", model.deviceVendor());
- Assertions.assertEquals("qi", model.deviceType());
- Assertions.assertEquals("xlhdj", model.workspace().id());
- Assertions.assertEquals(AadConnectivityState.DISCOVERED, model.connectivityState());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ActiveConnectionsNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ActiveConnectionsNotInAllowedRangeTests.java
deleted file mode 100644
index 07c05e9dbb036..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ActiveConnectionsNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ActiveConnectionsNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class ActiveConnectionsNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ActiveConnectionsNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"ActiveConnectionsNotInAllowedRange\",\"timeWindowSize\":\"PT166H22M2S\",\"minThreshold\":1327259513,\"maxThreshold\":713961317,\"displayName\":\"n\",\"description\":\"mehllizhceu\",\"isEnabled\":true}")
- .toObject(ActiveConnectionsNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1327259513, model.minThreshold());
- Assertions.assertEquals(713961317, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT166H22M2S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ActiveConnectionsNotInAllowedRange model =
- new ActiveConnectionsNotInAllowedRange()
- .withIsEnabled(true)
- .withMinThreshold(1327259513)
- .withMaxThreshold(713961317)
- .withTimeWindowSize(Duration.parse("PT166H22M2S"));
- model = BinaryData.fromObject(model).toObject(ActiveConnectionsNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1327259513, model.minThreshold());
- Assertions.assertEquals(713961317, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT166H22M2S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupDataTests.java
deleted file mode 100644
index 05cb8413a6c20..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupDataTests.java
+++ /dev/null
@@ -1,113 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveApplicationControlGroupData;
-import com.azure.resourcemanager.security.models.ConfigurationStatus;
-import com.azure.resourcemanager.security.models.EnforcementMode;
-import com.azure.resourcemanager.security.models.EnforcementSupport;
-import com.azure.resourcemanager.security.models.FileType;
-import com.azure.resourcemanager.security.models.PathRecommendation;
-import com.azure.resourcemanager.security.models.ProtectionMode;
-import com.azure.resourcemanager.security.models.PublisherInfo;
-import com.azure.resourcemanager.security.models.RecommendationAction;
-import com.azure.resourcemanager.security.models.RecommendationType;
-import com.azure.resourcemanager.security.models.VmRecommendation;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveApplicationControlGroupDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveApplicationControlGroupData model =
- BinaryData
- .fromString(
- "{\"enforcementMode\":\"Audit\",\"protectionMode\":{\"exe\":\"None\",\"msi\":\"None\",\"script\":\"None\",\"executable\":\"Audit\"},\"configurationStatus\":\"InProgress\",\"recommendationStatus\":\"NotRecommended\",\"issues\":[{\"issue\":\"RulesViolatedManually\",\"numberOfVms\":15.610468}],\"sourceSystem\":\"Azure_AuditD\",\"vmRecommendations\":[{\"configurationStatus\":\"NoStatus\",\"recommendationAction\":\"Recommended\",\"resourceId\":\"hlf\",\"enforcementSupport\":\"Supported\"}],\"pathRecommendations\":[{\"path\":\"wahfbousnfepgfew\",\"action\":\"Add\",\"type\":\"IoT_SharedCredentials\",\"publisherInfo\":{\"publisherName\":\"ncxykxhdjhlimm\",\"productName\":\"x\",\"binaryName\":\"bcporxvxcjzhqizx\",\"version\":\"xtgqscjavftjuh\"},\"common\":true,\"userSids\":[\"mtggu\"],\"usernames\":[],\"fileType\":\"Script\",\"configurationStatus\":\"Failed\"}]}")
- .toObject(AdaptiveApplicationControlGroupData.class);
- Assertions.assertEquals(EnforcementMode.AUDIT, model.enforcementMode());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().exe());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().msi());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().script());
- Assertions.assertEquals(EnforcementMode.AUDIT, model.protectionMode().executable());
- Assertions.assertEquals(ConfigurationStatus.NO_STATUS, model.vmRecommendations().get(0).configurationStatus());
- Assertions
- .assertEquals(RecommendationAction.RECOMMENDED, model.vmRecommendations().get(0).recommendationAction());
- Assertions.assertEquals("hlf", model.vmRecommendations().get(0).resourceId());
- Assertions.assertEquals(EnforcementSupport.SUPPORTED, model.vmRecommendations().get(0).enforcementSupport());
- Assertions.assertEquals("wahfbousnfepgfew", model.pathRecommendations().get(0).path());
- Assertions.assertEquals(RecommendationAction.ADD, model.pathRecommendations().get(0).action());
- Assertions.assertEquals(RecommendationType.IO_T_SHARED_CREDENTIALS, model.pathRecommendations().get(0).type());
- Assertions.assertEquals("ncxykxhdjhlimm", model.pathRecommendations().get(0).publisherInfo().publisherName());
- Assertions.assertEquals("x", model.pathRecommendations().get(0).publisherInfo().productName());
- Assertions.assertEquals("bcporxvxcjzhqizx", model.pathRecommendations().get(0).publisherInfo().binaryName());
- Assertions.assertEquals("xtgqscjavftjuh", model.pathRecommendations().get(0).publisherInfo().version());
- Assertions.assertEquals(true, model.pathRecommendations().get(0).common());
- Assertions.assertEquals("mtggu", model.pathRecommendations().get(0).userSids().get(0));
- Assertions.assertEquals(FileType.SCRIPT, model.pathRecommendations().get(0).fileType());
- Assertions.assertEquals(ConfigurationStatus.FAILED, model.pathRecommendations().get(0).configurationStatus());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveApplicationControlGroupData model =
- new AdaptiveApplicationControlGroupData()
- .withEnforcementMode(EnforcementMode.AUDIT)
- .withProtectionMode(
- new ProtectionMode()
- .withExe(EnforcementMode.NONE)
- .withMsi(EnforcementMode.NONE)
- .withScript(EnforcementMode.NONE)
- .withExecutable(EnforcementMode.AUDIT))
- .withVmRecommendations(
- Arrays
- .asList(
- new VmRecommendation()
- .withConfigurationStatus(ConfigurationStatus.NO_STATUS)
- .withRecommendationAction(RecommendationAction.RECOMMENDED)
- .withResourceId("hlf")
- .withEnforcementSupport(EnforcementSupport.SUPPORTED)))
- .withPathRecommendations(
- Arrays
- .asList(
- new PathRecommendation()
- .withPath("wahfbousnfepgfew")
- .withAction(RecommendationAction.ADD)
- .withType(RecommendationType.IO_T_SHARED_CREDENTIALS)
- .withPublisherInfo(
- new PublisherInfo()
- .withPublisherName("ncxykxhdjhlimm")
- .withProductName("x")
- .withBinaryName("bcporxvxcjzhqizx")
- .withVersion("xtgqscjavftjuh"))
- .withCommon(true)
- .withUserSids(Arrays.asList("mtggu"))
- .withUsernames(Arrays.asList())
- .withFileType(FileType.SCRIPT)
- .withConfigurationStatus(ConfigurationStatus.FAILED)));
- model = BinaryData.fromObject(model).toObject(AdaptiveApplicationControlGroupData.class);
- Assertions.assertEquals(EnforcementMode.AUDIT, model.enforcementMode());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().exe());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().msi());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().script());
- Assertions.assertEquals(EnforcementMode.AUDIT, model.protectionMode().executable());
- Assertions.assertEquals(ConfigurationStatus.NO_STATUS, model.vmRecommendations().get(0).configurationStatus());
- Assertions
- .assertEquals(RecommendationAction.RECOMMENDED, model.vmRecommendations().get(0).recommendationAction());
- Assertions.assertEquals("hlf", model.vmRecommendations().get(0).resourceId());
- Assertions.assertEquals(EnforcementSupport.SUPPORTED, model.vmRecommendations().get(0).enforcementSupport());
- Assertions.assertEquals("wahfbousnfepgfew", model.pathRecommendations().get(0).path());
- Assertions.assertEquals(RecommendationAction.ADD, model.pathRecommendations().get(0).action());
- Assertions.assertEquals(RecommendationType.IO_T_SHARED_CREDENTIALS, model.pathRecommendations().get(0).type());
- Assertions.assertEquals("ncxykxhdjhlimm", model.pathRecommendations().get(0).publisherInfo().publisherName());
- Assertions.assertEquals("x", model.pathRecommendations().get(0).publisherInfo().productName());
- Assertions.assertEquals("bcporxvxcjzhqizx", model.pathRecommendations().get(0).publisherInfo().binaryName());
- Assertions.assertEquals("xtgqscjavftjuh", model.pathRecommendations().get(0).publisherInfo().version());
- Assertions.assertEquals(true, model.pathRecommendations().get(0).common());
- Assertions.assertEquals("mtggu", model.pathRecommendations().get(0).userSids().get(0));
- Assertions.assertEquals(FileType.SCRIPT, model.pathRecommendations().get(0).fileType());
- Assertions.assertEquals(ConfigurationStatus.FAILED, model.pathRecommendations().get(0).configurationStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupInnerTests.java
deleted file mode 100644
index 77f3305d4bde1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupInnerTests.java
+++ /dev/null
@@ -1,113 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveApplicationControlGroupInner;
-import com.azure.resourcemanager.security.models.ConfigurationStatus;
-import com.azure.resourcemanager.security.models.EnforcementMode;
-import com.azure.resourcemanager.security.models.EnforcementSupport;
-import com.azure.resourcemanager.security.models.FileType;
-import com.azure.resourcemanager.security.models.PathRecommendation;
-import com.azure.resourcemanager.security.models.ProtectionMode;
-import com.azure.resourcemanager.security.models.RecommendationAction;
-import com.azure.resourcemanager.security.models.RecommendationType;
-import com.azure.resourcemanager.security.models.VmRecommendation;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveApplicationControlGroupInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveApplicationControlGroupInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"enforcementMode\":\"Enforce\",\"protectionMode\":{\"exe\":\"Audit\",\"msi\":\"Enforce\",\"script\":\"None\",\"executable\":\"Audit\"},\"configurationStatus\":\"Configured\",\"recommendationStatus\":\"NoStatus\",\"issues\":[{\"issue\":\"ExecutableViolationsAudited\",\"numberOfVms\":81.69838},{\"issue\":\"ExecutableViolationsAudited\",\"numberOfVms\":25.884687},{\"issue\":\"ViolationsBlocked\",\"numberOfVms\":0.6237805}],\"sourceSystem\":\"None\",\"vmRecommendations\":[{\"configurationStatus\":\"Failed\",\"recommendationAction\":\"Remove\",\"resourceId\":\"hlabrq\",\"enforcementSupport\":\"Unknown\"},{\"configurationStatus\":\"NoStatus\",\"recommendationAction\":\"Recommended\",\"resourceId\":\"trgaehvv\",\"enforcementSupport\":\"NotSupported\"},{\"configurationStatus\":\"NoStatus\",\"recommendationAction\":\"Remove\",\"resourceId\":\"oqbeitpkxzt\",\"enforcementSupport\":\"Supported\"},{\"configurationStatus\":\"InProgress\",\"recommendationAction\":\"Remove\",\"resourceId\":\"idgfc\",\"enforcementSupport\":\"NotSupported\"}],\"pathRecommendations\":[{\"path\":\"aqxzhemjyho\",\"action\":\"Remove\",\"type\":\"IoT_EdgeLoggingOptions\",\"common\":true,\"userSids\":[],\"usernames\":[],\"fileType\":\"Script\",\"configurationStatus\":\"Configured\"}]},\"location\":\"kb\",\"id\":\"wpfaj\",\"name\":\"jwltlwtjjgu\",\"type\":\"talhsnvkcdmxzr\"}")
- .toObject(AdaptiveApplicationControlGroupInner.class);
- Assertions.assertEquals(EnforcementMode.ENFORCE, model.enforcementMode());
- Assertions.assertEquals(EnforcementMode.AUDIT, model.protectionMode().exe());
- Assertions.assertEquals(EnforcementMode.ENFORCE, model.protectionMode().msi());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().script());
- Assertions.assertEquals(EnforcementMode.AUDIT, model.protectionMode().executable());
- Assertions.assertEquals(ConfigurationStatus.FAILED, model.vmRecommendations().get(0).configurationStatus());
- Assertions.assertEquals(RecommendationAction.REMOVE, model.vmRecommendations().get(0).recommendationAction());
- Assertions.assertEquals("hlabrq", model.vmRecommendations().get(0).resourceId());
- Assertions.assertEquals(EnforcementSupport.UNKNOWN, model.vmRecommendations().get(0).enforcementSupport());
- Assertions.assertEquals("aqxzhemjyho", model.pathRecommendations().get(0).path());
- Assertions.assertEquals(RecommendationAction.REMOVE, model.pathRecommendations().get(0).action());
- Assertions
- .assertEquals(RecommendationType.IO_T_EDGE_LOGGING_OPTIONS, model.pathRecommendations().get(0).type());
- Assertions.assertEquals(true, model.pathRecommendations().get(0).common());
- Assertions.assertEquals(FileType.SCRIPT, model.pathRecommendations().get(0).fileType());
- Assertions
- .assertEquals(ConfigurationStatus.CONFIGURED, model.pathRecommendations().get(0).configurationStatus());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveApplicationControlGroupInner model =
- new AdaptiveApplicationControlGroupInner()
- .withEnforcementMode(EnforcementMode.ENFORCE)
- .withProtectionMode(
- new ProtectionMode()
- .withExe(EnforcementMode.AUDIT)
- .withMsi(EnforcementMode.ENFORCE)
- .withScript(EnforcementMode.NONE)
- .withExecutable(EnforcementMode.AUDIT))
- .withVmRecommendations(
- Arrays
- .asList(
- new VmRecommendation()
- .withConfigurationStatus(ConfigurationStatus.FAILED)
- .withRecommendationAction(RecommendationAction.REMOVE)
- .withResourceId("hlabrq")
- .withEnforcementSupport(EnforcementSupport.UNKNOWN),
- new VmRecommendation()
- .withConfigurationStatus(ConfigurationStatus.NO_STATUS)
- .withRecommendationAction(RecommendationAction.RECOMMENDED)
- .withResourceId("trgaehvv")
- .withEnforcementSupport(EnforcementSupport.NOT_SUPPORTED),
- new VmRecommendation()
- .withConfigurationStatus(ConfigurationStatus.NO_STATUS)
- .withRecommendationAction(RecommendationAction.REMOVE)
- .withResourceId("oqbeitpkxzt")
- .withEnforcementSupport(EnforcementSupport.SUPPORTED),
- new VmRecommendation()
- .withConfigurationStatus(ConfigurationStatus.IN_PROGRESS)
- .withRecommendationAction(RecommendationAction.REMOVE)
- .withResourceId("idgfc")
- .withEnforcementSupport(EnforcementSupport.NOT_SUPPORTED)))
- .withPathRecommendations(
- Arrays
- .asList(
- new PathRecommendation()
- .withPath("aqxzhemjyho")
- .withAction(RecommendationAction.REMOVE)
- .withType(RecommendationType.IO_T_EDGE_LOGGING_OPTIONS)
- .withCommon(true)
- .withUserSids(Arrays.asList())
- .withUsernames(Arrays.asList())
- .withFileType(FileType.SCRIPT)
- .withConfigurationStatus(ConfigurationStatus.CONFIGURED)));
- model = BinaryData.fromObject(model).toObject(AdaptiveApplicationControlGroupInner.class);
- Assertions.assertEquals(EnforcementMode.ENFORCE, model.enforcementMode());
- Assertions.assertEquals(EnforcementMode.AUDIT, model.protectionMode().exe());
- Assertions.assertEquals(EnforcementMode.ENFORCE, model.protectionMode().msi());
- Assertions.assertEquals(EnforcementMode.NONE, model.protectionMode().script());
- Assertions.assertEquals(EnforcementMode.AUDIT, model.protectionMode().executable());
- Assertions.assertEquals(ConfigurationStatus.FAILED, model.vmRecommendations().get(0).configurationStatus());
- Assertions.assertEquals(RecommendationAction.REMOVE, model.vmRecommendations().get(0).recommendationAction());
- Assertions.assertEquals("hlabrq", model.vmRecommendations().get(0).resourceId());
- Assertions.assertEquals(EnforcementSupport.UNKNOWN, model.vmRecommendations().get(0).enforcementSupport());
- Assertions.assertEquals("aqxzhemjyho", model.pathRecommendations().get(0).path());
- Assertions.assertEquals(RecommendationAction.REMOVE, model.pathRecommendations().get(0).action());
- Assertions
- .assertEquals(RecommendationType.IO_T_EDGE_LOGGING_OPTIONS, model.pathRecommendations().get(0).type());
- Assertions.assertEquals(true, model.pathRecommendations().get(0).common());
- Assertions.assertEquals(FileType.SCRIPT, model.pathRecommendations().get(0).fileType());
- Assertions
- .assertEquals(ConfigurationStatus.CONFIGURED, model.pathRecommendations().get(0).configurationStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupsInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupsInnerTests.java
deleted file mode 100644
index 3dc11f75363d2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlGroupsInnerTests.java
+++ /dev/null
@@ -1,51 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveApplicationControlGroupInner;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveApplicationControlGroupsInner;
-import com.azure.resourcemanager.security.models.EnforcementMode;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveApplicationControlGroupsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveApplicationControlGroupsInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"enforcementMode\":\"Audit\",\"configurationStatus\":\"InProgress\",\"recommendationStatus\":\"Recommended\",\"issues\":[],\"sourceSystem\":\"None\",\"vmRecommendations\":[],\"pathRecommendations\":[]},\"location\":\"cojocqwogfnzjvus\",\"id\":\"zldmozuxy\",\"name\":\"fsbtkad\",\"type\":\"ysownbtgkbug\"},{\"properties\":{\"enforcementMode\":\"Enforce\",\"configurationStatus\":\"Failed\",\"recommendationStatus\":\"NotRecommended\",\"issues\":[],\"sourceSystem\":\"None\",\"vmRecommendations\":[],\"pathRecommendations\":[]},\"location\":\"eypefojyqd\",\"id\":\"cuplcplcwkhih\",\"name\":\"hlhzdsqtzbsrgno\",\"type\":\"cjhfgmvecactxmw\"},{\"properties\":{\"enforcementMode\":\"None\",\"configurationStatus\":\"InProgress\",\"recommendationStatus\":\"NotAvailable\",\"issues\":[],\"sourceSystem\":\"Azure_AppLocker\",\"vmRecommendations\":[],\"pathRecommendations\":[]},\"location\":\"qvgqouw\",\"id\":\"fzmpjwyivq\",\"name\":\"kfxcvhrfs\",\"type\":\"huagrttikteusqc\"},{\"properties\":{\"enforcementMode\":\"Audit\",\"configurationStatus\":\"Failed\",\"recommendationStatus\":\"NotAvailable\",\"issues\":[],\"sourceSystem\":\"NonAzure_AuditD\",\"vmRecommendations\":[],\"pathRecommendations\":[]},\"location\":\"mmfblcqcuubgqib\",\"id\":\"talmett\",\"name\":\"wgdsl\",\"type\":\"xih\"}]}")
- .toObject(AdaptiveApplicationControlGroupsInner.class);
- Assertions.assertEquals(EnforcementMode.AUDIT, model.value().get(0).enforcementMode());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveApplicationControlGroupsInner model =
- new AdaptiveApplicationControlGroupsInner()
- .withValue(
- Arrays
- .asList(
- new AdaptiveApplicationControlGroupInner()
- .withEnforcementMode(EnforcementMode.AUDIT)
- .withVmRecommendations(Arrays.asList())
- .withPathRecommendations(Arrays.asList()),
- new AdaptiveApplicationControlGroupInner()
- .withEnforcementMode(EnforcementMode.ENFORCE)
- .withVmRecommendations(Arrays.asList())
- .withPathRecommendations(Arrays.asList()),
- new AdaptiveApplicationControlGroupInner()
- .withEnforcementMode(EnforcementMode.NONE)
- .withVmRecommendations(Arrays.asList())
- .withPathRecommendations(Arrays.asList()),
- new AdaptiveApplicationControlGroupInner()
- .withEnforcementMode(EnforcementMode.AUDIT)
- .withVmRecommendations(Arrays.asList())
- .withPathRecommendations(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(AdaptiveApplicationControlGroupsInner.class);
- Assertions.assertEquals(EnforcementMode.AUDIT, model.value().get(0).enforcementMode());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlIssueSummaryTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlIssueSummaryTests.java
deleted file mode 100644
index 697071e2a2b5c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlIssueSummaryTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AdaptiveApplicationControlIssue;
-import com.azure.resourcemanager.security.models.AdaptiveApplicationControlIssueSummary;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveApplicationControlIssueSummaryTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveApplicationControlIssueSummary model =
- BinaryData
- .fromString("{\"issue\":\"ViolationsAudited\",\"numberOfVms\":60.195232}")
- .toObject(AdaptiveApplicationControlIssueSummary.class);
- Assertions.assertEquals(AdaptiveApplicationControlIssue.VIOLATIONS_AUDITED, model.issue());
- Assertions.assertEquals(60.195232F, model.numberOfVms());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveApplicationControlIssueSummary model =
- new AdaptiveApplicationControlIssueSummary()
- .withIssue(AdaptiveApplicationControlIssue.VIOLATIONS_AUDITED)
- .withNumberOfVms(60.195232F);
- model = BinaryData.fromObject(model).toObject(AdaptiveApplicationControlIssueSummary.class);
- Assertions.assertEquals(AdaptiveApplicationControlIssue.VIOLATIONS_AUDITED, model.issue());
- Assertions.assertEquals(60.195232F, model.numberOfVms());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 6c7d348dab9a9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveApplicationControlsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .adaptiveApplicationControls()
- .deleteByResourceGroupWithResponse("cfogxhcxnwjt", "fdz", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsGetWithResponseMockTests.java
deleted file mode 100644
index f5db92120fbc0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdaptiveApplicationControlGroup;
-import com.azure.resourcemanager.security.models.EnforcementMode;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveApplicationControlsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"enforcementMode\":\"Enforce\",\"protectionMode\":{\"exe\":\"Enforce\",\"msi\":\"Enforce\",\"script\":\"None\",\"executable\":\"Enforce\"},\"configurationStatus\":\"NoStatus\",\"recommendationStatus\":\"Recommended\",\"issues\":[],\"sourceSystem\":\"NonAzure_AuditD\",\"vmRecommendations\":[],\"pathRecommendations\":[]},\"location\":\"mef\",\"id\":\"vhkmoogjrhskbwgm\",\"name\":\"g\",\"type\":\"u\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AdaptiveApplicationControlGroup response =
- manager
- .adaptiveApplicationControls()
- .getWithResponse("sgwqpsqaz", "hqodv", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(EnforcementMode.ENFORCE, response.enforcementMode());
- Assertions.assertEquals(EnforcementMode.ENFORCE, response.protectionMode().exe());
- Assertions.assertEquals(EnforcementMode.ENFORCE, response.protectionMode().msi());
- Assertions.assertEquals(EnforcementMode.NONE, response.protectionMode().script());
- Assertions.assertEquals(EnforcementMode.ENFORCE, response.protectionMode().executable());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsListWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsListWithResponseMockTests.java
deleted file mode 100644
index 69308fc853bb7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsListWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdaptiveApplicationControlGroups;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveApplicationControlsListWithResponseMockTests {
- @Test
- public void testListWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"pfuofixcnpcfykkp\",\"id\":\"ycpawm\",\"name\":\"jp\",\"type\":\"dpwrp\"},{\"location\":\"pcf\",\"id\":\"fwzlgzawkgyepeya\",\"name\":\"nnidmdiawpzxk\",\"type\":\"rntmkctdhu\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AdaptiveApplicationControlGroups response =
- manager
- .adaptiveApplicationControls()
- .listWithResponse(false, true, com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsPutWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsPutWithResponseMockTests.java
deleted file mode 100644
index 4a6d08c82594c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveApplicationControlsPutWithResponseMockTests.java
+++ /dev/null
@@ -1,87 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdaptiveApplicationControlGroup;
-import com.azure.resourcemanager.security.models.EnforcementMode;
-import com.azure.resourcemanager.security.models.ProtectionMode;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveApplicationControlsPutWithResponseMockTests {
- @Test
- public void testPutWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"enforcementMode\":\"Enforce\",\"protectionMode\":{\"exe\":\"None\",\"msi\":\"Audit\",\"script\":\"None\",\"executable\":\"Enforce\"},\"configurationStatus\":\"InProgress\",\"recommendationStatus\":\"NoStatus\",\"issues\":[],\"sourceSystem\":\"Azure_AuditD\",\"vmRecommendations\":[],\"pathRecommendations\":[]},\"location\":\"zusitoqcahfs\",\"id\":\"bjmlreesrfwssz\",\"name\":\"lc\",\"type\":\"lisolntfxxc\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AdaptiveApplicationControlGroup response =
- manager
- .adaptiveApplicationControls()
- .define("uzfwo")
- .withExistingLocation("c")
- .withEnforcementMode(EnforcementMode.AUDIT)
- .withProtectionMode(
- new ProtectionMode()
- .withExe(EnforcementMode.ENFORCE)
- .withMsi(EnforcementMode.ENFORCE)
- .withScript(EnforcementMode.ENFORCE)
- .withExecutable(EnforcementMode.ENFORCE))
- .withVmRecommendations(Arrays.asList())
- .withPathRecommendations(Arrays.asList())
- .create();
-
- Assertions.assertEquals(EnforcementMode.ENFORCE, response.enforcementMode());
- Assertions.assertEquals(EnforcementMode.NONE, response.protectionMode().exe());
- Assertions.assertEquals(EnforcementMode.AUDIT, response.protectionMode().msi());
- Assertions.assertEquals(EnforcementMode.NONE, response.protectionMode().script());
- Assertions.assertEquals(EnforcementMode.ENFORCE, response.protectionMode().executable());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningEnforceRequestTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningEnforceRequestTests.java
deleted file mode 100644
index 42e85757a0fbc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningEnforceRequestTests.java
+++ /dev/null
@@ -1,54 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningEnforceRequest;
-import com.azure.resourcemanager.security.models.Direction;
-import com.azure.resourcemanager.security.models.Rule;
-import com.azure.resourcemanager.security.models.TransportProtocol;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveNetworkHardeningEnforceRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveNetworkHardeningEnforceRequest model =
- BinaryData
- .fromString(
- "{\"rules\":[{\"name\":\"vyc\",\"direction\":\"Inbound\",\"destinationPort\":1491139189,\"protocols\":[\"UDP\"],\"ipAddresses\":[\"nfnw\",\"btmvpdvjdhttza\",\"fedxihchrphkm\",\"rjdqnsdfzp\"]}],\"networkSecurityGroups\":[\"tg\",\"ylkdghrje\",\"utlwxezwzhok\"]}")
- .toObject(AdaptiveNetworkHardeningEnforceRequest.class);
- Assertions.assertEquals("vyc", model.rules().get(0).name());
- Assertions.assertEquals(Direction.INBOUND, model.rules().get(0).direction());
- Assertions.assertEquals(1491139189, model.rules().get(0).destinationPort());
- Assertions.assertEquals(TransportProtocol.UDP, model.rules().get(0).protocols().get(0));
- Assertions.assertEquals("nfnw", model.rules().get(0).ipAddresses().get(0));
- Assertions.assertEquals("tg", model.networkSecurityGroups().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveNetworkHardeningEnforceRequest model =
- new AdaptiveNetworkHardeningEnforceRequest()
- .withRules(
- Arrays
- .asList(
- new Rule()
- .withName("vyc")
- .withDirection(Direction.INBOUND)
- .withDestinationPort(1491139189)
- .withProtocols(Arrays.asList(TransportProtocol.UDP))
- .withIpAddresses(
- Arrays.asList("nfnw", "btmvpdvjdhttza", "fedxihchrphkm", "rjdqnsdfzp"))))
- .withNetworkSecurityGroups(Arrays.asList("tg", "ylkdghrje", "utlwxezwzhok"));
- model = BinaryData.fromObject(model).toObject(AdaptiveNetworkHardeningEnforceRequest.class);
- Assertions.assertEquals("vyc", model.rules().get(0).name());
- Assertions.assertEquals(Direction.INBOUND, model.rules().get(0).direction());
- Assertions.assertEquals(1491139189, model.rules().get(0).destinationPort());
- Assertions.assertEquals(TransportProtocol.UDP, model.rules().get(0).protocols().get(0));
- Assertions.assertEquals("nfnw", model.rules().get(0).ipAddresses().get(0));
- Assertions.assertEquals("tg", model.networkSecurityGroups().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningInnerTests.java
deleted file mode 100644
index da41e2e59d872..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningInnerTests.java
+++ /dev/null
@@ -1,79 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveNetworkHardeningInner;
-import com.azure.resourcemanager.security.models.Direction;
-import com.azure.resourcemanager.security.models.EffectiveNetworkSecurityGroups;
-import com.azure.resourcemanager.security.models.Rule;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveNetworkHardeningInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveNetworkHardeningInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"rules\":[{\"name\":\"rfe\",\"direction\":\"Outbound\",\"destinationPort\":301630864,\"protocols\":[],\"ipAddresses\":[]},{\"name\":\"hcans\",\"direction\":\"Inbound\",\"destinationPort\":1800110701,\"protocols\":[],\"ipAddresses\":[]},{\"name\":\"igdivbkbxg\",\"direction\":\"Inbound\",\"destinationPort\":2081513021,\"protocols\":[],\"ipAddresses\":[]},{\"name\":\"sqvdaeyygux\",\"direction\":\"Outbound\",\"destinationPort\":1119953964,\"protocols\":[],\"ipAddresses\":[]}],\"rulesCalculationTime\":\"2021-01-11T12:34:59Z\",\"effectiveNetworkSecurityGroups\":[{\"networkInterface\":\"gims\",\"networkSecurityGroups\":[]},{\"networkInterface\":\"asi\",\"networkSecurityGroups\":[]}]},\"id\":\"dyvvjskgfmocwahp\",\"name\":\"gat\",\"type\":\"eaahhvjhhn\"}")
- .toObject(AdaptiveNetworkHardeningInner.class);
- Assertions.assertEquals("rfe", model.rules().get(0).name());
- Assertions.assertEquals(Direction.OUTBOUND, model.rules().get(0).direction());
- Assertions.assertEquals(301630864, model.rules().get(0).destinationPort());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-11T12:34:59Z"), model.rulesCalculationTime());
- Assertions.assertEquals("gims", model.effectiveNetworkSecurityGroups().get(0).networkInterface());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveNetworkHardeningInner model =
- new AdaptiveNetworkHardeningInner()
- .withRules(
- Arrays
- .asList(
- new Rule()
- .withName("rfe")
- .withDirection(Direction.OUTBOUND)
- .withDestinationPort(301630864)
- .withProtocols(Arrays.asList())
- .withIpAddresses(Arrays.asList()),
- new Rule()
- .withName("hcans")
- .withDirection(Direction.INBOUND)
- .withDestinationPort(1800110701)
- .withProtocols(Arrays.asList())
- .withIpAddresses(Arrays.asList()),
- new Rule()
- .withName("igdivbkbxg")
- .withDirection(Direction.INBOUND)
- .withDestinationPort(2081513021)
- .withProtocols(Arrays.asList())
- .withIpAddresses(Arrays.asList()),
- new Rule()
- .withName("sqvdaeyygux")
- .withDirection(Direction.OUTBOUND)
- .withDestinationPort(1119953964)
- .withProtocols(Arrays.asList())
- .withIpAddresses(Arrays.asList())))
- .withRulesCalculationTime(OffsetDateTime.parse("2021-01-11T12:34:59Z"))
- .withEffectiveNetworkSecurityGroups(
- Arrays
- .asList(
- new EffectiveNetworkSecurityGroups()
- .withNetworkInterface("gims")
- .withNetworkSecurityGroups(Arrays.asList()),
- new EffectiveNetworkSecurityGroups()
- .withNetworkInterface("asi")
- .withNetworkSecurityGroups(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(AdaptiveNetworkHardeningInner.class);
- Assertions.assertEquals("rfe", model.rules().get(0).name());
- Assertions.assertEquals(Direction.OUTBOUND, model.rules().get(0).direction());
- Assertions.assertEquals(301630864, model.rules().get(0).destinationPort());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-11T12:34:59Z"), model.rulesCalculationTime());
- Assertions.assertEquals("gims", model.effectiveNetworkSecurityGroups().get(0).networkInterface());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningPropertiesTests.java
deleted file mode 100644
index 171862be894e3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningPropertiesTests.java
+++ /dev/null
@@ -1,85 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveNetworkHardeningProperties;
-import com.azure.resourcemanager.security.models.Direction;
-import com.azure.resourcemanager.security.models.EffectiveNetworkSecurityGroups;
-import com.azure.resourcemanager.security.models.Rule;
-import com.azure.resourcemanager.security.models.TransportProtocol;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveNetworkHardeningPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveNetworkHardeningProperties model =
- BinaryData
- .fromString(
- "{\"rules\":[{\"name\":\"bbjjidjksyxk\",\"direction\":\"Inbound\",\"destinationPort\":1732474011,\"protocols\":[\"TCP\",\"UDP\"],\"ipAddresses\":[\"dnlj\",\"age\"]},{\"name\":\"ulxunsmjbnkpp\",\"direction\":\"Outbound\",\"destinationPort\":2047909976,\"protocols\":[\"TCP\",\"TCP\",\"TCP\",\"TCP\"],\"ipAddresses\":[\"gwklnsr\"]}],\"rulesCalculationTime\":\"2021-08-04T15:57:37Z\",\"effectiveNetworkSecurityGroups\":[{\"networkInterface\":\"xcktpiymerteeamm\",\"networkSecurityGroups\":[\"ekkkzd\",\"rtkgdojbmxvavref\",\"eesvecu\",\"jpxtxsuwprtuj\"]},{\"networkInterface\":\"awddjibab\",\"networkSecurityGroups\":[\"titvtzeexavox\",\"fglecdmdqbwp\",\"pqtgsfjac\",\"slhhxudbxv\"]},{\"networkInterface\":\"htnsi\",\"networkSecurityGroups\":[\"hzmme\",\"ckdlpag\",\"rcxfailcfxwmdb\"]}]}")
- .toObject(AdaptiveNetworkHardeningProperties.class);
- Assertions.assertEquals("bbjjidjksyxk", model.rules().get(0).name());
- Assertions.assertEquals(Direction.INBOUND, model.rules().get(0).direction());
- Assertions.assertEquals(1732474011, model.rules().get(0).destinationPort());
- Assertions.assertEquals(TransportProtocol.TCP, model.rules().get(0).protocols().get(0));
- Assertions.assertEquals("dnlj", model.rules().get(0).ipAddresses().get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T15:57:37Z"), model.rulesCalculationTime());
- Assertions.assertEquals("xcktpiymerteeamm", model.effectiveNetworkSecurityGroups().get(0).networkInterface());
- Assertions.assertEquals("ekkkzd", model.effectiveNetworkSecurityGroups().get(0).networkSecurityGroups().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveNetworkHardeningProperties model =
- new AdaptiveNetworkHardeningProperties()
- .withRules(
- Arrays
- .asList(
- new Rule()
- .withName("bbjjidjksyxk")
- .withDirection(Direction.INBOUND)
- .withDestinationPort(1732474011)
- .withProtocols(Arrays.asList(TransportProtocol.TCP, TransportProtocol.UDP))
- .withIpAddresses(Arrays.asList("dnlj", "age")),
- new Rule()
- .withName("ulxunsmjbnkpp")
- .withDirection(Direction.OUTBOUND)
- .withDestinationPort(2047909976)
- .withProtocols(
- Arrays
- .asList(
- TransportProtocol.TCP,
- TransportProtocol.TCP,
- TransportProtocol.TCP,
- TransportProtocol.TCP))
- .withIpAddresses(Arrays.asList("gwklnsr"))))
- .withRulesCalculationTime(OffsetDateTime.parse("2021-08-04T15:57:37Z"))
- .withEffectiveNetworkSecurityGroups(
- Arrays
- .asList(
- new EffectiveNetworkSecurityGroups()
- .withNetworkInterface("xcktpiymerteeamm")
- .withNetworkSecurityGroups(
- Arrays.asList("ekkkzd", "rtkgdojbmxvavref", "eesvecu", "jpxtxsuwprtuj")),
- new EffectiveNetworkSecurityGroups()
- .withNetworkInterface("awddjibab")
- .withNetworkSecurityGroups(
- Arrays.asList("titvtzeexavox", "fglecdmdqbwp", "pqtgsfjac", "slhhxudbxv")),
- new EffectiveNetworkSecurityGroups()
- .withNetworkInterface("htnsi")
- .withNetworkSecurityGroups(Arrays.asList("hzmme", "ckdlpag", "rcxfailcfxwmdb"))));
- model = BinaryData.fromObject(model).toObject(AdaptiveNetworkHardeningProperties.class);
- Assertions.assertEquals("bbjjidjksyxk", model.rules().get(0).name());
- Assertions.assertEquals(Direction.INBOUND, model.rules().get(0).direction());
- Assertions.assertEquals(1732474011, model.rules().get(0).destinationPort());
- Assertions.assertEquals(TransportProtocol.TCP, model.rules().get(0).protocols().get(0));
- Assertions.assertEquals("dnlj", model.rules().get(0).ipAddresses().get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T15:57:37Z"), model.rulesCalculationTime());
- Assertions.assertEquals("xcktpiymerteeamm", model.effectiveNetworkSecurityGroups().get(0).networkInterface());
- Assertions.assertEquals("ekkkzd", model.effectiveNetworkSecurityGroups().get(0).networkSecurityGroups().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsEnforceMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsEnforceMockTests.java
deleted file mode 100644
index ca9b785dd9276..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsEnforceMockTests.java
+++ /dev/null
@@ -1,85 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningEnforceRequest;
-import com.azure.resourcemanager.security.models.Direction;
-import com.azure.resourcemanager.security.models.Rule;
-import com.azure.resourcemanager.security.models.TransportProtocol;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveNetworkHardeningsEnforceMockTests {
- @Test
- public void testEnforce() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .adaptiveNetworkHardenings()
- .enforce(
- "qs",
- "eiihfymko",
- "ihyeseu",
- "gcigzh",
- "gsmgb",
- new AdaptiveNetworkHardeningEnforceRequest()
- .withRules(
- Arrays
- .asList(
- new Rule()
- .withName("dwrqbeb")
- .withDirection(Direction.OUTBOUND)
- .withDestinationPort(2023900183)
- .withProtocols(Arrays.asList(TransportProtocol.TCP))
- .withIpAddresses(Arrays.asList("vkbiw", "nhtfgfi", "udy"))))
- .withNetworkSecurityGroups(Arrays.asList("zpacz", "uhbcak")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsGetWithResponseMockTests.java
deleted file mode 100644
index 8e5c9412fac9e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdaptiveNetworkHardening;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveNetworkHardeningsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"rules\":[],\"rulesCalculationTime\":\"2021-08-13T04:35:03Z\",\"effectiveNetworkSecurityGroups\":[]},\"id\":\"ybkekym\",\"name\":\"fztsi\",\"type\":\"sc\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AdaptiveNetworkHardening response =
- manager
- .adaptiveNetworkHardenings()
- .getWithResponse("ktwtk", "ih", "pfliwo", "nguuzhwvla", "p", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-13T04:35:03Z"), response.rulesCalculationTime());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsListByExtendedResourceMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsListByExtendedResourceMockTests.java
deleted file mode 100644
index 3e866aa96567d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsListByExtendedResourceMockTests.java
+++ /dev/null
@@ -1,73 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdaptiveNetworkHardening;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdaptiveNetworkHardeningsListByExtendedResourceMockTests {
- @Test
- public void testListByExtendedResource() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"rules\":[],\"rulesCalculationTime\":\"2021-10-09T16:12:07Z\",\"effectiveNetworkSecurityGroups\":[]},\"id\":\"qmqipaydhfnzoc\",\"name\":\"mtfshksnyzmspa\",\"type\":\"wbwmbnlslcefiq\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .adaptiveNetworkHardenings()
- .listByExtendedResource(
- "qmipfj", "foygizmshxxba", "zabulnvgsk", "toxjdzj", com.azure.core.util.Context.NONE);
-
- Assertions
- .assertEquals(
- OffsetDateTime.parse("2021-10-09T16:12:07Z"), response.iterator().next().rulesCalculationTime());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsListTests.java
deleted file mode 100644
index dbf2ff91a1643..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdaptiveNetworkHardeningsListTests.java
+++ /dev/null
@@ -1,48 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdaptiveNetworkHardeningInner;
-import com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningsList;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdaptiveNetworkHardeningsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdaptiveNetworkHardeningsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"rules\":[],\"rulesCalculationTime\":\"2021-02-04T03:03:52Z\",\"effectiveNetworkSecurityGroups\":[]},\"id\":\"pgclrciv\",\"name\":\"soxfrken\",\"type\":\"pmyyefrpmpdnqq\"},{\"properties\":{\"rules\":[],\"rulesCalculationTime\":\"2021-07-14T06:34:32Z\",\"effectiveNetworkSecurityGroups\":[]},\"id\":\"qvmmbn\",\"name\":\"qfr\",\"type\":\"qlkzme\"}],\"nextLink\":\"itgvkx\"}")
- .toObject(AdaptiveNetworkHardeningsList.class);
- Assertions
- .assertEquals(OffsetDateTime.parse("2021-02-04T03:03:52Z"), model.value().get(0).rulesCalculationTime());
- Assertions.assertEquals("itgvkx", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdaptiveNetworkHardeningsList model =
- new AdaptiveNetworkHardeningsList()
- .withValue(
- Arrays
- .asList(
- new AdaptiveNetworkHardeningInner()
- .withRules(Arrays.asList())
- .withRulesCalculationTime(OffsetDateTime.parse("2021-02-04T03:03:52Z"))
- .withEffectiveNetworkSecurityGroups(Arrays.asList()),
- new AdaptiveNetworkHardeningInner()
- .withRules(Arrays.asList())
- .withRulesCalculationTime(OffsetDateTime.parse("2021-07-14T06:34:32Z"))
- .withEffectiveNetworkSecurityGroups(Arrays.asList())))
- .withNextLink("itgvkx");
- model = BinaryData.fromObject(model).toObject(AdaptiveNetworkHardeningsList.class);
- Assertions
- .assertEquals(OffsetDateTime.parse("2021-02-04T03:03:52Z"), model.value().get(0).rulesCalculationTime());
- Assertions.assertEquals("itgvkx", model.nextLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdditionalDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdditionalDataTests.java
deleted file mode 100644
index eba091dd52f75..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdditionalDataTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AdditionalData;
-
-public final class AdditionalDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdditionalData model =
- BinaryData.fromString("{\"assessedResourceType\":\"AdditionalData\"}").toObject(AdditionalData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdditionalData model = new AdditionalData();
- model = BinaryData.fromObject(model).toObject(AdditionalData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdditionalWorkspacesPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdditionalWorkspacesPropertiesTests.java
deleted file mode 100644
index d6a5a12cda1c9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdditionalWorkspacesPropertiesTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AdditionalWorkspaceDataType;
-import com.azure.resourcemanager.security.models.AdditionalWorkspaceType;
-import com.azure.resourcemanager.security.models.AdditionalWorkspacesProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdditionalWorkspacesPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdditionalWorkspacesProperties model =
- BinaryData
- .fromString("{\"workspace\":\"yq\",\"type\":\"Sentinel\",\"dataTypes\":[\"Alerts\",\"RawEvents\"]}")
- .toObject(AdditionalWorkspacesProperties.class);
- Assertions.assertEquals("yq", model.workspace());
- Assertions.assertEquals(AdditionalWorkspaceType.SENTINEL, model.type());
- Assertions.assertEquals(AdditionalWorkspaceDataType.ALERTS, model.dataTypes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdditionalWorkspacesProperties model =
- new AdditionalWorkspacesProperties()
- .withWorkspace("yq")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(
- Arrays.asList(AdditionalWorkspaceDataType.ALERTS, AdditionalWorkspaceDataType.RAW_EVENTS));
- model = BinaryData.fromObject(model).toObject(AdditionalWorkspacesProperties.class);
- Assertions.assertEquals("yq", model.workspace());
- Assertions.assertEquals(AdditionalWorkspaceType.SENTINEL, model.type());
- Assertions.assertEquals(AdditionalWorkspaceDataType.ALERTS, model.dataTypes().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionPropertiesTests.java
deleted file mode 100644
index 1f1bceab65214..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionPropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdvancedThreatProtectionProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdvancedThreatProtectionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdvancedThreatProtectionProperties model =
- BinaryData.fromString("{\"isEnabled\":false}").toObject(AdvancedThreatProtectionProperties.class);
- Assertions.assertEquals(false, model.isEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdvancedThreatProtectionProperties model = new AdvancedThreatProtectionProperties().withIsEnabled(false);
- model = BinaryData.fromObject(model).toObject(AdvancedThreatProtectionProperties.class);
- Assertions.assertEquals(false, model.isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionSettingInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionSettingInnerTests.java
deleted file mode 100644
index 91035c765ee17..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionSettingInnerTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AdvancedThreatProtectionSettingInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class AdvancedThreatProtectionSettingInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AdvancedThreatProtectionSettingInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"isEnabled\":true},\"id\":\"ijcmmx\",\"name\":\"cufufsrpymz\",\"type\":\"dnsezcxtbzs\"}")
- .toObject(AdvancedThreatProtectionSettingInner.class);
- Assertions.assertEquals(true, model.isEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AdvancedThreatProtectionSettingInner model = new AdvancedThreatProtectionSettingInner().withIsEnabled(true);
- model = BinaryData.fromObject(model).toObject(AdvancedThreatProtectionSettingInner.class);
- Assertions.assertEquals(true, model.isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionsCreateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionsCreateWithResponseMockTests.java
deleted file mode 100644
index a9ecc1d834ab8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdvancedThreatProtectionSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdvancedThreatProtectionsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"isEnabled\":true},\"id\":\"lwljss\",\"name\":\"ctsnldkpwol\",\"type\":\"isubxbteog\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AdvancedThreatProtectionSetting response =
- manager.advancedThreatProtections().define().withExistingResourceId("ezay").withIsEnabled(true).create();
-
- Assertions.assertEquals(true, response.isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionsGetWithResponseMockTests.java
deleted file mode 100644
index 094f2c1cb2ab3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AdvancedThreatProtectionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AdvancedThreatProtectionSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AdvancedThreatProtectionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"isEnabled\":true},\"id\":\"minxojjluxxdh\",\"name\":\"lzzdz\",\"type\":\"qjm\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AdvancedThreatProtectionSetting response =
- manager.advancedThreatProtections().getWithResponse("jlf", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals(true, response.isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertEntityTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertEntityTests.java
deleted file mode 100644
index 8db52d56935aa..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertEntityTests.java
+++ /dev/null
@@ -1,38 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AlertEntity;
-import java.util.HashMap;
-import java.util.Map;
-
-public final class AlertEntityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertEntity model =
- BinaryData
- .fromString(
- "{\"type\":\"hqjjys\",\"\":{\"mpqvwwsk\":\"datalpshhkvpedwqslsr\",\"uvqejosovyrrle\":\"datandcbrwi\"}}")
- .toObject(AlertEntity.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertEntity model = new AlertEntity().withAdditionalProperties(mapOf("type", "hqjjys"));
- model = BinaryData.fromObject(model).toObject(AlertEntity.class);
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertPropertiesSupportingEvidenceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertPropertiesSupportingEvidenceTests.java
deleted file mode 100644
index dce644a756663..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertPropertiesSupportingEvidenceTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AlertPropertiesSupportingEvidence;
-import java.util.HashMap;
-import java.util.Map;
-
-public final class AlertPropertiesSupportingEvidenceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertPropertiesSupportingEvidence model =
- BinaryData
- .fromString(
- "{\"type\":\"sinuqtljqobbpih\",\"\":{\"bmpxdlvykfrexc\":\"dataecybmrqbrj\",\"qwjksghudgz\":\"datas\",\"ggsvoujkxibdaf\":\"dataxog\",\"xfbvfb\":\"datarkmdyom\"}}")
- .toObject(AlertPropertiesSupportingEvidence.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertPropertiesSupportingEvidence model =
- new AlertPropertiesSupportingEvidence().withAdditionalProperties(mapOf("type", "sinuqtljqobbpih"));
- model = BinaryData.fromObject(model).toObject(AlertPropertiesSupportingEvidence.class);
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorBundlesRequestPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorBundlesRequestPropertiesTests.java
deleted file mode 100644
index 3188369dec35d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorBundlesRequestPropertiesTests.java
+++ /dev/null
@@ -1,31 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AlertSimulatorBundlesRequestProperties;
-import com.azure.resourcemanager.security.models.BundleType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AlertSimulatorBundlesRequestPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertSimulatorBundlesRequestProperties model =
- BinaryData
- .fromString(
- "{\"kind\":\"Bundles\",\"bundles\":[\"DNS\"],\"\":{\"dtfohfaog\":\"datakywymxgaabj\",\"ykcrraue\":\"datavkiwrsiwdyjqu\",\"ddacbcbgydlqidy\":\"datakcsueho\"}}")
- .toObject(AlertSimulatorBundlesRequestProperties.class);
- Assertions.assertEquals(BundleType.DNS, model.bundles().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertSimulatorBundlesRequestProperties model =
- new AlertSimulatorBundlesRequestProperties().withBundles(Arrays.asList(BundleType.DNS));
- model = BinaryData.fromObject(model).toObject(AlertSimulatorBundlesRequestProperties.class);
- Assertions.assertEquals(BundleType.DNS, model.bundles().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorRequestBodyTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorRequestBodyTests.java
deleted file mode 100644
index 346f3c6d98e1c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorRequestBodyTests.java
+++ /dev/null
@@ -1,43 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
-import com.azure.resourcemanager.security.models.AlertSimulatorRequestProperties;
-import java.util.HashMap;
-import java.util.Map;
-
-public final class AlertSimulatorRequestBodyTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertSimulatorRequestBody model =
- BinaryData
- .fromString(
- "{\"properties\":{\"kind\":\"AlertSimulatorRequestProperties\",\"\":{\"gddeimaw\":\"datarhpw\"}}}")
- .toObject(AlertSimulatorRequestBody.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertSimulatorRequestBody model =
- new AlertSimulatorRequestBody()
- .withProperties(
- new AlertSimulatorRequestProperties()
- .withAdditionalProperties(mapOf("kind", "AlertSimulatorRequestProperties")));
- model = BinaryData.fromObject(model).toObject(AlertSimulatorRequestBody.class);
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorRequestPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorRequestPropertiesTests.java
deleted file mode 100644
index e6ff4dc8f323d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSimulatorRequestPropertiesTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AlertSimulatorRequestProperties;
-import java.util.HashMap;
-import java.util.Map;
-
-public final class AlertSimulatorRequestPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertSimulatorRequestProperties model =
- BinaryData
- .fromString("{\"kind\":\"AlertSimulatorRequestProperties\",\"\":{\"aztb\":\"datagkkumuikjcj\"}}")
- .toObject(AlertSimulatorRequestProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertSimulatorRequestProperties model =
- new AlertSimulatorRequestProperties()
- .withAdditionalProperties(mapOf("kind", "AlertSimulatorRequestProperties"));
- model = BinaryData.fromObject(model).toObject(AlertSimulatorRequestProperties.class);
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSyncSettingPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSyncSettingPropertiesTests.java
deleted file mode 100644
index 6020bd9489933..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSyncSettingPropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AlertSyncSettingProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class AlertSyncSettingPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertSyncSettingProperties model =
- BinaryData.fromString("{\"enabled\":true}").toObject(AlertSyncSettingProperties.class);
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertSyncSettingProperties model = new AlertSyncSettingProperties().withEnabled(true);
- model = BinaryData.fromObject(model).toObject(AlertSyncSettingProperties.class);
- Assertions.assertEquals(true, model.enabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSyncSettingsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSyncSettingsTests.java
deleted file mode 100644
index 29517813259db..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertSyncSettingsTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AlertSyncSettings;
-import org.junit.jupiter.api.Assertions;
-
-public final class AlertSyncSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertSyncSettings model =
- BinaryData
- .fromString(
- "{\"kind\":\"AlertSyncSettings\",\"properties\":{\"enabled\":false},\"id\":\"leexahvmywh\",\"name\":\"brcary\",\"type\":\"sjjzyvoaqajuveh\"}")
- .toObject(AlertSyncSettings.class);
- Assertions.assertEquals(false, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertSyncSettings model = new AlertSyncSettings().withEnabled(false);
- model = BinaryData.fromObject(model).toObject(AlertSyncSettings.class);
- Assertions.assertEquals(false, model.enabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRuleInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRuleInnerTests.java
deleted file mode 100644
index 579dcb7c5fe39..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRuleInnerTests.java
+++ /dev/null
@@ -1,47 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleInner;
-import com.azure.resourcemanager.security.models.RuleState;
-import com.azure.resourcemanager.security.models.SuppressionAlertsScope;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AlertsSuppressionRuleInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertsSuppressionRuleInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"alertType\":\"vhmxtdrjfu\",\"lastModifiedUtc\":\"2021-09-25T19:58:32Z\",\"expirationDateUtc\":\"2021-07-27T22:13:32Z\",\"reason\":\"bj\",\"state\":\"Expired\",\"comment\":\"zcjznmwcpmgua\",\"suppressionAlertsScope\":{\"allOf\":[]}},\"id\":\"aufactkahzovajjz\",\"name\":\"uxxpshne\",\"type\":\"kulfg\"}")
- .toObject(AlertsSuppressionRuleInner.class);
- Assertions.assertEquals("vhmxtdrjfu", model.alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T22:13:32Z"), model.expirationDateUtc());
- Assertions.assertEquals("bj", model.reason());
- Assertions.assertEquals(RuleState.EXPIRED, model.state());
- Assertions.assertEquals("zcjznmwcpmgua", model.comment());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertsSuppressionRuleInner model =
- new AlertsSuppressionRuleInner()
- .withAlertType("vhmxtdrjfu")
- .withExpirationDateUtc(OffsetDateTime.parse("2021-07-27T22:13:32Z"))
- .withReason("bj")
- .withState(RuleState.EXPIRED)
- .withComment("zcjznmwcpmgua")
- .withSuppressionAlertsScope(new SuppressionAlertsScope().withAllOf(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(AlertsSuppressionRuleInner.class);
- Assertions.assertEquals("vhmxtdrjfu", model.alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T22:13:32Z"), model.expirationDateUtc());
- Assertions.assertEquals("bj", model.reason());
- Assertions.assertEquals(RuleState.EXPIRED, model.state());
- Assertions.assertEquals("zcjznmwcpmgua", model.comment());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulePropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulePropertiesTests.java
deleted file mode 100644
index 431476f964380..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulePropertiesTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleProperties;
-import com.azure.resourcemanager.security.models.RuleState;
-import com.azure.resourcemanager.security.models.ScopeElement;
-import com.azure.resourcemanager.security.models.SuppressionAlertsScope;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AlertsSuppressionRulePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertsSuppressionRuleProperties model =
- BinaryData
- .fromString(
- "{\"alertType\":\"lqubkwdlen\",\"lastModifiedUtc\":\"2021-02-18T06:07:47Z\",\"expirationDateUtc\":\"2021-03-05T15:56:58Z\",\"reason\":\"ujbazpjuohminyfl\",\"state\":\"Enabled\",\"comment\":\"wmd\",\"suppressionAlertsScope\":{\"allOf\":[{\"field\":\"klvxwmyg\",\"\":{}},{\"field\":\"gpqch\",\"\":{}}]}}")
- .toObject(AlertsSuppressionRuleProperties.class);
- Assertions.assertEquals("lqubkwdlen", model.alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T15:56:58Z"), model.expirationDateUtc());
- Assertions.assertEquals("ujbazpjuohminyfl", model.reason());
- Assertions.assertEquals(RuleState.ENABLED, model.state());
- Assertions.assertEquals("wmd", model.comment());
- Assertions.assertEquals("klvxwmyg", model.suppressionAlertsScope().allOf().get(0).field());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertsSuppressionRuleProperties model =
- new AlertsSuppressionRuleProperties()
- .withAlertType("lqubkwdlen")
- .withExpirationDateUtc(OffsetDateTime.parse("2021-03-05T15:56:58Z"))
- .withReason("ujbazpjuohminyfl")
- .withState(RuleState.ENABLED)
- .withComment("wmd")
- .withSuppressionAlertsScope(
- new SuppressionAlertsScope()
- .withAllOf(
- Arrays
- .asList(
- new ScopeElement().withField("klvxwmyg").withAdditionalProperties(mapOf()),
- new ScopeElement().withField("gpqch").withAdditionalProperties(mapOf()))));
- model = BinaryData.fromObject(model).toObject(AlertsSuppressionRuleProperties.class);
- Assertions.assertEquals("lqubkwdlen", model.alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T15:56:58Z"), model.expirationDateUtc());
- Assertions.assertEquals("ujbazpjuohminyfl", model.reason());
- Assertions.assertEquals(RuleState.ENABLED, model.state());
- Assertions.assertEquals("wmd", model.comment());
- Assertions.assertEquals("klvxwmyg", model.suppressionAlertsScope().allOf().get(0).field());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesDeleteWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesDeleteWithResponseMockTests.java
deleted file mode 100644
index b3a229222dad1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsSuppressionRulesDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.alertsSuppressionRules().deleteWithResponse("bkl", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesGetWithResponseMockTests.java
deleted file mode 100644
index 538b05331343c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,72 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AlertsSuppressionRule;
-import com.azure.resourcemanager.security.models.RuleState;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsSuppressionRulesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"alertType\":\"jqqwmtqsmoxsazu\",\"lastModifiedUtc\":\"2021-10-28T14:39:50Z\",\"expirationDateUtc\":\"2021-11-13T00:25:40Z\",\"reason\":\"ecywn\",\"state\":\"Disabled\",\"comment\":\"zzaczsinqbdn\",\"suppressionAlertsScope\":{\"allOf\":[]}},\"id\":\"bbozsyvr\",\"name\":\"kjmyitrchwudlx\",\"type\":\"eihtpmnoejh\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AlertsSuppressionRule response =
- manager.alertsSuppressionRules().getWithResponse("bpnjodf", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("jqqwmtqsmoxsazu", response.alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-11-13T00:25:40Z"), response.expirationDateUtc());
- Assertions.assertEquals("ecywn", response.reason());
- Assertions.assertEquals(RuleState.DISABLED, response.state());
- Assertions.assertEquals("zzaczsinqbdn", response.comment());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesListMockTests.java
deleted file mode 100644
index d366dd8edd497..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesListMockTests.java
+++ /dev/null
@@ -1,74 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AlertsSuppressionRule;
-import com.azure.resourcemanager.security.models.RuleState;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsSuppressionRulesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"alertType\":\"ntujmoilunwemhd\",\"lastModifiedUtc\":\"2021-12-02T08:52:50Z\",\"expirationDateUtc\":\"2021-10-18T05:10:35Z\",\"reason\":\"lkyozdsfzj\",\"state\":\"Enabled\",\"comment\":\"rhrhtsl\",\"suppressionAlertsScope\":{\"allOf\":[]}},\"id\":\"tv\",\"name\":\"j\",\"type\":\"xvgjbfi\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.alertsSuppressionRules().list("dsaidjanormovdxx", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("ntujmoilunwemhd", response.iterator().next().alertType());
- Assertions
- .assertEquals(OffsetDateTime.parse("2021-10-18T05:10:35Z"), response.iterator().next().expirationDateUtc());
- Assertions.assertEquals("lkyozdsfzj", response.iterator().next().reason());
- Assertions.assertEquals(RuleState.ENABLED, response.iterator().next().state());
- Assertions.assertEquals("rhrhtsl", response.iterator().next().comment());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesListTests.java
deleted file mode 100644
index be6e6b5ea8359..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesListTests.java
+++ /dev/null
@@ -1,62 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleInner;
-import com.azure.resourcemanager.security.models.AlertsSuppressionRulesList;
-import com.azure.resourcemanager.security.models.RuleState;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AlertsSuppressionRulesListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AlertsSuppressionRulesList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"alertType\":\"hvbbxuripltfnh\",\"lastModifiedUtc\":\"2021-05-19T04:32:03Z\",\"expirationDateUtc\":\"2021-08-21T19:13:45Z\",\"reason\":\"gx\",\"state\":\"Expired\",\"comment\":\"ckpyklyhplu\"},\"id\":\"pvruudlg\",\"name\":\"ibthostgktstvd\",\"type\":\"eclze\"},{\"properties\":{\"alertType\":\"bcvhzlhpl\",\"lastModifiedUtc\":\"2021-07-07T17:09:43Z\",\"expirationDateUtc\":\"2021-05-30T19:04:16Z\",\"reason\":\"lwwqfbumlkxtrqj\",\"state\":\"Disabled\",\"comment\":\"lmbtxhwgfwsrt\"},\"id\":\"coezbrhubskh\",\"name\":\"dyg\",\"type\":\"ookk\"},{\"properties\":{\"alertType\":\"qjbvleorfmlu\",\"lastModifiedUtc\":\"2021-07-18T04:19:58Z\",\"expirationDateUtc\":\"2021-10-19T17:51:06Z\",\"reason\":\"fa\",\"state\":\"Disabled\",\"comment\":\"nqqyba\"},\"id\":\"euayjkqabqgzsles\",\"name\":\"cbhernntiewdj\",\"type\":\"vbquwr\"}],\"nextLink\":\"hwagohbuffkmrqe\"}")
- .toObject(AlertsSuppressionRulesList.class);
- Assertions.assertEquals("hvbbxuripltfnh", model.value().get(0).alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-21T19:13:45Z"), model.value().get(0).expirationDateUtc());
- Assertions.assertEquals("gx", model.value().get(0).reason());
- Assertions.assertEquals(RuleState.EXPIRED, model.value().get(0).state());
- Assertions.assertEquals("ckpyklyhplu", model.value().get(0).comment());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AlertsSuppressionRulesList model =
- new AlertsSuppressionRulesList()
- .withValue(
- Arrays
- .asList(
- new AlertsSuppressionRuleInner()
- .withAlertType("hvbbxuripltfnh")
- .withExpirationDateUtc(OffsetDateTime.parse("2021-08-21T19:13:45Z"))
- .withReason("gx")
- .withState(RuleState.EXPIRED)
- .withComment("ckpyklyhplu"),
- new AlertsSuppressionRuleInner()
- .withAlertType("bcvhzlhpl")
- .withExpirationDateUtc(OffsetDateTime.parse("2021-05-30T19:04:16Z"))
- .withReason("lwwqfbumlkxtrqj")
- .withState(RuleState.DISABLED)
- .withComment("lmbtxhwgfwsrt"),
- new AlertsSuppressionRuleInner()
- .withAlertType("qjbvleorfmlu")
- .withExpirationDateUtc(OffsetDateTime.parse("2021-10-19T17:51:06Z"))
- .withReason("fa")
- .withState(RuleState.DISABLED)
- .withComment("nqqyba")));
- model = BinaryData.fromObject(model).toObject(AlertsSuppressionRulesList.class);
- Assertions.assertEquals("hvbbxuripltfnh", model.value().get(0).alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-21T19:13:45Z"), model.value().get(0).expirationDateUtc());
- Assertions.assertEquals("gx", model.value().get(0).reason());
- Assertions.assertEquals(RuleState.EXPIRED, model.value().get(0).state());
- Assertions.assertEquals("ckpyklyhplu", model.value().get(0).comment());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesUpdateWithResponseMockTests.java
deleted file mode 100644
index 02c680c4c7bdd..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsSuppressionRulesUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,87 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleInner;
-import com.azure.resourcemanager.security.models.AlertsSuppressionRule;
-import com.azure.resourcemanager.security.models.RuleState;
-import com.azure.resourcemanager.security.models.SuppressionAlertsScope;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsSuppressionRulesUpdateWithResponseMockTests {
- @Test
- public void testUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"alertType\":\"kgd\",\"lastModifiedUtc\":\"2021-11-26T23:11:17Z\",\"expirationDateUtc\":\"2021-10-12T17:44:39Z\",\"reason\":\"k\",\"state\":\"Disabled\",\"comment\":\"hgsqtnqsktxq\",\"suppressionAlertsScope\":{\"allOf\":[]}},\"id\":\"jbqggweeiwdhdm\",\"name\":\"cgbfzuscstun\",\"type\":\"lhxd\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AlertsSuppressionRule response =
- manager
- .alertsSuppressionRules()
- .updateWithResponse(
- "lfmsibzoyrfg",
- new AlertsSuppressionRuleInner()
- .withAlertType("ydpmypgfqvmt")
- .withExpirationDateUtc(OffsetDateTime.parse("2021-08-23T13:21:07Z"))
- .withReason("kxp")
- .withState(RuleState.ENABLED)
- .withComment("ewp")
- .withSuppressionAlertsScope(new SuppressionAlertsScope().withAllOf(Arrays.asList())),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("kgd", response.alertType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-12T17:44:39Z"), response.expirationDateUtc());
- Assertions.assertEquals("k", response.reason());
- Assertions.assertEquals(RuleState.DISABLED, response.state());
- Assertions.assertEquals("hgsqtnqsktxq", response.comment());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToActivateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToActivateWithResponseMockTests.java
deleted file mode 100644
index 56338bb46e38a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToActivateWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateResourceGroupLevelStateToActivateWithResponseMockTests {
- @Test
- public void testUpdateResourceGroupLevelStateToActivateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateResourceGroupLevelStateToActivateWithResponse(
- "x", "mdbgi", "ehfgsm", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToDismissWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToDismissWithResponseMockTests.java
deleted file mode 100644
index 74577e5541012..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToDismissWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateResourceGroupLevelStateToDismissWithResponseMockTests {
- @Test
- public void testUpdateResourceGroupLevelStateToDismissWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateResourceGroupLevelStateToDismissWithResponse(
- "dfddtullygtav", "zcxdfweapyfmlxrl", "phraspifleim", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToInProgressWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToInProgressWithResponseMockTests.java
deleted file mode 100644
index 37052ed1b3def..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToInProgressWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateResourceGroupLevelStateToInProgressWithResponseMockTests {
- @Test
- public void testUpdateResourceGroupLevelStateToInProgressWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateResourceGroupLevelStateToInProgressWithResponse(
- "rjuqbpxtokl", "mtznpaxwfqtyyqi", "rcltungbsoljckm", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToResolveWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToResolveWithResponseMockTests.java
deleted file mode 100644
index f8a4d2f86b455..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateResourceGroupLevelStateToResolveWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateResourceGroupLevelStateToResolveWithResponseMockTests {
- @Test
- public void testUpdateResourceGroupLevelStateToResolveWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateResourceGroupLevelStateToResolveWithResponse(
- "d", "ffhsdpzouhk", "qrxqwqnjx", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToActivateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToActivateWithResponseMockTests.java
deleted file mode 100644
index 0830b07b98ace..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToActivateWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateSubscriptionLevelStateToActivateWithResponseMockTests {
- @Test
- public void testUpdateSubscriptionLevelStateToActivateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateSubscriptionLevelStateToActivateWithResponse("cn", "rfijhggabq", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToDismissWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToDismissWithResponseMockTests.java
deleted file mode 100644
index 972e6b0487e39..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToDismissWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateSubscriptionLevelStateToDismissWithResponseMockTests {
- @Test
- public void testUpdateSubscriptionLevelStateToDismissWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateSubscriptionLevelStateToDismissWithResponse(
- "tkwppthuzd", "rmimrljdpoqfxyem", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToInProgressWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToInProgressWithResponseMockTests.java
deleted file mode 100644
index 826f8a062c3db..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToInProgressWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateSubscriptionLevelStateToInProgressWithResponseMockTests {
- @Test
- public void testUpdateSubscriptionLevelStateToInProgressWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateSubscriptionLevelStateToInProgressWithResponse("gamk", "ilir", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToResolveWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToResolveWithResponseMockTests.java
deleted file mode 100644
index ae393fa922962..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AlertsUpdateSubscriptionLevelStateToResolveWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AlertsUpdateSubscriptionLevelStateToResolveWithResponseMockTests {
- @Test
- public void testUpdateSubscriptionLevelStateToResolveWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .alerts()
- .updateSubscriptionLevelStateToResolveWithResponse(
- "kftbaewhte", "loamfmxtllfltym", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsGetWithResponseMockTests.java
deleted file mode 100644
index 815260eb5f732..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AllowedConnectionsResource;
-import com.azure.resourcemanager.security.models.ConnectionType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AllowedConnectionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"calculatedDateTime\":\"2021-09-15T08:15:42Z\",\"connectableResources\":[]},\"location\":\"ktyhhmvfxl\",\"id\":\"pjajodmkrrwe\",\"name\":\"gqvqokqluj\",\"type\":\"gira\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AllowedConnectionsResource response =
- manager
- .allowedConnections()
- .getWithResponse(
- "rouigdmfivjqte", "dqqigdydkghpc", ConnectionType.EXTERNAL, com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListByHomeRegionMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListByHomeRegionMockTests.java
deleted file mode 100644
index a6389f1b0cd49..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListByHomeRegionMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AllowedConnectionsResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AllowedConnectionsListByHomeRegionMockTests {
- @Test
- public void testListByHomeRegion() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"calculatedDateTime\":\"2021-09-16T09:02:02Z\",\"connectableResources\":[]},\"location\":\"xsure\",\"id\":\"qrshzzbgullcxiq\",\"name\":\"zjk\",\"type\":\"xdupnamg\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.allowedConnections().listByHomeRegion("xdede", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListMockTests.java
deleted file mode 100644
index cfa7d53f20db1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AllowedConnectionsResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AllowedConnectionsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"calculatedDateTime\":\"2021-12-05T18:52:31Z\",\"connectableResources\":[]},\"location\":\"itwhrjsdmmazdnck\",\"id\":\"dbjp\",\"name\":\"lhzqpxzbawkikcdg\",\"type\":\"hbssdpjeyo\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.allowedConnections().list(com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListTests.java
deleted file mode 100644
index 35d06482012af..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AllowedConnectionsList;
-
-public final class AllowedConnectionsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AllowedConnectionsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"calculatedDateTime\":\"2021-08-31T13:06:45Z\",\"connectableResources\":[]},\"location\":\"lgehg\",\"id\":\"pipifh\",\"name\":\"f\",\"type\":\"oajvgcxtxjcs\"},{\"properties\":{\"calculatedDateTime\":\"2021-01-13T18:57:24Z\",\"connectableResources\":[]},\"location\":\"ltugsresmkssjhoi\",\"id\":\"txfkfweg\",\"name\":\"rhptilluc\",\"type\":\"iqtgdqoh\"},{\"properties\":{\"calculatedDateTime\":\"2021-03-25T09:14:26Z\",\"connectableResources\":[]},\"location\":\"riz\",\"id\":\"tpwb\",\"name\":\"a\",\"type\":\"llibphbqzmizak\"},{\"properties\":{\"calculatedDateTime\":\"2021-02-12T00:07:30Z\",\"connectableResources\":[]},\"location\":\"p\",\"id\":\"n\",\"name\":\"zhajoylhjlmuo\",\"type\":\"xprimrsop\"}],\"nextLink\":\"ecj\"}")
- .toObject(AllowedConnectionsList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AllowedConnectionsList model = new AllowedConnectionsList();
- model = BinaryData.fromObject(model).toObject(AllowedConnectionsList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsResourceInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsResourceInnerTests.java
deleted file mode 100644
index ea05528b8a627..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsResourceInnerTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AllowedConnectionsResourceInner;
-
-public final class AllowedConnectionsResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AllowedConnectionsResourceInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"calculatedDateTime\":\"2021-01-03T12:26:20Z\",\"connectableResources\":[{\"id\":\"vasylwxdzau\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]},{\"id\":\"ohguuf\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]},{\"id\":\"yjathwtzo\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]},{\"id\":\"mwmdxmebwjscjpa\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]}]},\"location\":\"eabfqxnm\",\"id\":\"mqt\",\"name\":\"bxyijddtvq\",\"type\":\"ttadijae\"}")
- .toObject(AllowedConnectionsResourceInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AllowedConnectionsResourceInner model = new AllowedConnectionsResourceInner();
- model = BinaryData.fromObject(model).toObject(AllowedConnectionsResourceInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsResourcePropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsResourcePropertiesTests.java
deleted file mode 100644
index a64ed5ef95662..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowedConnectionsResourcePropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AllowedConnectionsResourceProperties;
-
-public final class AllowedConnectionsResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AllowedConnectionsResourceProperties model =
- BinaryData
- .fromString(
- "{\"calculatedDateTime\":\"2021-07-31T17:06:26Z\",\"connectableResources\":[{\"id\":\"eekpndz\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]},{\"id\":\"qmeqwigpibudqwyx\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]},{\"id\":\"mzznrtffyaqitmhh\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]},{\"id\":\"hvseufuqyrx\",\"inboundConnectedResources\":[],\"outboundConnectedResources\":[]}]}")
- .toObject(AllowedConnectionsResourceProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AllowedConnectionsResourceProperties model = new AllowedConnectionsResourceProperties();
- model = BinaryData.fromObject(model).toObject(AllowedConnectionsResourceProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowlistCustomAlertRuleTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowlistCustomAlertRuleTests.java
deleted file mode 100644
index e48a91350e3fc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AllowlistCustomAlertRuleTests.java
+++ /dev/null
@@ -1,34 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AllowlistCustomAlertRule;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AllowlistCustomAlertRuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AllowlistCustomAlertRule model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"AllowlistCustomAlertRule\",\"allowlistValues\":[\"vkwlzuvccfwnf\",\"bacfionlebxetq\",\"tzxdpnqbqqwx\",\"jfeallnwsub\"],\"valueType\":\"IpCidr\",\"displayName\":\"ampmngnz\",\"description\":\"xaqwoochcbonqv\",\"isEnabled\":false}")
- .toObject(AllowlistCustomAlertRule.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("vkwlzuvccfwnf", model.allowlistValues().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AllowlistCustomAlertRule model =
- new AllowlistCustomAlertRule()
- .withIsEnabled(false)
- .withAllowlistValues(Arrays.asList("vkwlzuvccfwnf", "bacfionlebxetq", "tzxdpnqbqqwx", "jfeallnwsub"));
- model = BinaryData.fromObject(model).toObject(AllowlistCustomAlertRule.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("vkwlzuvccfwnf", model.allowlistValues().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpC2DMessagesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpC2DMessagesNotInAllowedRangeTests.java
deleted file mode 100644
index c139164b01cfc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpC2DMessagesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AmqpC2DMessagesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmqpC2DMessagesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmqpC2DMessagesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"AmqpC2DMessagesNotInAllowedRange\",\"timeWindowSize\":\"PT71H1M20S\",\"minThreshold\":1281785865,\"maxThreshold\":384532828,\"displayName\":\"adppyibn\",\"description\":\"ladywrxwhyd\",\"isEnabled\":false}")
- .toObject(AmqpC2DMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(1281785865, model.minThreshold());
- Assertions.assertEquals(384532828, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT71H1M20S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmqpC2DMessagesNotInAllowedRange model =
- new AmqpC2DMessagesNotInAllowedRange()
- .withIsEnabled(false)
- .withMinThreshold(1281785865)
- .withMaxThreshold(384532828)
- .withTimeWindowSize(Duration.parse("PT71H1M20S"));
- model = BinaryData.fromObject(model).toObject(AmqpC2DMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(1281785865, model.minThreshold());
- Assertions.assertEquals(384532828, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT71H1M20S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpC2DRejectedMessagesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpC2DRejectedMessagesNotInAllowedRangeTests.java
deleted file mode 100644
index ea2027f0ced9a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpC2DRejectedMessagesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AmqpC2DRejectedMessagesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmqpC2DRejectedMessagesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmqpC2DRejectedMessagesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"AmqpC2DRejectedMessagesNotInAllowedRange\",\"timeWindowSize\":\"PT118H2M58S\",\"minThreshold\":1648107284,\"maxThreshold\":1284555207,\"displayName\":\"rfmvlihcvjdrqcrj\",\"description\":\"h\",\"isEnabled\":false}")
- .toObject(AmqpC2DRejectedMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(1648107284, model.minThreshold());
- Assertions.assertEquals(1284555207, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT118H2M58S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmqpC2DRejectedMessagesNotInAllowedRange model =
- new AmqpC2DRejectedMessagesNotInAllowedRange()
- .withIsEnabled(false)
- .withMinThreshold(1648107284)
- .withMaxThreshold(1284555207)
- .withTimeWindowSize(Duration.parse("PT118H2M58S"));
- model = BinaryData.fromObject(model).toObject(AmqpC2DRejectedMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(1648107284, model.minThreshold());
- Assertions.assertEquals(1284555207, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT118H2M58S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpD2CMessagesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpD2CMessagesNotInAllowedRangeTests.java
deleted file mode 100644
index ed3dfea10c4ac..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AmqpD2CMessagesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AmqpD2CMessagesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmqpD2CMessagesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmqpD2CMessagesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"AmqpD2CMessagesNotInAllowedRange\",\"timeWindowSize\":\"PT179H38M47S\",\"minThreshold\":1851609223,\"maxThreshold\":1126673643,\"displayName\":\"gfxonjtpusllyw\",\"description\":\"tiotzb\",\"isEnabled\":false}")
- .toObject(AmqpD2CMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(1851609223, model.minThreshold());
- Assertions.assertEquals(1126673643, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT179H38M47S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmqpD2CMessagesNotInAllowedRange model =
- new AmqpD2CMessagesNotInAllowedRange()
- .withIsEnabled(false)
- .withMinThreshold(1851609223)
- .withMaxThreshold(1126673643)
- .withTimeWindowSize(Duration.parse("PT179H38M47S"));
- model = BinaryData.fromObject(model).toObject(AmqpD2CMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(1851609223, model.minThreshold());
- Assertions.assertEquals(1126673643, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT179H38M47S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionOffboardingsDeleteWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionOffboardingsDeleteWithResponseMockTests.java
deleted file mode 100644
index 55ec6a654fb69..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionOffboardingsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApiCollectionOffboardingsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .apiCollectionOffboardings()
- .deleteWithResponse("rnrnjrcufmbgacnr", "fdtncmspsanma", "eubkqiqmlf", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionOnboardingsCreateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionOnboardingsCreateWithResponseMockTests.java
deleted file mode 100644
index 24971fcf7a0ad..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionOnboardingsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ApiCollectionResponse;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApiCollectionOnboardingsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"displayName\":\"xkwyk\",\"additionalData\":{\"ykhkg\":\"ndx\"}},\"id\":\"apvd\",\"name\":\"t\",\"type\":\"peerscd\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ApiCollectionResponse response =
- manager
- .apiCollectionOnboardings()
- .createWithResponse("tkihonikzs", "zfffjilzfbpnt", "gkensckhbmcarmo", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("xkwyk", response.displayName());
- Assertions.assertEquals("ndx", response.additionalData().get("ykhkg"));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionPropertiesTests.java
deleted file mode 100644
index fac7b90d03168..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionPropertiesTests.java
+++ /dev/null
@@ -1,48 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ApiCollectionProperties;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiCollectionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiCollectionProperties model =
- BinaryData
- .fromString(
- "{\"displayName\":\"y\",\"additionalData\":{\"fkak\":\"mwineof\",\"knyuxgvttxpn\":\"oldtvevboclzhz\",\"ids\":\"upzaamrdixtre\",\"l\":\"yskbruff\"}}")
- .toObject(ApiCollectionProperties.class);
- Assertions.assertEquals("y", model.displayName());
- Assertions.assertEquals("mwineof", model.additionalData().get("fkak"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiCollectionProperties model =
- new ApiCollectionProperties()
- .withDisplayName("y")
- .withAdditionalData(
- mapOf(
- "fkak", "mwineof", "knyuxgvttxpn", "oldtvevboclzhz", "ids", "upzaamrdixtre", "l", "yskbruff"));
- model = BinaryData.fromObject(model).toObject(ApiCollectionProperties.class);
- Assertions.assertEquals("y", model.displayName());
- Assertions.assertEquals("mwineof", model.additionalData().get("fkak"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionResponseInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionResponseInnerTests.java
deleted file mode 100644
index 4e134a165c2d7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionResponseInnerTests.java
+++ /dev/null
@@ -1,46 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ApiCollectionResponseInner;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiCollectionResponseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiCollectionResponseInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"displayName\":\"zealbmqkyo\",\"additionalData\":{\"mbtsuahxsg\":\"vf\",\"wsdrnpxqwodif\":\"jcmmzrrscub\"}},\"id\":\"jxcjrmmuabwib\",\"name\":\"jogjonmc\",\"type\":\"e\"}")
- .toObject(ApiCollectionResponseInner.class);
- Assertions.assertEquals("zealbmqkyo", model.displayName());
- Assertions.assertEquals("vf", model.additionalData().get("mbtsuahxsg"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiCollectionResponseInner model =
- new ApiCollectionResponseInner()
- .withDisplayName("zealbmqkyo")
- .withAdditionalData(mapOf("mbtsuahxsg", "vf", "wsdrnpxqwodif", "jcmmzrrscub"));
- model = BinaryData.fromObject(model).toObject(ApiCollectionResponseInner.class);
- Assertions.assertEquals("zealbmqkyo", model.displayName());
- Assertions.assertEquals("vf", model.additionalData().get("mbtsuahxsg"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionResponseListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionResponseListTests.java
deleted file mode 100644
index 781622c42653a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionResponseListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ApiCollectionResponseList;
-
-public final class ApiCollectionResponseListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiCollectionResponseList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"displayName\":\"yjq\",\"additionalData\":{}},\"id\":\"kfnozoeoqbvj\",\"name\":\"vefgwbmqjchntas\",\"type\":\"ay\"}],\"nextLink\":\"b\"}")
- .toObject(ApiCollectionResponseList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiCollectionResponseList model = new ApiCollectionResponseList();
- model = BinaryData.fromObject(model).toObject(ApiCollectionResponseList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionsGetWithResponseMockTests.java
deleted file mode 100644
index 6bc6da68571fc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ApiCollectionResponse;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApiCollectionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"displayName\":\"oewyhxessmvrkd\",\"additionalData\":{\"mdsesbrujbjpp\":\"eqfbd\"}},\"id\":\"ktlpdibfmthieat\",\"name\":\"ejrnmi\",\"type\":\"zqpl\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ApiCollectionResponse response =
- manager
- .apiCollections()
- .getWithResponse("ortbnukkfax", "svbxxyjisskob", "ocl", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("oewyhxessmvrkd", response.displayName());
- Assertions.assertEquals("eqfbd", response.additionalData().get("mdsesbrujbjpp"));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionsListMockTests.java
deleted file mode 100644
index da73e2c4bedba..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApiCollectionsListMockTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ApiCollectionResponse;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApiCollectionsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"displayName\":\"zwhpjlwyxedz\",\"additionalData\":{\"ckewvm\":\"rfo\",\"utxfptofhgnuyw\":\"ifopxfjjtpdyz\"}},\"id\":\"zygvadgaaqwvkgjp\",\"name\":\"tpmpvd\",\"type\":\"ogehluf\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.apiCollections().list("gyedzfzqi", "uqhtdereuno", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("zwhpjlwyxedz", response.iterator().next().displayName());
- Assertions.assertEquals("rfo", response.iterator().next().additionalData().get("ckewvm"));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationInnerTests.java
deleted file mode 100644
index 3fd094f1050a2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationInnerTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ApplicationInner;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"displayName\":\"cfehuwaoagu\",\"description\":\"cqlliz\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[\"datacsjvhrwef\"]},\"id\":\"kwqejpmvsseh\",\"name\":\"epwamcxtcz\",\"type\":\"upeuknijduyye\"}")
- .toObject(ApplicationInner.class);
- Assertions.assertEquals("cfehuwaoagu", model.displayName());
- Assertions.assertEquals("cqlliz", model.description());
- Assertions.assertEquals(ApplicationSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationInner model =
- new ApplicationInner()
- .withDisplayName("cfehuwaoagu")
- .withDescription("cqlliz")
- .withSourceResourceType(ApplicationSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList("datacsjvhrwef"));
- model = BinaryData.fromObject(model).toObject(ApplicationInner.class);
- Assertions.assertEquals("cfehuwaoagu", model.displayName());
- Assertions.assertEquals("cqlliz", model.description());
- Assertions.assertEquals(ApplicationSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index a741d734b6368..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,78 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Application;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationOperationsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"displayName\":\"mgqbgcxhnq\",\"description\":\"zxlermkmer\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[\"datakirhn\",\"dataupkcbkfukdljqnvt\"]},\"id\":\"dydshk\",\"name\":\"afyalo\",\"type\":\"ww\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Application response =
- manager
- .applicationOperations()
- .define("ntojovfnybydhuih")
- .withDisplayName("wud")
- .withDescription("aorhjkehwvumo")
- .withSourceResourceType(ApplicationSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList("datarcamqp", "datal", "databrugejcvjkjycz"))
- .create();
-
- Assertions.assertEquals("mgqbgcxhnq", response.displayName());
- Assertions.assertEquals("zxlermkmer", response.description());
- Assertions.assertEquals(ApplicationSourceResourceType.ASSESSMENTS, response.sourceResourceType());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsDeleteWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsDeleteWithResponseMockTests.java
deleted file mode 100644
index b25e90758dc60..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationOperationsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.applicationOperations().deleteWithResponse("i", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsGetWithResponseMockTests.java
deleted file mode 100644
index 4e24d91a35e02..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationOperationsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Application;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationOperationsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"displayName\":\"nmpaklwzlweepr\",\"description\":\"jzltkaszfjs\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[\"databduxapgrcq\",\"databmvrdjomlnwsbv\",\"datadls\",\"datalxkqesdfeds\"]},\"id\":\"gzancoinmphy\",\"name\":\"cqidkltvdhqnufbx\",\"type\":\"e\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Application response =
- manager.applicationOperations().getWithResponse("wrqkza", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("nmpaklwzlweepr", response.displayName());
- Assertions.assertEquals("jzltkaszfjs", response.description());
- Assertions.assertEquals(ApplicationSourceResourceType.ASSESSMENTS, response.sourceResourceType());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationPropertiesTests.java
deleted file mode 100644
index c0f1478e494cb..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationPropertiesTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ApplicationProperties;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApplicationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationProperties model =
- BinaryData
- .fromString(
- "{\"displayName\":\"ydjfb\",\"description\":\"yv\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[\"datalrtywikdmhlakuf\",\"datagbhgau\",\"datacdixmx\"]}")
- .toObject(ApplicationProperties.class);
- Assertions.assertEquals("ydjfb", model.displayName());
- Assertions.assertEquals("yv", model.description());
- Assertions.assertEquals(ApplicationSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationProperties model =
- new ApplicationProperties()
- .withDisplayName("ydjfb")
- .withDescription("yv")
- .withSourceResourceType(ApplicationSourceResourceType.ASSESSMENTS)
- .withConditionSets(Arrays.asList("datalrtywikdmhlakuf", "datagbhgau", "datacdixmx"));
- model = BinaryData.fromObject(model).toObject(ApplicationProperties.class);
- Assertions.assertEquals("ydjfb", model.displayName());
- Assertions.assertEquals("yv", model.description());
- Assertions.assertEquals(ApplicationSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationsListMockTests.java
deleted file mode 100644
index de04b9c78cad0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationsListMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Application;
-import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ApplicationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"displayName\":\"zgbjbhrpgi\",\"description\":\"ttcucrcm\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[\"dataxp\",\"datajiwifhbksldttoh\"]},\"id\":\"clnaihtg\",\"name\":\"iqikvllr\",\"type\":\"tpmglxkoikmtr\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.applications().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("zgbjbhrpgi", response.iterator().next().displayName());
- Assertions.assertEquals("ttcucrcm", response.iterator().next().description());
- Assertions
- .assertEquals(ApplicationSourceResourceType.ASSESSMENTS, response.iterator().next().sourceResourceType());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationsListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationsListTests.java
deleted file mode 100644
index a666e51ec3cef..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ApplicationsListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ApplicationsList;
-
-public final class ApplicationsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApplicationsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"displayName\":\"fbwqrooht\",\"description\":\"vmaonurjt\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[]},\"id\":\"ghihpvecms\",\"name\":\"clbl\",\"type\":\"jxl\"},{\"properties\":{\"displayName\":\"juscvsfx\",\"description\":\"ctmgxuupbezqccy\",\"sourceResourceType\":\"Assessments\",\"conditionSets\":[]},\"id\":\"tce\",\"name\":\"kdqkkyihzt\",\"type\":\"eq\"}],\"nextLink\":\"qzgwldoychil\"}")
- .toObject(ApplicationsList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApplicationsList model = new ApplicationsList();
- model = BinaryData.fromObject(model).toObject(ApplicationsList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AscLocationInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AscLocationInnerTests.java
deleted file mode 100644
index ca0b19baf3736..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AscLocationInnerTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AscLocationInner;
-
-public final class AscLocationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AscLocationInner model =
- BinaryData
- .fromString(
- "{\"properties\":\"datasdqrhzoymibmrq\",\"id\":\"ibahwflus\",\"name\":\"dtmhrkwofyyvoqa\",\"type\":\"piexpbtgiw\"}")
- .toObject(AscLocationInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AscLocationInner model = new AscLocationInner().withProperties("datasdqrhzoymibmrq");
- model = BinaryData.fromObject(model).toObject(AscLocationInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AscLocationListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AscLocationListTests.java
deleted file mode 100644
index acef2fad6e2ac..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AscLocationListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AscLocationList;
-
-public final class AscLocationListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AscLocationList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":\"datasmond\",\"id\":\"mquxvypo\",\"name\":\"gkopkwhojvpajqgx\",\"type\":\"smocmbq\"},{\"properties\":\"datavmkcx\",\"id\":\"zapvhelx\",\"name\":\"rgly\",\"type\":\"tddckcb\"}],\"nextLink\":\"ejrjxgciqibrho\"}")
- .toObject(AscLocationList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AscLocationList model = new AscLocationList();
- model = BinaryData.fromObject(model).toObject(AscLocationList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentLinksTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentLinksTests.java
deleted file mode 100644
index c415b483f63ca..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentLinksTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AssessmentLinks;
-
-public final class AssessmentLinksTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AssessmentLinks model =
- BinaryData.fromString("{\"azurePortalUri\":\"ycavodggxdbees\"}").toObject(AssessmentLinks.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AssessmentLinks model = new AssessmentLinks();
- model = BinaryData.fromObject(model).toObject(AssessmentLinks.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index b7eb6ccb24a28..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AssessmentsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .assessments()
- .deleteByResourceGroupWithResponse("dtmvecdhdyswcrp", "veajczxvlgsrg", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentsMetadatasDeleteInSubscriptionWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentsMetadatasDeleteInSubscriptionWithResponseMockTests.java
deleted file mode 100644
index a3c54e4ccd1a3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AssessmentsMetadatasDeleteInSubscriptionWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AssessmentsMetadatasDeleteInSubscriptionWithResponseMockTests {
- @Test
- public void testDeleteInSubscriptionWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.assessmentsMetadatas().deleteInSubscriptionWithResponse("buwvorba", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AtaExternalSecuritySolutionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AtaExternalSecuritySolutionTests.java
deleted file mode 100644
index ad2a34e9f49a2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AtaExternalSecuritySolutionTests.java
+++ /dev/null
@@ -1,43 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AtaExternalSecuritySolution;
-import com.azure.resourcemanager.security.models.AtaSolutionProperties;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class AtaExternalSecuritySolutionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AtaExternalSecuritySolution model =
- BinaryData
- .fromString(
- "{\"kind\":\"ATA\",\"properties\":{\"lastEventReceived\":\"gv\",\"deviceVendor\":\"e\",\"deviceType\":\"uoqujlyeg\",\"workspace\":{\"id\":\"nigflqqbtnyj\"},\"\":{\"vabm\":\"dataxdb\",\"wuhvaj\":\"datamsxbaevwjcnkott\",\"wjiqullqxb\":\"dataailfemjjzak\"}},\"location\":\"vr\",\"id\":\"cm\",\"name\":\"erndbrnyeofltfnn\",\"type\":\"rkadjfynnfmuiiir\"}")
- .toObject(AtaExternalSecuritySolution.class);
- Assertions.assertEquals("e", model.properties().deviceVendor());
- Assertions.assertEquals("uoqujlyeg", model.properties().deviceType());
- Assertions.assertEquals("nigflqqbtnyj", model.properties().workspace().id());
- Assertions.assertEquals("gv", model.properties().lastEventReceived());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AtaExternalSecuritySolution model =
- new AtaExternalSecuritySolution()
- .withProperties(
- new AtaSolutionProperties()
- .withDeviceVendor("e")
- .withDeviceType("uoqujlyeg")
- .withWorkspace(new ConnectedWorkspace().withId("nigflqqbtnyj"))
- .withLastEventReceived("gv"));
- model = BinaryData.fromObject(model).toObject(AtaExternalSecuritySolution.class);
- Assertions.assertEquals("e", model.properties().deviceVendor());
- Assertions.assertEquals("uoqujlyeg", model.properties().deviceType());
- Assertions.assertEquals("nigflqqbtnyj", model.properties().workspace().id());
- Assertions.assertEquals("gv", model.properties().lastEventReceived());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AtaSolutionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AtaSolutionPropertiesTests.java
deleted file mode 100644
index a820c548dcf93..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AtaSolutionPropertiesTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AtaSolutionProperties;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class AtaSolutionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AtaSolutionProperties model =
- BinaryData
- .fromString(
- "{\"lastEventReceived\":\"fohyk\",\"deviceVendor\":\"xbbcbrw\",\"deviceType\":\"u\",\"workspace\":{\"id\":\"jizbeew\"},\"\":{\"juyrsrziuctixg\":\"datamrvz\",\"uifr\":\"datad\"}}")
- .toObject(AtaSolutionProperties.class);
- Assertions.assertEquals("xbbcbrw", model.deviceVendor());
- Assertions.assertEquals("u", model.deviceType());
- Assertions.assertEquals("jizbeew", model.workspace().id());
- Assertions.assertEquals("fohyk", model.lastEventReceived());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AtaSolutionProperties model =
- new AtaSolutionProperties()
- .withDeviceVendor("xbbcbrw")
- .withDeviceType("u")
- .withWorkspace(new ConnectedWorkspace().withId("jizbeew"))
- .withLastEventReceived("fohyk");
- model = BinaryData.fromObject(model).toObject(AtaSolutionProperties.class);
- Assertions.assertEquals("xbbcbrw", model.deviceVendor());
- Assertions.assertEquals("u", model.deviceType());
- Assertions.assertEquals("jizbeew", model.workspace().id());
- Assertions.assertEquals("fohyk", model.lastEventReceived());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AuthenticationDetailsPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AuthenticationDetailsPropertiesTests.java
deleted file mode 100644
index 590dc411410cd..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AuthenticationDetailsPropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AuthenticationDetailsProperties;
-
-public final class AuthenticationDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AuthenticationDetailsProperties model =
- BinaryData
- .fromString(
- "{\"authenticationType\":\"AuthenticationDetailsProperties\",\"authenticationProvisioningState\":\"Valid\",\"grantedPermissions\":[\"AWS::AWSSecurityHubReadOnlyAccess\",\"AWS::AmazonSSMAutomationRole\",\"AWS::SecurityAudit\"]}")
- .toObject(AuthenticationDetailsProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AuthenticationDetailsProperties model = new AuthenticationDetailsProperties();
- model = BinaryData.fromObject(model).toObject(AuthenticationDetailsProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingInnerTests.java
deleted file mode 100644
index dd38cf540c13b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingInnerTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutoProvisioningSettingInner;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutoProvisioningSettingInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutoProvisioningSettingInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"autoProvision\":\"On\"},\"id\":\"ikh\",\"name\":\"yf\",\"type\":\"hdgqggeb\"}")
- .toObject(AutoProvisioningSettingInner.class);
- Assertions.assertEquals(AutoProvision.ON, model.autoProvision());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutoProvisioningSettingInner model = new AutoProvisioningSettingInner().withAutoProvision(AutoProvision.ON);
- model = BinaryData.fromObject(model).toObject(AutoProvisioningSettingInner.class);
- Assertions.assertEquals(AutoProvision.ON, model.autoProvision());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingListTests.java
deleted file mode 100644
index 00d317e22087d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingListTests.java
+++ /dev/null
@@ -1,38 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutoProvisioningSettingInner;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.AutoProvisioningSettingList;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutoProvisioningSettingListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutoProvisioningSettingList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"autoProvision\":\"On\"},\"id\":\"irels\",\"name\":\"eae\",\"type\":\"wabfatkl\"},{\"properties\":{\"autoProvision\":\"Off\"},\"id\":\"bjhwuaan\",\"name\":\"zjosp\",\"type\":\"youlp\"},{\"properties\":{\"autoProvision\":\"On\"},\"id\":\"xagl\",\"name\":\"vimjwos\",\"type\":\"tx\"}],\"nextLink\":\"cskfcktqumiekk\"}")
- .toObject(AutoProvisioningSettingList.class);
- Assertions.assertEquals(AutoProvision.ON, model.value().get(0).autoProvision());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutoProvisioningSettingList model =
- new AutoProvisioningSettingList()
- .withValue(
- Arrays
- .asList(
- new AutoProvisioningSettingInner().withAutoProvision(AutoProvision.ON),
- new AutoProvisioningSettingInner().withAutoProvision(AutoProvision.OFF),
- new AutoProvisioningSettingInner().withAutoProvision(AutoProvision.ON)));
- model = BinaryData.fromObject(model).toObject(AutoProvisioningSettingList.class);
- Assertions.assertEquals(AutoProvision.ON, model.value().get(0).autoProvision());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingPropertiesTests.java
deleted file mode 100644
index 4c07192125e5f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingPropertiesTests.java
+++ /dev/null
@@ -1,27 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutoProvisioningSettingProperties;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutoProvisioningSettingPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutoProvisioningSettingProperties model =
- BinaryData.fromString("{\"autoProvision\":\"Off\"}").toObject(AutoProvisioningSettingProperties.class);
- Assertions.assertEquals(AutoProvision.OFF, model.autoProvision());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutoProvisioningSettingProperties model =
- new AutoProvisioningSettingProperties().withAutoProvision(AutoProvision.OFF);
- model = BinaryData.fromObject(model).toObject(AutoProvisioningSettingProperties.class);
- Assertions.assertEquals(AutoProvision.OFF, model.autoProvision());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsCreateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsCreateWithResponseMockTests.java
deleted file mode 100644
index b02a8a5568b24..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,68 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.AutoProvisioningSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutoProvisioningSettingsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"autoProvision\":\"On\"},\"id\":\"qady\",\"name\":\"zjahwriuomz\",\"type\":\"zfkiceevsaaxwsp\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AutoProvisioningSetting response =
- manager.autoProvisioningSettings().define("ybsjrc").withAutoProvision(AutoProvision.OFF).create();
-
- Assertions.assertEquals(AutoProvision.ON, response.autoProvision());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsGetWithResponseMockTests.java
deleted file mode 100644
index 418e8ce8f96f5..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.AutoProvisioningSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutoProvisioningSettingsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"autoProvision\":\"Off\"},\"id\":\"ckhmocgjshgouarh\",\"name\":\"vi\",\"type\":\"qqgglj\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AutoProvisioningSetting response =
- manager
- .autoProvisioningSettings()
- .getWithResponse("ynbpvzlqywauy", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(AutoProvision.OFF, response.autoProvision());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsListMockTests.java
deleted file mode 100644
index a9bf5542c1392..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutoProvisioningSettingsListMockTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.AutoProvisioningSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutoProvisioningSettingsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"autoProvision\":\"On\"},\"id\":\"dneyttlr\",\"name\":\"xivcbkutpumlt\",\"type\":\"jflu\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.autoProvisioningSettings().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(AutoProvision.ON, response.iterator().next().autoProvision());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionEventHubTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionEventHubTests.java
deleted file mode 100644
index d9cd34116ccf4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionEventHubTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationActionEventHub;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationActionEventHubTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationActionEventHub model =
- BinaryData
- .fromString(
- "{\"actionType\":\"EventHub\",\"eventHubResourceId\":\"gvpyigdaqqilzdc\",\"sasPolicyName\":\"wjoe\",\"connectionString\":\"ngucaifpaurww\"}")
- .toObject(AutomationActionEventHub.class);
- Assertions.assertEquals("gvpyigdaqqilzdc", model.eventHubResourceId());
- Assertions.assertEquals("ngucaifpaurww", model.connectionString());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationActionEventHub model =
- new AutomationActionEventHub()
- .withEventHubResourceId("gvpyigdaqqilzdc")
- .withConnectionString("ngucaifpaurww");
- model = BinaryData.fromObject(model).toObject(AutomationActionEventHub.class);
- Assertions.assertEquals("gvpyigdaqqilzdc", model.eventHubResourceId());
- Assertions.assertEquals("ngucaifpaurww", model.connectionString());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionLogicAppTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionLogicAppTests.java
deleted file mode 100644
index bbf764644c447..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionLogicAppTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationActionLogicApp;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationActionLogicAppTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationActionLogicApp model =
- BinaryData
- .fromString("{\"actionType\":\"LogicApp\",\"logicAppResourceId\":\"bqc\",\"uri\":\"jfgxxsaetg\"}")
- .toObject(AutomationActionLogicApp.class);
- Assertions.assertEquals("bqc", model.logicAppResourceId());
- Assertions.assertEquals("jfgxxsaetg", model.uri());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationActionLogicApp model =
- new AutomationActionLogicApp().withLogicAppResourceId("bqc").withUri("jfgxxsaetg");
- model = BinaryData.fromObject(model).toObject(AutomationActionLogicApp.class);
- Assertions.assertEquals("bqc", model.logicAppResourceId());
- Assertions.assertEquals("jfgxxsaetg", model.uri());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionTests.java
deleted file mode 100644
index 8b8800223b67f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationAction;
-
-public final class AutomationActionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationAction model =
- BinaryData.fromString("{\"actionType\":\"AutomationAction\"}").toObject(AutomationAction.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationAction model = new AutomationAction();
- model = BinaryData.fromObject(model).toObject(AutomationAction.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionWorkspaceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionWorkspaceTests.java
deleted file mode 100644
index 4f0043678db04..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationActionWorkspaceTests.java
+++ /dev/null
@@ -1,27 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationActionWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationActionWorkspaceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationActionWorkspace model =
- BinaryData
- .fromString("{\"actionType\":\"Workspace\",\"workspaceResourceId\":\"l\"}")
- .toObject(AutomationActionWorkspace.class);
- Assertions.assertEquals("l", model.workspaceResourceId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationActionWorkspace model = new AutomationActionWorkspace().withWorkspaceResourceId("l");
- model = BinaryData.fromObject(model).toObject(AutomationActionWorkspace.class);
- Assertions.assertEquals("l", model.workspaceResourceId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationInnerTests.java
deleted file mode 100644
index a3f329e64d640..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationInnerTests.java
+++ /dev/null
@@ -1,79 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutomationInner;
-import com.azure.resourcemanager.security.models.AutomationAction;
-import com.azure.resourcemanager.security.models.AutomationScope;
-import com.azure.resourcemanager.security.models.AutomationSource;
-import com.azure.resourcemanager.security.models.EventSource;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"description\":\"opqgikyzirtxdyux\",\"isEnabled\":true,\"scopes\":[{\"description\":\"sewgioilqukr\",\"scopePath\":\"xtqmieoxor\"},{\"description\":\"ufhyaomtbgh\",\"scopePath\":\"vgrvkffo\"}],\"sources\":[{\"eventSource\":\"Alerts\",\"ruleSets\":[]}],\"actions\":[{\"actionType\":\"AutomationAction\"},{\"actionType\":\"AutomationAction\"},{\"actionType\":\"AutomationAction\"},{\"actionType\":\"AutomationAction\"}]},\"location\":\"bgj\",\"tags\":{\"ovwxnbkfezzxsc\":\"umvfclu\",\"omvzzbtd\":\"hwzdgirujbz\",\"yujviylwdshfssn\":\"qvpn\"},\"id\":\"bgye\",\"name\":\"rymsgaojfmw\",\"type\":\"cotmr\"}")
- .toObject(AutomationInner.class);
- Assertions.assertEquals("bgj", model.location());
- Assertions.assertEquals("umvfclu", model.tags().get("ovwxnbkfezzxsc"));
- Assertions.assertEquals("opqgikyzirtxdyux", model.description());
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals("sewgioilqukr", model.scopes().get(0).description());
- Assertions.assertEquals("xtqmieoxor", model.scopes().get(0).scopePath());
- Assertions.assertEquals(EventSource.ALERTS, model.sources().get(0).eventSource());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationInner model =
- new AutomationInner()
- .withLocation("bgj")
- .withTags(mapOf("ovwxnbkfezzxsc", "umvfclu", "omvzzbtd", "hwzdgirujbz", "yujviylwdshfssn", "qvpn"))
- .withDescription("opqgikyzirtxdyux")
- .withIsEnabled(true)
- .withScopes(
- Arrays
- .asList(
- new AutomationScope().withDescription("sewgioilqukr").withScopePath("xtqmieoxor"),
- new AutomationScope().withDescription("ufhyaomtbgh").withScopePath("vgrvkffo")))
- .withSources(
- Arrays
- .asList(
- new AutomationSource().withEventSource(EventSource.ALERTS).withRuleSets(Arrays.asList())))
- .withActions(
- Arrays
- .asList(
- new AutomationAction(),
- new AutomationAction(),
- new AutomationAction(),
- new AutomationAction()));
- model = BinaryData.fromObject(model).toObject(AutomationInner.class);
- Assertions.assertEquals("bgj", model.location());
- Assertions.assertEquals("umvfclu", model.tags().get("ovwxnbkfezzxsc"));
- Assertions.assertEquals("opqgikyzirtxdyux", model.description());
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals("sewgioilqukr", model.scopes().get(0).description());
- Assertions.assertEquals("xtqmieoxor", model.scopes().get(0).scopePath());
- Assertions.assertEquals(EventSource.ALERTS, model.sources().get(0).eventSource());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationListTests.java
deleted file mode 100644
index 0103de6de2284..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationListTests.java
+++ /dev/null
@@ -1,85 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutomationInner;
-import com.azure.resourcemanager.security.models.AutomationList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"description\":\"jpqqmted\",\"isEnabled\":false,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"hyeozphvwau\",\"tags\":{\"gupkvipmdscwxq\":\"c\"},\"id\":\"pevzhfst\",\"name\":\"txhojujb\",\"type\":\"pelmcuvhixbjxyf\"},{\"properties\":{\"description\":\"lrcoolsttpki\",\"isEnabled\":false,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"jrywvtylbfpnc\",\"tags\":{\"cbihwqk\":\"oiwiithtywub\",\"umwctondz\":\"fdntwjchrdgoih\"},\"id\":\"luudfdlwggytsb\",\"name\":\"tov\",\"type\":\"tgseinqfiufxqkn\"},{\"properties\":{\"description\":\"gnepttwqmsni\",\"isEnabled\":false,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"nrojlpijnkr\",\"tags\":{\"nasx\":\"ddhcratizzr\"},\"id\":\"ft\",\"name\":\"zq\",\"type\":\"zh\"},{\"properties\":{\"description\":\"esgogc\",\"isEnabled\":true,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"krlgnyhm\",\"tags\":{\"thrrgh\":\"xkk\",\"gf\":\"jbdhqxvc\"},\"id\":\"pdso\",\"name\":\"bshrnsvbuswd\",\"type\":\"z\"}],\"nextLink\":\"bycnunvjsrtkf\"}")
- .toObject(AutomationList.class);
- Assertions.assertEquals("hyeozphvwau", model.value().get(0).location());
- Assertions.assertEquals("c", model.value().get(0).tags().get("gupkvipmdscwxq"));
- Assertions.assertEquals("jpqqmted", model.value().get(0).description());
- Assertions.assertEquals(false, model.value().get(0).isEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationList model =
- new AutomationList()
- .withValue(
- Arrays
- .asList(
- new AutomationInner()
- .withLocation("hyeozphvwau")
- .withTags(mapOf("gupkvipmdscwxq", "c"))
- .withDescription("jpqqmted")
- .withIsEnabled(false)
- .withScopes(Arrays.asList())
- .withSources(Arrays.asList())
- .withActions(Arrays.asList()),
- new AutomationInner()
- .withLocation("jrywvtylbfpnc")
- .withTags(mapOf("cbihwqk", "oiwiithtywub", "umwctondz", "fdntwjchrdgoih"))
- .withDescription("lrcoolsttpki")
- .withIsEnabled(false)
- .withScopes(Arrays.asList())
- .withSources(Arrays.asList())
- .withActions(Arrays.asList()),
- new AutomationInner()
- .withLocation("nrojlpijnkr")
- .withTags(mapOf("nasx", "ddhcratizzr"))
- .withDescription("gnepttwqmsni")
- .withIsEnabled(false)
- .withScopes(Arrays.asList())
- .withSources(Arrays.asList())
- .withActions(Arrays.asList()),
- new AutomationInner()
- .withLocation("krlgnyhm")
- .withTags(mapOf("thrrgh", "xkk", "gf", "jbdhqxvc"))
- .withDescription("esgogc")
- .withIsEnabled(true)
- .withScopes(Arrays.asList())
- .withSources(Arrays.asList())
- .withActions(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(AutomationList.class);
- Assertions.assertEquals("hyeozphvwau", model.value().get(0).location());
- Assertions.assertEquals("c", model.value().get(0).tags().get("gupkvipmdscwxq"));
- Assertions.assertEquals("jpqqmted", model.value().get(0).description());
- Assertions.assertEquals(false, model.value().get(0).isEnabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationPropertiesTests.java
deleted file mode 100644
index 8e374d423f4cc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationPropertiesTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutomationProperties;
-import com.azure.resourcemanager.security.models.AutomationAction;
-import com.azure.resourcemanager.security.models.AutomationScope;
-import com.azure.resourcemanager.security.models.AutomationSource;
-import com.azure.resourcemanager.security.models.EventSource;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationProperties model =
- BinaryData
- .fromString(
- "{\"description\":\"irctymoxoftpipiw\",\"isEnabled\":false,\"scopes\":[{\"description\":\"a\",\"scopePath\":\"qjlihhyuspska\"},{\"description\":\"vlmfwdgzxulucv\",\"scopePath\":\"mrsreuzvxurisjnh\"},{\"description\":\"txifqj\",\"scopePath\":\"xmrhu\"},{\"description\":\"wp\",\"scopePath\":\"sutrgjup\"}],\"sources\":[{\"eventSource\":\"SubAssessmentsSnapshot\",\"ruleSets\":[]},{\"eventSource\":\"RegulatoryComplianceAssessment\",\"ruleSets\":[]},{\"eventSource\":\"Alerts\",\"ruleSets\":[]},{\"eventSource\":\"RegulatoryComplianceAssessmentSnapshot\",\"ruleSets\":[]}],\"actions\":[{\"actionType\":\"AutomationAction\"},{\"actionType\":\"AutomationAction\"},{\"actionType\":\"AutomationAction\"},{\"actionType\":\"AutomationAction\"}]}")
- .toObject(AutomationProperties.class);
- Assertions.assertEquals("irctymoxoftpipiw", model.description());
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("a", model.scopes().get(0).description());
- Assertions.assertEquals("qjlihhyuspska", model.scopes().get(0).scopePath());
- Assertions.assertEquals(EventSource.SUB_ASSESSMENTS_SNAPSHOT, model.sources().get(0).eventSource());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationProperties model =
- new AutomationProperties()
- .withDescription("irctymoxoftpipiw")
- .withIsEnabled(false)
- .withScopes(
- Arrays
- .asList(
- new AutomationScope().withDescription("a").withScopePath("qjlihhyuspska"),
- new AutomationScope().withDescription("vlmfwdgzxulucv").withScopePath("mrsreuzvxurisjnh"),
- new AutomationScope().withDescription("txifqj").withScopePath("xmrhu"),
- new AutomationScope().withDescription("wp").withScopePath("sutrgjup")))
- .withSources(
- Arrays
- .asList(
- new AutomationSource()
- .withEventSource(EventSource.SUB_ASSESSMENTS_SNAPSHOT)
- .withRuleSets(Arrays.asList()),
- new AutomationSource()
- .withEventSource(EventSource.REGULATORY_COMPLIANCE_ASSESSMENT)
- .withRuleSets(Arrays.asList()),
- new AutomationSource().withEventSource(EventSource.ALERTS).withRuleSets(Arrays.asList()),
- new AutomationSource()
- .withEventSource(EventSource.REGULATORY_COMPLIANCE_ASSESSMENT_SNAPSHOT)
- .withRuleSets(Arrays.asList())))
- .withActions(
- Arrays
- .asList(
- new AutomationAction(),
- new AutomationAction(),
- new AutomationAction(),
- new AutomationAction()));
- model = BinaryData.fromObject(model).toObject(AutomationProperties.class);
- Assertions.assertEquals("irctymoxoftpipiw", model.description());
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("a", model.scopes().get(0).description());
- Assertions.assertEquals("qjlihhyuspska", model.scopes().get(0).scopePath());
- Assertions.assertEquals(EventSource.SUB_ASSESSMENTS_SNAPSHOT, model.sources().get(0).eventSource());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationRuleSetTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationRuleSetTests.java
deleted file mode 100644
index c41517f68b2db..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationRuleSetTests.java
+++ /dev/null
@@ -1,47 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationRuleSet;
-import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
-import com.azure.resourcemanager.security.models.Operator;
-import com.azure.resourcemanager.security.models.PropertyType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationRuleSetTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationRuleSet model =
- BinaryData
- .fromString(
- "{\"rules\":[{\"propertyJPath\":\"hvygdyftumr\",\"propertyType\":\"Boolean\",\"expectedValue\":\"wjslbiwkojgcyzt\",\"operator\":\"LesserThan\"}]}")
- .toObject(AutomationRuleSet.class);
- Assertions.assertEquals("hvygdyftumr", model.rules().get(0).propertyJPath());
- Assertions.assertEquals(PropertyType.BOOLEAN, model.rules().get(0).propertyType());
- Assertions.assertEquals("wjslbiwkojgcyzt", model.rules().get(0).expectedValue());
- Assertions.assertEquals(Operator.LESSER_THAN, model.rules().get(0).operator());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationRuleSet model =
- new AutomationRuleSet()
- .withRules(
- Arrays
- .asList(
- new AutomationTriggeringRule()
- .withPropertyJPath("hvygdyftumr")
- .withPropertyType(PropertyType.BOOLEAN)
- .withExpectedValue("wjslbiwkojgcyzt")
- .withOperator(Operator.LESSER_THAN)));
- model = BinaryData.fromObject(model).toObject(AutomationRuleSet.class);
- Assertions.assertEquals("hvygdyftumr", model.rules().get(0).propertyJPath());
- Assertions.assertEquals(PropertyType.BOOLEAN, model.rules().get(0).propertyType());
- Assertions.assertEquals("wjslbiwkojgcyzt", model.rules().get(0).expectedValue());
- Assertions.assertEquals(Operator.LESSER_THAN, model.rules().get(0).operator());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationScopeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationScopeTests.java
deleted file mode 100644
index 18bc6495f4c0e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationScopeTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationScope;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationScopeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationScope model =
- BinaryData
- .fromString("{\"description\":\"tcypsxjvfoim\",\"scopePath\":\"slirciz\"}")
- .toObject(AutomationScope.class);
- Assertions.assertEquals("tcypsxjvfoim", model.description());
- Assertions.assertEquals("slirciz", model.scopePath());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationScope model = new AutomationScope().withDescription("tcypsxjvfoim").withScopePath("slirciz");
- model = BinaryData.fromObject(model).toObject(AutomationScope.class);
- Assertions.assertEquals("tcypsxjvfoim", model.description());
- Assertions.assertEquals("slirciz", model.scopePath());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationSourceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationSourceTests.java
deleted file mode 100644
index 7379f70c7554c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationSourceTests.java
+++ /dev/null
@@ -1,37 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationRuleSet;
-import com.azure.resourcemanager.security.models.AutomationSource;
-import com.azure.resourcemanager.security.models.EventSource;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationSourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationSource model =
- BinaryData
- .fromString("{\"eventSource\":\"SubAssessmentsSnapshot\",\"ruleSets\":[{\"rules\":[]},{\"rules\":[]}]}")
- .toObject(AutomationSource.class);
- Assertions.assertEquals(EventSource.SUB_ASSESSMENTS_SNAPSHOT, model.eventSource());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationSource model =
- new AutomationSource()
- .withEventSource(EventSource.SUB_ASSESSMENTS_SNAPSHOT)
- .withRuleSets(
- Arrays
- .asList(
- new AutomationRuleSet().withRules(Arrays.asList()),
- new AutomationRuleSet().withRules(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(AutomationSource.class);
- Assertions.assertEquals(EventSource.SUB_ASSESSMENTS_SNAPSHOT, model.eventSource());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationTriggeringRuleTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationTriggeringRuleTests.java
deleted file mode 100644
index e0d355d4af39c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationTriggeringRuleTests.java
+++ /dev/null
@@ -1,41 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
-import com.azure.resourcemanager.security.models.Operator;
-import com.azure.resourcemanager.security.models.PropertyType;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationTriggeringRuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationTriggeringRule model =
- BinaryData
- .fromString(
- "{\"propertyJPath\":\"nbaeqphchqn\",\"propertyType\":\"Integer\",\"expectedValue\":\"x\",\"operator\":\"LesserThan\"}")
- .toObject(AutomationTriggeringRule.class);
- Assertions.assertEquals("nbaeqphchqn", model.propertyJPath());
- Assertions.assertEquals(PropertyType.INTEGER, model.propertyType());
- Assertions.assertEquals("x", model.expectedValue());
- Assertions.assertEquals(Operator.LESSER_THAN, model.operator());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationTriggeringRule model =
- new AutomationTriggeringRule()
- .withPropertyJPath("nbaeqphchqn")
- .withPropertyType(PropertyType.INTEGER)
- .withExpectedValue("x")
- .withOperator(Operator.LESSER_THAN);
- model = BinaryData.fromObject(model).toObject(AutomationTriggeringRule.class);
- Assertions.assertEquals("nbaeqphchqn", model.propertyJPath());
- Assertions.assertEquals(PropertyType.INTEGER, model.propertyType());
- Assertions.assertEquals("x", model.expectedValue());
- Assertions.assertEquals(Operator.LESSER_THAN, model.operator());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationValidationStatusInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationValidationStatusInnerTests.java
deleted file mode 100644
index aad3a07081056..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationValidationStatusInnerTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.AutomationValidationStatusInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class AutomationValidationStatusInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AutomationValidationStatusInner model =
- BinaryData
- .fromString("{\"isValid\":false,\"message\":\"tczheydbsdshmkx\"}")
- .toObject(AutomationValidationStatusInner.class);
- Assertions.assertEquals(false, model.isValid());
- Assertions.assertEquals("tczheydbsdshmkx", model.message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AutomationValidationStatusInner model =
- new AutomationValidationStatusInner().withIsValid(false).withMessage("tczheydbsdshmkx");
- model = BinaryData.fromObject(model).toObject(AutomationValidationStatusInner.class);
- Assertions.assertEquals(false, model.isValid());
- Assertions.assertEquals("tczheydbsdshmkx", model.message());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index 3b9776d9aa5e4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,95 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Automation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutomationsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"description\":\"tnp\",\"isEnabled\":true,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"rqxw\",\"tags\":{\"tfdoadtx\":\"tdrh\",\"ctkbbxuha\":\"pgehpadkmdzgsszx\"},\"id\":\"lsi\",\"name\":\"ncclabvoyngsuxxc\",\"type\":\"bmyqjog\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Automation response =
- manager
- .automations()
- .define("e")
- .withRegion("xsm")
- .withExistingResourceGroup("hquhczygxvhajp")
- .withTags(mapOf("ud", "pwirfljfewxqouo", "nqi", "mckaprh", "ihkkyowl", "jgencdgmoque"))
- .withDescription("nwh")
- .withIsEnabled(true)
- .withScopes(Arrays.asList())
- .withSources(Arrays.asList())
- .withActions(Arrays.asList())
- .create();
-
- Assertions.assertEquals("rqxw", response.location());
- Assertions.assertEquals("tdrh", response.tags().get("tfdoadtx"));
- Assertions.assertEquals("tnp", response.description());
- Assertions.assertEquals(true, response.isEnabled());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 53a75cee395c8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutomationsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(204);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .automations()
- .deleteByResourceGroupWithResponse("yjmqrf", "iocuselqkr", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsGetByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsGetByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 31ebf320dbe4a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsGetByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,73 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Automation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutomationsGetByResourceGroupWithResponseMockTests {
- @Test
- public void testGetByResourceGroupWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"description\":\"rhhmojusu\",\"isEnabled\":false,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"xoia\",\"tags\":{\"dxku\":\"fxwcco\",\"shavljqkx\":\"mkczynuhhoqe\",\"kgzukwdrnzkjth\":\"rqolnthbb\"},\"id\":\"ceyjnc\",\"name\":\"mlfuyfjbp\",\"type\":\"iddhlrufzc\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Automation response =
- manager
- .automations()
- .getByResourceGroupWithResponse("jjsbcmlzaahzbhur", "olk", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("xoia", response.location());
- Assertions.assertEquals("fxwcco", response.tags().get("dxku"));
- Assertions.assertEquals("rhhmojusu", response.description());
- Assertions.assertEquals(false, response.isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsListByResourceGroupMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsListByResourceGroupMockTests.java
deleted file mode 100644
index f9cc80cfca11d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsListByResourceGroupMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Automation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutomationsListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"description\":\"zboimyfpqdo\",\"isEnabled\":true,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"fvpctfji\",\"tags\":{\"vuldbkkejjk\":\"ffgkuhznw\"},\"id\":\"igaw\",\"name\":\"azmxjqi\",\"type\":\"h\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.automations().listByResourceGroup("trnzpducdaaktu", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("fvpctfji", response.iterator().next().location());
- Assertions.assertEquals("ffgkuhznw", response.iterator().next().tags().get("vuldbkkejjk"));
- Assertions.assertEquals("zboimyfpqdo", response.iterator().next().description());
- Assertions.assertEquals(true, response.iterator().next().isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsListMockTests.java
deleted file mode 100644
index ac79e0ba8762a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsListMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Automation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutomationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"description\":\"ssaekewnaze\",\"isEnabled\":true,\"scopes\":[],\"sources\":[],\"actions\":[]},\"location\":\"izyddcvxodk\",\"tags\":{\"desqlvg\":\"sxxb\",\"bygoo\":\"cpwgoljtzxnmxsd\"},\"id\":\"xqapjxvazyjfucsa\",\"name\":\"djnosdkvibf\",\"type\":\"sgm\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.automations().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("izyddcvxodk", response.iterator().next().location());
- Assertions.assertEquals("sxxb", response.iterator().next().tags().get("desqlvg"));
- Assertions.assertEquals("ssaekewnaze", response.iterator().next().description());
- Assertions.assertEquals(true, response.iterator().next().isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsValidateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsValidateWithResponseMockTests.java
deleted file mode 100644
index 671d430c23770..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AutomationsValidateWithResponseMockTests.java
+++ /dev/null
@@ -1,97 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.fluent.models.AutomationInner;
-import com.azure.resourcemanager.security.models.AutomationValidationStatus;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AutomationsValidateWithResponseMockTests {
- @Test
- public void testValidateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"isValid\":false,\"message\":\"yrnskb\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AutomationValidationStatus response =
- manager
- .automations()
- .validateWithResponse(
- "azrhxudd",
- "mdtff",
- new AutomationInner()
- .withLocation("kwtjawhva")
- .withTags(
- mapOf("vmyolcaym", "fqqdl", "z", "chtvsnvlaqd", "othymgobl", "zawatuwqkokbc", "gwi", "msn"))
- .withDescription("mrkkhmwd")
- .withIsEnabled(true)
- .withScopes(Arrays.asList())
- .withSources(Arrays.asList())
- .withActions(Arrays.asList()),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(false, response.isValid());
- Assertions.assertEquals("yrnskb", response.message());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwAssumeRoleAuthenticationDetailsPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwAssumeRoleAuthenticationDetailsPropertiesTests.java
deleted file mode 100644
index f2620fc58bfc5..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwAssumeRoleAuthenticationDetailsPropertiesTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AwAssumeRoleAuthenticationDetailsProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class AwAssumeRoleAuthenticationDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AwAssumeRoleAuthenticationDetailsProperties model =
- BinaryData
- .fromString(
- "{\"authenticationType\":\"awsAssumeRole\",\"accountId\":\"mnhjevdyzn\",\"awsAssumeRoleArn\":\"ajsvk\",\"awsExternalId\":\"kmq\",\"authenticationProvisioningState\":\"IncorrectPolicy\",\"grantedPermissions\":[\"AWS::SecurityAudit\",\"AWS::AmazonSSMAutomationRole\",\"GCP::Security"
- + " Center Admin Viewer\",\"AWS::SecurityAudit\"]}")
- .toObject(AwAssumeRoleAuthenticationDetailsProperties.class);
- Assertions.assertEquals("ajsvk", model.awsAssumeRoleArn());
- Assertions.assertEquals("kmq", model.awsExternalId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AwAssumeRoleAuthenticationDetailsProperties model =
- new AwAssumeRoleAuthenticationDetailsProperties().withAwsAssumeRoleArn("ajsvk").withAwsExternalId("kmq");
- model = BinaryData.fromObject(model).toObject(AwAssumeRoleAuthenticationDetailsProperties.class);
- Assertions.assertEquals("ajsvk", model.awsAssumeRoleArn());
- Assertions.assertEquals("kmq", model.awsExternalId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsEnvironmentDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsEnvironmentDataTests.java
deleted file mode 100644
index 4d072ac750968..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsEnvironmentDataTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AwsEnvironmentData;
-import com.azure.resourcemanager.security.models.AwsOrganizationalData;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AwsEnvironmentDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AwsEnvironmentData model =
- BinaryData
- .fromString(
- "{\"environmentType\":\"AwsAccount\",\"organizationalData\":{\"organizationMembershipType\":\"AwsOrganizationalData\"},\"regions\":[\"krrbhmpful\"],\"accountName\":\"efgybpmfbfununmp\"}")
- .toObject(AwsEnvironmentData.class);
- Assertions.assertEquals("krrbhmpful", model.regions().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AwsEnvironmentData model =
- new AwsEnvironmentData()
- .withOrganizationalData(new AwsOrganizationalData())
- .withRegions(Arrays.asList("krrbhmpful"));
- model = BinaryData.fromObject(model).toObject(AwsEnvironmentData.class);
- Assertions.assertEquals("krrbhmpful", model.regions().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataMasterTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataMasterTests.java
deleted file mode 100644
index 1fc708fdd5429..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataMasterTests.java
+++ /dev/null
@@ -1,34 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AwsOrganizationalDataMaster;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class AwsOrganizationalDataMasterTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AwsOrganizationalDataMaster model =
- BinaryData
- .fromString(
- "{\"organizationMembershipType\":\"Organization\",\"stacksetName\":\"rvfyifkdsch\",\"excludedAccountIds\":[\"fict\",\"kjjwgcwn\",\"hbkgfyrt\",\"gm\"]}")
- .toObject(AwsOrganizationalDataMaster.class);
- Assertions.assertEquals("rvfyifkdsch", model.stacksetName());
- Assertions.assertEquals("fict", model.excludedAccountIds().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AwsOrganizationalDataMaster model =
- new AwsOrganizationalDataMaster()
- .withStacksetName("rvfyifkdsch")
- .withExcludedAccountIds(Arrays.asList("fict", "kjjwgcwn", "hbkgfyrt", "gm"));
- model = BinaryData.fromObject(model).toObject(AwsOrganizationalDataMaster.class);
- Assertions.assertEquals("rvfyifkdsch", model.stacksetName());
- Assertions.assertEquals("fict", model.excludedAccountIds().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataMemberTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataMemberTests.java
deleted file mode 100644
index 25187ba99e916..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataMemberTests.java
+++ /dev/null
@@ -1,27 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AwsOrganizationalDataMember;
-import org.junit.jupiter.api.Assertions;
-
-public final class AwsOrganizationalDataMemberTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AwsOrganizationalDataMember model =
- BinaryData
- .fromString("{\"organizationMembershipType\":\"Member\",\"parentHierarchyId\":\"j\"}")
- .toObject(AwsOrganizationalDataMember.class);
- Assertions.assertEquals("j", model.parentHierarchyId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AwsOrganizationalDataMember model = new AwsOrganizationalDataMember().withParentHierarchyId("j");
- model = BinaryData.fromObject(model).toObject(AwsOrganizationalDataMember.class);
- Assertions.assertEquals("j", model.parentHierarchyId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataTests.java
deleted file mode 100644
index 2832b96e508cb..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AwsOrganizationalDataTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AwsOrganizationalData;
-
-public final class AwsOrganizationalDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AwsOrganizationalData model =
- BinaryData
- .fromString("{\"organizationMembershipType\":\"AwsOrganizationalData\"}")
- .toObject(AwsOrganizationalData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AwsOrganizationalData model = new AwsOrganizationalData();
- model = BinaryData.fromObject(model).toObject(AwsOrganizationalData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureDevOpsScopeEnvironmentDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureDevOpsScopeEnvironmentDataTests.java
deleted file mode 100644
index b2306356746b4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureDevOpsScopeEnvironmentDataTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AzureDevOpsScopeEnvironmentData;
-
-public final class AzureDevOpsScopeEnvironmentDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureDevOpsScopeEnvironmentData model =
- BinaryData
- .fromString("{\"environmentType\":\"AzureDevOpsScope\"}")
- .toObject(AzureDevOpsScopeEnvironmentData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureDevOpsScopeEnvironmentData model = new AzureDevOpsScopeEnvironmentData();
- model = BinaryData.fromObject(model).toObject(AzureDevOpsScopeEnvironmentData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceDetailsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceDetailsTests.java
deleted file mode 100644
index 705d3b3ed5aaa..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceDetailsTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AzureResourceDetails;
-
-public final class AzureResourceDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureResourceDetails model =
- BinaryData.fromString("{\"source\":\"Azure\",\"id\":\"aohoqkpjtnq\"}").toObject(AzureResourceDetails.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureResourceDetails model = new AzureResourceDetails();
- model = BinaryData.fromObject(model).toObject(AzureResourceDetails.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceIdentifierTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceIdentifierTests.java
deleted file mode 100644
index 1b0ad3dbb7d0a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceIdentifierTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AzureResourceIdentifier;
-
-public final class AzureResourceIdentifierTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureResourceIdentifier model =
- BinaryData
- .fromString("{\"type\":\"AzureResource\",\"azureResourceId\":\"hvuqbo\"}")
- .toObject(AzureResourceIdentifier.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureResourceIdentifier model = new AzureResourceIdentifier();
- model = BinaryData.fromObject(model).toObject(AzureResourceIdentifier.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceLinkTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceLinkTests.java
deleted file mode 100644
index 1363a09cc59cd..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureResourceLinkTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AzureResourceLink;
-
-public final class AzureResourceLinkTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureResourceLink model =
- BinaryData.fromString("{\"id\":\"cbuewmrswnjlxuz\"}").toObject(AzureResourceLink.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureResourceLink model = new AzureResourceLink();
- model = BinaryData.fromObject(model).toObject(AzureResourceLink.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureTrackedResourceLocationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureTrackedResourceLocationTests.java
deleted file mode 100644
index 485e00c4dd5a7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/AzureTrackedResourceLocationTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.AzureTrackedResourceLocation;
-import org.junit.jupiter.api.Assertions;
-
-public final class AzureTrackedResourceLocationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AzureTrackedResourceLocation model =
- BinaryData.fromString("{\"location\":\"ltducea\"}").toObject(AzureTrackedResourceLocation.class);
- Assertions.assertEquals("ltducea", model.location());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AzureTrackedResourceLocation model = new AzureTrackedResourceLocation().withLocation("ltducea");
- model = BinaryData.fromObject(model).toObject(AzureTrackedResourceLocation.class);
- Assertions.assertEquals("ltducea", model.location());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BaselineAdjustedResultTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BaselineAdjustedResultTests.java
deleted file mode 100644
index 507760ad319e2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BaselineAdjustedResultTests.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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.Baseline;
-import com.azure.resourcemanager.security.models.BaselineAdjustedResult;
-import com.azure.resourcemanager.security.models.RuleStatus;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class BaselineAdjustedResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BaselineAdjustedResult model =
- BinaryData
- .fromString(
- "{\"baseline\":{\"expectedResults\":[[\"mfzsbf\"],[\"rzx\",\"dew\",\"rsxkr\",\"lbjazejww\"]],\"updatedTime\":\"2021-03-06T21:39:52Z\"},\"status\":\"Finding\",\"resultsNotInBaseline\":[[\"hbrnnhjx\",\"qwjhqkbiwetpozyc\",\"qiqyhgfsetzlexbs\"],[\"e\",\"ynojpziuw\",\"bzkkd\"]],\"resultsOnlyInBaseline\":[[\"sycljsel\",\"kpbafvafhl\"],[\"lc\"],[\"evxrhyz\",\"fwrsofpltdbmair\",\"hvhfnracw\"]]}")
- .toObject(BaselineAdjustedResult.class);
- Assertions.assertEquals("mfzsbf", model.baseline().expectedResults().get(0).get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T21:39:52Z"), model.baseline().updatedTime());
- Assertions.assertEquals(RuleStatus.FINDING, model.status());
- Assertions.assertEquals("hbrnnhjx", model.resultsNotInBaseline().get(0).get(0));
- Assertions.assertEquals("sycljsel", model.resultsOnlyInBaseline().get(0).get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BaselineAdjustedResult model =
- new BaselineAdjustedResult()
- .withBaseline(
- new Baseline()
- .withExpectedResults(
- Arrays.asList(Arrays.asList("mfzsbf"), Arrays.asList("rzx", "dew", "rsxkr", "lbjazejww")))
- .withUpdatedTime(OffsetDateTime.parse("2021-03-06T21:39:52Z")))
- .withStatus(RuleStatus.FINDING)
- .withResultsNotInBaseline(
- Arrays
- .asList(
- Arrays.asList("hbrnnhjx", "qwjhqkbiwetpozyc", "qiqyhgfsetzlexbs"),
- Arrays.asList("e", "ynojpziuw", "bzkkd")))
- .withResultsOnlyInBaseline(
- Arrays
- .asList(
- Arrays.asList("sycljsel", "kpbafvafhl"),
- Arrays.asList("lc"),
- Arrays.asList("evxrhyz", "fwrsofpltdbmair", "hvhfnracw")));
- model = BinaryData.fromObject(model).toObject(BaselineAdjustedResult.class);
- Assertions.assertEquals("mfzsbf", model.baseline().expectedResults().get(0).get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T21:39:52Z"), model.baseline().updatedTime());
- Assertions.assertEquals(RuleStatus.FINDING, model.status());
- Assertions.assertEquals("hbrnnhjx", model.resultsNotInBaseline().get(0).get(0));
- Assertions.assertEquals("sycljsel", model.resultsOnlyInBaseline().get(0).get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BaselineTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BaselineTests.java
deleted file mode 100644
index 44a63e1b7e6e8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BaselineTests.java
+++ /dev/null
@@ -1,41 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.Baseline;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class BaselineTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Baseline model =
- BinaryData
- .fromString(
- "{\"expectedResults\":[[\"g\",\"uuj\"],[\"uhd\",\"wsigrbjbxsj\",\"bvitvqkjya\"],[\"umtggmuwdchozfn\"],[\"exlvxnoakiz\"]],\"updatedTime\":\"2021-02-16T18:23:50Z\"}")
- .toObject(Baseline.class);
- Assertions.assertEquals("g", model.expectedResults().get(0).get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T18:23:50Z"), model.updatedTime());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Baseline model =
- new Baseline()
- .withExpectedResults(
- Arrays
- .asList(
- Arrays.asList("g", "uuj"),
- Arrays.asList("uhd", "wsigrbjbxsj", "bvitvqkjya"),
- Arrays.asList("umtggmuwdchozfn"),
- Arrays.asList("exlvxnoakiz")))
- .withUpdatedTime(OffsetDateTime.parse("2021-02-16T18:23:50Z"));
- model = BinaryData.fromObject(model).toObject(Baseline.class);
- Assertions.assertEquals("g", model.expectedResults().get(0).get(0));
- Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T18:23:50Z"), model.updatedTime());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BenchmarkReferenceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BenchmarkReferenceTests.java
deleted file mode 100644
index 369304ea61ed6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/BenchmarkReferenceTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.BenchmarkReference;
-import org.junit.jupiter.api.Assertions;
-
-public final class BenchmarkReferenceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BenchmarkReference model =
- BinaryData
- .fromString("{\"benchmark\":\"vovjufycsjmlbe\",\"reference\":\"ej\"}")
- .toObject(BenchmarkReference.class);
- Assertions.assertEquals("vovjufycsjmlbe", model.benchmark());
- Assertions.assertEquals("ej", model.reference());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BenchmarkReference model = new BenchmarkReference().withBenchmark("vovjufycsjmlbe").withReference("ej");
- model = BinaryData.fromObject(model).toObject(BenchmarkReference.class);
- Assertions.assertEquals("vovjufycsjmlbe", model.benchmark());
- Assertions.assertEquals("ej", model.reference());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CefExternalSecuritySolutionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CefExternalSecuritySolutionTests.java
deleted file mode 100644
index c79cf40c25e94..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CefExternalSecuritySolutionTests.java
+++ /dev/null
@@ -1,49 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CefExternalSecuritySolution;
-import com.azure.resourcemanager.security.models.CefSolutionProperties;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class CefExternalSecuritySolutionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CefExternalSecuritySolution model =
- BinaryData
- .fromString(
- "{\"kind\":\"CEF\",\"properties\":{\"hostname\":\"qacdmkxwxdcvjwcy\",\"agent\":\"akeciqchx\",\"lastEventReceived\":\"uicdsiwdfmmpzhzz\",\"deviceVendor\":\"ywrgyngydgr\",\"deviceType\":\"n\",\"workspace\":{\"id\":\"iqao\"},\"\":{\"lvlmfej\":\"datarkclamg\"}},\"location\":\"qey\",\"id\":\"gltygxhqfgq\",\"name\":\"ayejsxtlgflwfgz\",\"type\":\"iucijjcea\"}")
- .toObject(CefExternalSecuritySolution.class);
- Assertions.assertEquals("ywrgyngydgr", model.properties().deviceVendor());
- Assertions.assertEquals("n", model.properties().deviceType());
- Assertions.assertEquals("iqao", model.properties().workspace().id());
- Assertions.assertEquals("qacdmkxwxdcvjwcy", model.properties().hostname());
- Assertions.assertEquals("akeciqchx", model.properties().agent());
- Assertions.assertEquals("uicdsiwdfmmpzhzz", model.properties().lastEventReceived());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CefExternalSecuritySolution model =
- new CefExternalSecuritySolution()
- .withProperties(
- new CefSolutionProperties()
- .withDeviceVendor("ywrgyngydgr")
- .withDeviceType("n")
- .withWorkspace(new ConnectedWorkspace().withId("iqao"))
- .withHostname("qacdmkxwxdcvjwcy")
- .withAgent("akeciqchx")
- .withLastEventReceived("uicdsiwdfmmpzhzz"));
- model = BinaryData.fromObject(model).toObject(CefExternalSecuritySolution.class);
- Assertions.assertEquals("ywrgyngydgr", model.properties().deviceVendor());
- Assertions.assertEquals("n", model.properties().deviceType());
- Assertions.assertEquals("iqao", model.properties().workspace().id());
- Assertions.assertEquals("qacdmkxwxdcvjwcy", model.properties().hostname());
- Assertions.assertEquals("akeciqchx", model.properties().agent());
- Assertions.assertEquals("uicdsiwdfmmpzhzz", model.properties().lastEventReceived());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CefSolutionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CefSolutionPropertiesTests.java
deleted file mode 100644
index 5689d605f5465..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CefSolutionPropertiesTests.java
+++ /dev/null
@@ -1,46 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CefSolutionProperties;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class CefSolutionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CefSolutionProperties model =
- BinaryData
- .fromString(
- "{\"hostname\":\"ijjj\",\"agent\":\"va\",\"lastEventReceived\":\"a\",\"deviceVendor\":\"knxkvccxetyvkunm\",\"deviceType\":\"nohikkgq\",\"workspace\":{\"id\":\"wpin\"},\"\":{\"hmedeilbjywfcfxz\":\"datavabbx\",\"vjslczwcii\":\"datarzzihvwypus\",\"vxadqacfrgnawbab\":\"datajsllfryvd\",\"yq\":\"datafbktyjmfczlf\"}}")
- .toObject(CefSolutionProperties.class);
- Assertions.assertEquals("knxkvccxetyvkunm", model.deviceVendor());
- Assertions.assertEquals("nohikkgq", model.deviceType());
- Assertions.assertEquals("wpin", model.workspace().id());
- Assertions.assertEquals("ijjj", model.hostname());
- Assertions.assertEquals("va", model.agent());
- Assertions.assertEquals("a", model.lastEventReceived());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CefSolutionProperties model =
- new CefSolutionProperties()
- .withDeviceVendor("knxkvccxetyvkunm")
- .withDeviceType("nohikkgq")
- .withWorkspace(new ConnectedWorkspace().withId("wpin"))
- .withHostname("ijjj")
- .withAgent("va")
- .withLastEventReceived("a");
- model = BinaryData.fromObject(model).toObject(CefSolutionProperties.class);
- Assertions.assertEquals("knxkvccxetyvkunm", model.deviceVendor());
- Assertions.assertEquals("nohikkgq", model.deviceType());
- Assertions.assertEquals("wpin", model.workspace().id());
- Assertions.assertEquals("ijjj", model.hostname());
- Assertions.assertEquals("va", model.agent());
- Assertions.assertEquals("a", model.lastEventReceived());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CloudOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CloudOfferingTests.java
deleted file mode 100644
index b0a117bca27e9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CloudOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CloudOffering;
-
-public final class CloudOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CloudOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"CloudOffering\",\"description\":\"ivjreuyk\"}")
- .toObject(CloudOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CloudOffering model = new CloudOffering();
- model = BinaryData.fromObject(model).toObject(CloudOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceInnerTests.java
deleted file mode 100644
index 0543972aa28a4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceInnerTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ComplianceInner;
-
-public final class ComplianceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-08-15T01:34:53Z\",\"resourceCount\":207967373,\"assessmentResult\":[{\"segmentType\":\"dpfrxtrthzvaytdw\",\"percentage\":34.16180582030333},{\"segmentType\":\"ubpaxhe\",\"percentage\":1.5196984611925868}]},\"id\":\"ivpdtiir\",\"name\":\"tdqoaxoruzfgsq\",\"type\":\"yfxrx\"}")
- .toObject(ComplianceInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceInner model = new ComplianceInner();
- model = BinaryData.fromObject(model).toObject(ComplianceInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceListTests.java
deleted file mode 100644
index 0209720593c4f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceListTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ComplianceInner;
-import com.azure.resourcemanager.security.models.ComplianceList;
-import java.util.Arrays;
-
-public final class ComplianceListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-08-25T09:33:34Z\",\"resourceCount\":624778524,\"assessmentResult\":[]},\"id\":\"bqfatpxllrxcyjmo\",\"name\":\"dsuvarmywdmjsjqb\",\"type\":\"hhyxxrw\"},{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-02-04T08:50:40Z\",\"resourceCount\":803302222,\"assessmentResult\":[]},\"id\":\"p\",\"name\":\"xkgymareqnajxqu\",\"type\":\"jhkycub\"},{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-03-22T14:35:21Z\",\"resourceCount\":2056337569,\"assessmentResult\":[]},\"id\":\"fwqmzqalkrmn\",\"name\":\"i\",\"type\":\"pxacqqudfn\"},{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-06-13T18:20:41Z\",\"resourceCount\":1365725065,\"assessmentResult\":[]},\"id\":\"bjyvay\",\"name\":\"fimrzrtuzqogse\",\"type\":\"nevfdnw\"}],\"nextLink\":\"mewzsyyc\"}")
- .toObject(ComplianceList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceList model =
- new ComplianceList()
- .withValue(
- Arrays
- .asList(
- new ComplianceInner(),
- new ComplianceInner(),
- new ComplianceInner(),
- new ComplianceInner()));
- model = BinaryData.fromObject(model).toObject(ComplianceList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancePropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancePropertiesTests.java
deleted file mode 100644
index 421d502a6a5c5..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancePropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ComplianceProperties;
-
-public final class CompliancePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceProperties model =
- BinaryData
- .fromString(
- "{\"assessmentTimestampUtcDate\":\"2021-11-22T21:44:45Z\",\"resourceCount\":2043686923,\"assessmentResult\":[{\"segmentType\":\"xje\",\"percentage\":84.10933716066732},{\"segmentType\":\"wxuqlcvydypatdoo\",\"percentage\":48.53263087805991},{\"segmentType\":\"iodkooebwnujhem\",\"percentage\":70.84255746706634}]}")
- .toObject(ComplianceProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceProperties model = new ComplianceProperties();
- model = BinaryData.fromObject(model).toObject(ComplianceProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultInnerTests.java
deleted file mode 100644
index 16b9ae57355ea..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultInnerTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ComplianceResultInner;
-
-public final class ComplianceResultInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceResultInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"resourceStatus\":\"NotApplicable\"},\"id\":\"jdous\",\"name\":\"cqvkocrcjdkwtn\",\"type\":\"xbnjbiksq\"}")
- .toObject(ComplianceResultInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceResultInner model = new ComplianceResultInner();
- model = BinaryData.fromObject(model).toObject(ComplianceResultInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultListTests.java
deleted file mode 100644
index a44d8e55a67e2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultListTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ComplianceResultInner;
-import com.azure.resourcemanager.security.models.ComplianceResultList;
-import java.util.Arrays;
-
-public final class ComplianceResultListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceResultList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"resourceStatus\":\"Healthy\"},\"id\":\"rnfygxgispem\",\"name\":\"tzfkufubl\",\"type\":\"ofx\"},{\"properties\":{\"resourceStatus\":\"NotApplicable\"},\"id\":\"jaeq\",\"name\":\"hqjbasvmsmj\",\"type\":\"ulngsntn\"}],\"nextLink\":\"bkzgcwrwclx\"}")
- .toObject(ComplianceResultList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceResultList model =
- new ComplianceResultList()
- .withValue(Arrays.asList(new ComplianceResultInner(), new ComplianceResultInner()));
- model = BinaryData.fromObject(model).toObject(ComplianceResultList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultPropertiesTests.java
deleted file mode 100644
index 2d0a41a993284..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultPropertiesTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ComplianceResultProperties;
-
-public final class ComplianceResultPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceResultProperties model =
- BinaryData.fromString("{\"resourceStatus\":\"NotApplicable\"}").toObject(ComplianceResultProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceResultProperties model = new ComplianceResultProperties();
- model = BinaryData.fromObject(model).toObject(ComplianceResultProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultsGetWithResponseMockTests.java
deleted file mode 100644
index f0c78f2efeb6d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ComplianceResult;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ComplianceResultsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"resourceStatus\":\"Healthy\"},\"id\":\"admskx\",\"name\":\"npd\",\"type\":\"zigjsugswhgsaodk\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ComplianceResult response =
- manager.complianceResults().getWithResponse("bv", "ipbwxgooo", com.azure.core.util.Context.NONE).getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultsListMockTests.java
deleted file mode 100644
index 0584266705b70..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceResultsListMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ComplianceResult;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ComplianceResultsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"resourceStatus\":\"NotHealthy\"},\"id\":\"jh\",\"name\":\"cl\",\"type\":\"iedfsbwcei\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.complianceResults().list("jdiq", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceSegmentTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceSegmentTests.java
deleted file mode 100644
index d31b157d00599..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ComplianceSegmentTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ComplianceSegment;
-
-public final class ComplianceSegmentTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ComplianceSegment model =
- BinaryData
- .fromString("{\"segmentType\":\"kcrodtjinfw\",\"percentage\":48.601111864993506}")
- .toObject(ComplianceSegment.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ComplianceSegment model = new ComplianceSegment();
- model = BinaryData.fromObject(model).toObject(ComplianceSegment.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancesGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancesGetWithResponseMockTests.java
deleted file mode 100644
index 5736ac3194727..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Compliance;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CompliancesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-04-20T11:58:39Z\",\"resourceCount\":583631661,\"assessmentResult\":[]},\"id\":\"tesubzpvp\",\"name\":\"dylytcovq\",\"type\":\"eu\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Compliance response =
- manager.compliances().getWithResponse("iswxspv", "koj", com.azure.core.util.Context.NONE).getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancesListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancesListMockTests.java
deleted file mode 100644
index da2afc0150a25..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CompliancesListMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.Compliance;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CompliancesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-01-17T17:15:03Z\",\"resourceCount\":563449519,\"assessmentResult\":[]},\"id\":\"ygysemtme\",\"name\":\"rf\",\"type\":\"vpinkzpatqt\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.compliances().list("axikhfjqebglcxk", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectableResourceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectableResourceTests.java
deleted file mode 100644
index 2918460962dac..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectableResourceTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ConnectableResource;
-
-public final class ConnectableResourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectableResource model =
- BinaryData
- .fromString(
- "{\"id\":\"lsismjqfrd\",\"inboundConnectedResources\":[{\"connectedResourceId\":\"quhiosrsjuivf\",\"tcpPorts\":\"is\",\"udpPorts\":\"rnxzh\"}],\"outboundConnectedResources\":[{\"connectedResourceId\":\"rxzbujr\",\"tcpPorts\":\"hqvwrevkhgnlnzon\",\"udpPorts\":\"rpiqywncv\"},{\"connectedResourceId\":\"szcofizeht\",\"tcpPorts\":\"gbjkvreljeamur\",\"udpPorts\":\"mlovuanashcxl\"},{\"connectedResourceId\":\"jerbdkelvidizozs\",\"tcpPorts\":\"ccxjm\",\"udpPorts\":\"fdgnwncypuuwwlt\"},{\"connectedResourceId\":\"qjctzenkeif\",\"tcpPorts\":\"hmkdasvfl\",\"udpPorts\":\"bxcudchx\"}]}")
- .toObject(ConnectableResource.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectableResource model = new ConnectableResource();
- model = BinaryData.fromObject(model).toObject(ConnectableResource.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectedResourceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectedResourceTests.java
deleted file mode 100644
index 01ee1f296ed79..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectedResourceTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ConnectedResource;
-
-public final class ConnectedResourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectedResource model =
- BinaryData
- .fromString("{\"connectedResourceId\":\"rb\",\"tcpPorts\":\"d\",\"udpPorts\":\"robwjlvizbfhf\"}")
- .toObject(ConnectedResource.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectedResource model = new ConnectedResource();
- model = BinaryData.fromObject(model).toObject(ConnectedResource.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectedWorkspaceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectedWorkspaceTests.java
deleted file mode 100644
index ccdd9758e5383..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectedWorkspaceTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import org.junit.jupiter.api.Assertions;
-
-public final class ConnectedWorkspaceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectedWorkspace model =
- BinaryData.fromString("{\"id\":\"jfqipubyznclkfk\"}").toObject(ConnectedWorkspace.class);
- Assertions.assertEquals("jfqipubyznclkfk", model.id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectedWorkspace model = new ConnectedWorkspace().withId("jfqipubyznclkfk");
- model = BinaryData.fromObject(model).toObject(ConnectedWorkspace.class);
- Assertions.assertEquals("jfqipubyznclkfk", model.id());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionFromIpNotAllowedTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionFromIpNotAllowedTests.java
deleted file mode 100644
index 9352ba73c99d9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionFromIpNotAllowedTests.java
+++ /dev/null
@@ -1,34 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ConnectionFromIpNotAllowed;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ConnectionFromIpNotAllowedTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectionFromIpNotAllowed model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"ConnectionFromIpNotAllowed\",\"allowlistValues\":[\"wreswmowegm\",\"uteyxeyguq\"],\"valueType\":\"IpCidr\",\"displayName\":\"ii\",\"description\":\"spxlzde\",\"isEnabled\":false}")
- .toObject(ConnectionFromIpNotAllowed.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("wreswmowegm", model.allowlistValues().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectionFromIpNotAllowed model =
- new ConnectionFromIpNotAllowed()
- .withIsEnabled(false)
- .withAllowlistValues(Arrays.asList("wreswmowegm", "uteyxeyguq"));
- model = BinaryData.fromObject(model).toObject(ConnectionFromIpNotAllowed.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("wreswmowegm", model.allowlistValues().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionStringsInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionStringsInnerTests.java
deleted file mode 100644
index 3ff0385b38528..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionStringsInnerTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ConnectionStringsInner;
-import com.azure.resourcemanager.security.models.IngestionConnectionString;
-import java.util.Arrays;
-
-public final class ConnectionStringsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectionStringsInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"qd\",\"value\":\"jgwdtgukranbl\"},{\"location\":\"hqlkccuzgygqwaho\",\"value\":\"lwgniiprglvawu\"}]}")
- .toObject(ConnectionStringsInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectionStringsInner model =
- new ConnectionStringsInner()
- .withValue(Arrays.asList(new IngestionConnectionString(), new IngestionConnectionString()));
- model = BinaryData.fromObject(model).toObject(ConnectionStringsInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionToIpNotAllowedTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionToIpNotAllowedTests.java
deleted file mode 100644
index 57660875cbd17..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectionToIpNotAllowedTests.java
+++ /dev/null
@@ -1,34 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ConnectionToIpNotAllowed;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ConnectionToIpNotAllowedTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectionToIpNotAllowed model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"ConnectionToIpNotAllowed\",\"allowlistValues\":[\"qrkuor\",\"tssruqnmdvhazc\",\"jy\"],\"valueType\":\"String\",\"displayName\":\"wbqerzwxiytxtd\",\"description\":\"kvlbpktgdstyoua\",\"isEnabled\":true}")
- .toObject(ConnectionToIpNotAllowed.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals("qrkuor", model.allowlistValues().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectionToIpNotAllowed model =
- new ConnectionToIpNotAllowed()
- .withIsEnabled(true)
- .withAllowlistValues(Arrays.asList("qrkuor", "tssruqnmdvhazc", "jy"));
- model = BinaryData.fromObject(model).toObject(ConnectionToIpNotAllowed.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals("qrkuor", model.allowlistValues().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorSettingInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorSettingInnerTests.java
deleted file mode 100644
index fc22fd5efea88..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorSettingInnerTests.java
+++ /dev/null
@@ -1,42 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ConnectorSettingInner;
-import com.azure.resourcemanager.security.models.AuthenticationDetailsProperties;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.HybridComputeSettingsProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class ConnectorSettingInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectorSettingInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"hybridComputeSettings\":{\"hybridComputeProvisioningState\":\"Invalid\",\"autoProvision\":\"Off\",\"resourceGroupName\":\"enl\",\"region\":\"htkln\"},\"authenticationDetails\":{\"authenticationType\":\"AuthenticationDetailsProperties\",\"authenticationProvisioningState\":\"IncorrectPolicy\",\"grantedPermissions\":[\"AWS::AWSSecurityHubReadOnlyAccess\",\"AWS::AWSSecurityHubReadOnlyAccess\",\"AWS::SecurityAudit\"]}},\"id\":\"ev\",\"name\":\"bo\",\"type\":\"lcqxypokk\"}")
- .toObject(ConnectorSettingInner.class);
- Assertions.assertEquals(AutoProvision.OFF, model.hybridComputeSettings().autoProvision());
- Assertions.assertEquals("enl", model.hybridComputeSettings().resourceGroupName());
- Assertions.assertEquals("htkln", model.hybridComputeSettings().region());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectorSettingInner model =
- new ConnectorSettingInner()
- .withHybridComputeSettings(
- new HybridComputeSettingsProperties()
- .withAutoProvision(AutoProvision.OFF)
- .withResourceGroupName("enl")
- .withRegion("htkln"))
- .withAuthenticationDetails(new AuthenticationDetailsProperties());
- model = BinaryData.fromObject(model).toObject(ConnectorSettingInner.class);
- Assertions.assertEquals(AutoProvision.OFF, model.hybridComputeSettings().autoProvision());
- Assertions.assertEquals("enl", model.hybridComputeSettings().resourceGroupName());
- Assertions.assertEquals("htkln", model.hybridComputeSettings().region());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorSettingListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorSettingListTests.java
deleted file mode 100644
index 069f35ab6d3df..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorSettingListTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ConnectorSettingInner;
-import com.azure.resourcemanager.security.models.ConnectorSettingList;
-import java.util.Arrays;
-
-public final class ConnectorSettingListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ConnectorSettingList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{},\"id\":\"kzmkwklsnoxaxmqe\",\"name\":\"alhhjnhgwydyynfs\",\"type\":\"khgb\"},{\"properties\":{},\"id\":\"narfdlpukhpyrn\",\"name\":\"izjcpeog\",\"type\":\"hnmgbroux\"},{\"properties\":{},\"id\":\"fhp\",\"name\":\"paz\",\"type\":\"zoyw\"},{\"properties\":{},\"id\":\"dulontacn\",\"name\":\"qwtehtuevr\",\"type\":\"rljyoogwxhnsdu\"}],\"nextLink\":\"wbsreur\"}")
- .toObject(ConnectorSettingList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ConnectorSettingList model =
- new ConnectorSettingList()
- .withValue(
- Arrays
- .asList(
- new ConnectorSettingInner(),
- new ConnectorSettingInner(),
- new ConnectorSettingInner(),
- new ConnectorSettingInner()));
- model = BinaryData.fromObject(model).toObject(ConnectorSettingList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index a0d0fec01fcae..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,81 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AuthenticationDetailsProperties;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.ConnectorSetting;
-import com.azure.resourcemanager.security.models.HybridComputeSettingsProperties;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ConnectorsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"hybridComputeSettings\":{\"hybridComputeProvisioningState\":\"Invalid\",\"autoProvision\":\"On\",\"resourceGroupName\":\"rwtrdgscnvqeonsg\",\"region\":\"xlw\"},\"authenticationDetails\":{\"authenticationType\":\"AuthenticationDetailsProperties\",\"authenticationProvisioningState\":\"Expired\",\"grantedPermissions\":[]}},\"id\":\"pthceopvkv\",\"name\":\"wfvesobpbok\",\"type\":\"mmlcdyarng\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ConnectorSetting response =
- manager
- .connectors()
- .define("jermhzic")
- .withHybridComputeSettings(
- new HybridComputeSettingsProperties()
- .withAutoProvision(AutoProvision.OFF)
- .withResourceGroupName("aaknyukibxig")
- .withRegion("phzwxqte"))
- .withAuthenticationDetails(new AuthenticationDetailsProperties())
- .create();
-
- Assertions.assertEquals(AutoProvision.ON, response.hybridComputeSettings().autoProvision());
- Assertions.assertEquals("rwtrdgscnvqeonsg", response.hybridComputeSettings().resourceGroupName());
- Assertions.assertEquals("xlw", response.hybridComputeSettings().region());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsDeleteWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsDeleteWithResponseMockTests.java
deleted file mode 100644
index 82fc4ab6f635e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ConnectorsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.connectors().deleteWithResponse("dueurgmcdcpkshl", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsGetWithResponseMockTests.java
deleted file mode 100644
index 8433202342fb5..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.ConnectorSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ConnectorsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"hybridComputeSettings\":{\"hybridComputeProvisioningState\":\"Invalid\",\"autoProvision\":\"On\",\"resourceGroupName\":\"dh\",\"region\":\"ojvlirknucosaw\"},\"authenticationDetails\":{\"authenticationType\":\"AuthenticationDetailsProperties\",\"authenticationProvisioningState\":\"Expired\",\"grantedPermissions\":[]}},\"id\":\"lgpyaixihz\",\"name\":\"jjtsm\",\"type\":\"ydqfttkacy\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ConnectorSetting response =
- manager.connectors().getWithResponse("d", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals(AutoProvision.ON, response.hybridComputeSettings().autoProvision());
- Assertions.assertEquals("dh", response.hybridComputeSettings().resourceGroupName());
- Assertions.assertEquals("ojvlirknucosaw", response.hybridComputeSettings().region());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsListMockTests.java
deleted file mode 100644
index f2e3152f106a9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ConnectorsListMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.AutoProvision;
-import com.azure.resourcemanager.security.models.ConnectorSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ConnectorsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"hybridComputeSettings\":{\"hybridComputeProvisioningState\":\"Invalid\",\"autoProvision\":\"Off\",\"resourceGroupName\":\"hwynct\",\"region\":\"zcnjfmbbfnvjxit\"},\"authenticationDetails\":{\"authenticationType\":\"AuthenticationDetailsProperties\",\"authenticationProvisioningState\":\"IncorrectPolicy\",\"grantedPermissions\":[]}},\"id\":\"iklsmni\",\"name\":\"qlcoqksyiibhyx\",\"type\":\"bgbudav\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.connectors().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(AutoProvision.OFF, response.iterator().next().hybridComputeSettings().autoProvision());
- Assertions.assertEquals("hwynct", response.iterator().next().hybridComputeSettings().resourceGroupName());
- Assertions.assertEquals("zcnjfmbbfnvjxit", response.iterator().next().hybridComputeSettings().region());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ContainerRegistryVulnerabilityPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ContainerRegistryVulnerabilityPropertiesTests.java
deleted file mode 100644
index f5cfff70aac53..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ContainerRegistryVulnerabilityPropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ContainerRegistryVulnerabilityProperties;
-
-public final class ContainerRegistryVulnerabilityPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ContainerRegistryVulnerabilityProperties model =
- BinaryData
- .fromString(
- "{\"assessedResourceType\":\"ContainerRegistryVulnerability\",\"type\":\"x\",\"cvss\":{\"pcpahprzrvxhmtf\":{\"base\":17.635876},\"nxzcm\":{\"base\":39.96614},\"gxnoqrxtdis\":{\"base\":25.372917}},\"patchable\":true,\"cve\":[{\"title\":\"lmydidwhep\",\"link\":\"wtj\"},{\"title\":\"o\",\"link\":\"xxhmwcdbc\"},{\"title\":\"oikxkxhnegk\",\"link\":\"z\"}],\"publishedTime\":\"2021-11-05T00:07:59Z\",\"vendorReferences\":[{\"title\":\"plvukaobrlbpg\",\"link\":\"bagn\"}],\"repositoryName\":\"jhgem\",\"imageDigest\":\"wakywalhjymxcgq\"}")
- .toObject(ContainerRegistryVulnerabilityProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ContainerRegistryVulnerabilityProperties model = new ContainerRegistryVulnerabilityProperties();
- model = BinaryData.fromObject(model).toObject(ContainerRegistryVulnerabilityProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAwsOfferingNativeCloudConnectionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAwsOfferingNativeCloudConnectionTests.java
deleted file mode 100644
index c514e225301b7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAwsOfferingNativeCloudConnectionTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorAwsOfferingNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class CspmMonitorAwsOfferingNativeCloudConnectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorAwsOfferingNativeCloudConnection model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"jhqxc\"}")
- .toObject(CspmMonitorAwsOfferingNativeCloudConnection.class);
- Assertions.assertEquals("jhqxc", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorAwsOfferingNativeCloudConnection model =
- new CspmMonitorAwsOfferingNativeCloudConnection().withCloudRoleArn("jhqxc");
- model = BinaryData.fromObject(model).toObject(CspmMonitorAwsOfferingNativeCloudConnection.class);
- Assertions.assertEquals("jhqxc", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAwsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAwsOfferingTests.java
deleted file mode 100644
index 3c899ba293db6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAwsOfferingTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorAwsOffering;
-import com.azure.resourcemanager.security.models.CspmMonitorAwsOfferingNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class CspmMonitorAwsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorAwsOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"CspmMonitorAws\",\"nativeCloudConnection\":{\"cloudRoleArn\":\"krmukmyjmkxett\"},\"description\":\"lojfkqidnqto\"}")
- .toObject(CspmMonitorAwsOffering.class);
- Assertions.assertEquals("krmukmyjmkxett", model.nativeCloudConnection().cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorAwsOffering model =
- new CspmMonitorAwsOffering()
- .withNativeCloudConnection(
- new CspmMonitorAwsOfferingNativeCloudConnection().withCloudRoleArn("krmukmyjmkxett"));
- model = BinaryData.fromObject(model).toObject(CspmMonitorAwsOffering.class);
- Assertions.assertEquals("krmukmyjmkxett", model.nativeCloudConnection().cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAzureDevOpsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAzureDevOpsOfferingTests.java
deleted file mode 100644
index b42823f93d69e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorAzureDevOpsOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorAzureDevOpsOffering;
-
-public final class CspmMonitorAzureDevOpsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorAzureDevOpsOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"CspmMonitorAzureDevOps\",\"description\":\"ytjlkesmmpath\"}")
- .toObject(CspmMonitorAzureDevOpsOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorAzureDevOpsOffering model = new CspmMonitorAzureDevOpsOffering();
- model = BinaryData.fromObject(model).toObject(CspmMonitorAzureDevOpsOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGcpOfferingNativeCloudConnectionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGcpOfferingNativeCloudConnectionTests.java
deleted file mode 100644
index 77bb8cf1ca39f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGcpOfferingNativeCloudConnectionTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorGcpOfferingNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class CspmMonitorGcpOfferingNativeCloudConnectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorGcpOfferingNativeCloudConnection model =
- BinaryData
- .fromString("{\"workloadIdentityProviderId\":\"wjrkb\",\"serviceAccountEmailAddress\":\"jhbtqq\"}")
- .toObject(CspmMonitorGcpOfferingNativeCloudConnection.class);
- Assertions.assertEquals("wjrkb", model.workloadIdentityProviderId());
- Assertions.assertEquals("jhbtqq", model.serviceAccountEmailAddress());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorGcpOfferingNativeCloudConnection model =
- new CspmMonitorGcpOfferingNativeCloudConnection()
- .withWorkloadIdentityProviderId("wjrkb")
- .withServiceAccountEmailAddress("jhbtqq");
- model = BinaryData.fromObject(model).toObject(CspmMonitorGcpOfferingNativeCloudConnection.class);
- Assertions.assertEquals("wjrkb", model.workloadIdentityProviderId());
- Assertions.assertEquals("jhbtqq", model.serviceAccountEmailAddress());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGcpOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGcpOfferingTests.java
deleted file mode 100644
index f6fad2a36ce2e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGcpOfferingTests.java
+++ /dev/null
@@ -1,36 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorGcpOffering;
-import com.azure.resourcemanager.security.models.CspmMonitorGcpOfferingNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class CspmMonitorGcpOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorGcpOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"CspmMonitorGcp\",\"nativeCloudConnection\":{\"workloadIdentityProviderId\":\"nqimwbzxpdcldp\",\"serviceAccountEmailAddress\":\"wnsnlaimouxwks\"},\"description\":\"udmfcoibiczius\"}")
- .toObject(CspmMonitorGcpOffering.class);
- Assertions.assertEquals("nqimwbzxpdcldp", model.nativeCloudConnection().workloadIdentityProviderId());
- Assertions.assertEquals("wnsnlaimouxwks", model.nativeCloudConnection().serviceAccountEmailAddress());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorGcpOffering model =
- new CspmMonitorGcpOffering()
- .withNativeCloudConnection(
- new CspmMonitorGcpOfferingNativeCloudConnection()
- .withWorkloadIdentityProviderId("nqimwbzxpdcldp")
- .withServiceAccountEmailAddress("wnsnlaimouxwks"));
- model = BinaryData.fromObject(model).toObject(CspmMonitorGcpOffering.class);
- Assertions.assertEquals("nqimwbzxpdcldp", model.nativeCloudConnection().workloadIdentityProviderId());
- Assertions.assertEquals("wnsnlaimouxwks", model.nativeCloudConnection().serviceAccountEmailAddress());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGitLabOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGitLabOfferingTests.java
deleted file mode 100644
index 823a7e3cd7286..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGitLabOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorGitLabOffering;
-
-public final class CspmMonitorGitLabOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorGitLabOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"CspmMonitorGitLab\",\"description\":\"vnmdyfoeboj\"}")
- .toObject(CspmMonitorGitLabOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorGitLabOffering model = new CspmMonitorGitLabOffering();
- model = BinaryData.fromObject(model).toObject(CspmMonitorGitLabOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGithubOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGithubOfferingTests.java
deleted file mode 100644
index 9f2583b961f0c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CspmMonitorGithubOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CspmMonitorGithubOffering;
-
-public final class CspmMonitorGithubOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CspmMonitorGithubOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"CspmMonitorGithub\",\"description\":\"bdbfgrlp\"}")
- .toObject(CspmMonitorGithubOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CspmMonitorGithubOffering model = new CspmMonitorGithubOffering();
- model = BinaryData.fromObject(model).toObject(CspmMonitorGithubOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAlertRuleTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAlertRuleTests.java
deleted file mode 100644
index 77399c4efa87d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAlertRuleTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CustomAlertRule;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomAlertRuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomAlertRule model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"CustomAlertRule\",\"displayName\":\"gqywgndrv\",\"description\":\"hzgpphrcgyncocpe\",\"isEnabled\":false}")
- .toObject(CustomAlertRule.class);
- Assertions.assertEquals(false, model.isEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomAlertRule model = new CustomAlertRule().withIsEnabled(false);
- model = BinaryData.fromObject(model).toObject(CustomAlertRule.class);
- Assertions.assertEquals(false, model.isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationRequestPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationRequestPropertiesTests.java
deleted file mode 100644
index aa455a49be3f1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationRequestPropertiesTests.java
+++ /dev/null
@@ -1,47 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.CustomAssessmentAutomationRequestProperties;
-import com.azure.resourcemanager.security.models.SeverityEnum;
-import com.azure.resourcemanager.security.models.SupportedCloudEnum;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomAssessmentAutomationRequestPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomAssessmentAutomationRequestProperties model =
- BinaryData
- .fromString(
- "{\"compressedQuery\":\"cbjy\",\"supportedCloud\":\"AWS\",\"severity\":\"Low\",\"displayName\":\"xqhabi\",\"description\":\"ikxwc\",\"remediationDescription\":\"yscnpqxu\"}")
- .toObject(CustomAssessmentAutomationRequestProperties.class);
- Assertions.assertEquals("cbjy", model.compressedQuery());
- Assertions.assertEquals(SupportedCloudEnum.AWS, model.supportedCloud());
- Assertions.assertEquals(SeverityEnum.LOW, model.severity());
- Assertions.assertEquals("xqhabi", model.displayName());
- Assertions.assertEquals("ikxwc", model.description());
- Assertions.assertEquals("yscnpqxu", model.remediationDescription());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomAssessmentAutomationRequestProperties model =
- new CustomAssessmentAutomationRequestProperties()
- .withCompressedQuery("cbjy")
- .withSupportedCloud(SupportedCloudEnum.AWS)
- .withSeverity(SeverityEnum.LOW)
- .withDisplayName("xqhabi")
- .withDescription("ikxwc")
- .withRemediationDescription("yscnpqxu");
- model = BinaryData.fromObject(model).toObject(CustomAssessmentAutomationRequestProperties.class);
- Assertions.assertEquals("cbjy", model.compressedQuery());
- Assertions.assertEquals(SupportedCloudEnum.AWS, model.supportedCloud());
- Assertions.assertEquals(SeverityEnum.LOW, model.severity());
- Assertions.assertEquals("xqhabi", model.displayName());
- Assertions.assertEquals("ikxwc", model.description());
- Assertions.assertEquals("yscnpqxu", model.remediationDescription());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationRequestTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationRequestTests.java
deleted file mode 100644
index 1ba48761ba0d0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationRequestTests.java
+++ /dev/null
@@ -1,47 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CustomAssessmentAutomationRequest;
-import com.azure.resourcemanager.security.models.SeverityEnum;
-import com.azure.resourcemanager.security.models.SupportedCloudEnum;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomAssessmentAutomationRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomAssessmentAutomationRequest model =
- BinaryData
- .fromString(
- "{\"properties\":{\"compressedQuery\":\"xhekuksjtxukcdm\",\"supportedCloud\":\"GCP\",\"severity\":\"Low\",\"displayName\":\"uanzwuxzdx\",\"description\":\"yrlhmwhfpmrqobm\",\"remediationDescription\":\"kknryrtihf\"},\"id\":\"tijbpzvgnwzsymgl\",\"name\":\"uf\",\"type\":\"yzkohdbihanuf\"}")
- .toObject(CustomAssessmentAutomationRequest.class);
- Assertions.assertEquals("xhekuksjtxukcdm", model.compressedQuery());
- Assertions.assertEquals(SupportedCloudEnum.GCP, model.supportedCloud());
- Assertions.assertEquals(SeverityEnum.LOW, model.severity());
- Assertions.assertEquals("uanzwuxzdx", model.displayName());
- Assertions.assertEquals("yrlhmwhfpmrqobm", model.description());
- Assertions.assertEquals("kknryrtihf", model.remediationDescription());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomAssessmentAutomationRequest model =
- new CustomAssessmentAutomationRequest()
- .withCompressedQuery("xhekuksjtxukcdm")
- .withSupportedCloud(SupportedCloudEnum.GCP)
- .withSeverity(SeverityEnum.LOW)
- .withDisplayName("uanzwuxzdx")
- .withDescription("yrlhmwhfpmrqobm")
- .withRemediationDescription("kknryrtihf");
- model = BinaryData.fromObject(model).toObject(CustomAssessmentAutomationRequest.class);
- Assertions.assertEquals("xhekuksjtxukcdm", model.compressedQuery());
- Assertions.assertEquals(SupportedCloudEnum.GCP, model.supportedCloud());
- Assertions.assertEquals(SeverityEnum.LOW, model.severity());
- Assertions.assertEquals("uanzwuxzdx", model.displayName());
- Assertions.assertEquals("yrlhmwhfpmrqobm", model.description());
- Assertions.assertEquals("kknryrtihf", model.remediationDescription());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index e78ef4dc3729d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomAssessmentAutomationsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CustomAssessmentAutomationsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .customAssessmentAutomations()
- .deleteByResourceGroupWithResponse("u", "lzladltxkpbqh", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentInnerTests.java
deleted file mode 100644
index 7760b93bbfb5b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentInnerTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.CustomEntityStoreAssignmentInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomEntityStoreAssignmentInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomEntityStoreAssignmentInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"principal\":\"ipjoxzjnchgejs\",\"entityStoreDatabaseLink\":\"dmailzydehojw\"},\"id\":\"ahuxinpm\",\"name\":\"njaqwixjspro\",\"type\":\"vcputegj\"}")
- .toObject(CustomEntityStoreAssignmentInner.class);
- Assertions.assertEquals("ipjoxzjnchgejs", model.principal());
- Assertions.assertEquals("dmailzydehojw", model.entityStoreDatabaseLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomEntityStoreAssignmentInner model =
- new CustomEntityStoreAssignmentInner()
- .withPrincipal("ipjoxzjnchgejs")
- .withEntityStoreDatabaseLink("dmailzydehojw");
- model = BinaryData.fromObject(model).toObject(CustomEntityStoreAssignmentInner.class);
- Assertions.assertEquals("ipjoxzjnchgejs", model.principal());
- Assertions.assertEquals("dmailzydehojw", model.entityStoreDatabaseLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentPropertiesTests.java
deleted file mode 100644
index 6109b55d00ce6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentPropertiesTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.CustomEntityStoreAssignmentProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomEntityStoreAssignmentPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomEntityStoreAssignmentProperties model =
- BinaryData
- .fromString("{\"principal\":\"mfdatscmdvpj\",\"entityStoreDatabaseLink\":\"lsuuvmkjozkrwfnd\"}")
- .toObject(CustomEntityStoreAssignmentProperties.class);
- Assertions.assertEquals("mfdatscmdvpj", model.principal());
- Assertions.assertEquals("lsuuvmkjozkrwfnd", model.entityStoreDatabaseLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomEntityStoreAssignmentProperties model =
- new CustomEntityStoreAssignmentProperties()
- .withPrincipal("mfdatscmdvpj")
- .withEntityStoreDatabaseLink("lsuuvmkjozkrwfnd");
- model = BinaryData.fromObject(model).toObject(CustomEntityStoreAssignmentProperties.class);
- Assertions.assertEquals("mfdatscmdvpj", model.principal());
- Assertions.assertEquals("lsuuvmkjozkrwfnd", model.entityStoreDatabaseLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentRequestPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentRequestPropertiesTests.java
deleted file mode 100644
index 70cd0dc9b2ad4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentRequestPropertiesTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.CustomEntityStoreAssignmentRequestProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomEntityStoreAssignmentRequestPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomEntityStoreAssignmentRequestProperties model =
- BinaryData
- .fromString("{\"principal\":\"wryoqpsoacc\"}")
- .toObject(CustomEntityStoreAssignmentRequestProperties.class);
- Assertions.assertEquals("wryoqpsoacc", model.principal());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomEntityStoreAssignmentRequestProperties model =
- new CustomEntityStoreAssignmentRequestProperties().withPrincipal("wryoqpsoacc");
- model = BinaryData.fromObject(model).toObject(CustomEntityStoreAssignmentRequestProperties.class);
- Assertions.assertEquals("wryoqpsoacc", model.principal());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentRequestTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentRequestTests.java
deleted file mode 100644
index 56bb9c135e803..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentRequestTests.java
+++ /dev/null
@@ -1,27 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CustomEntityStoreAssignmentRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomEntityStoreAssignmentRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomEntityStoreAssignmentRequest model =
- BinaryData
- .fromString("{\"properties\":{\"principal\":\"jpslwejd\"}}")
- .toObject(CustomEntityStoreAssignmentRequest.class);
- Assertions.assertEquals("jpslwejd", model.principal());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomEntityStoreAssignmentRequest model = new CustomEntityStoreAssignmentRequest().withPrincipal("jpslwejd");
- model = BinaryData.fromObject(model).toObject(CustomEntityStoreAssignmentRequest.class);
- Assertions.assertEquals("jpslwejd", model.principal());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsCreateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsCreateWithResponseMockTests.java
deleted file mode 100644
index 291bf119276b9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,73 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.CustomEntityStoreAssignment;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CustomEntityStoreAssignmentsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"principal\":\"wzm\",\"entityStoreDatabaseLink\":\"lrixysfnimsq\"},\"id\":\"wwwmhkruwaedrym\",\"name\":\"mlqoinhzduew\",\"type\":\"hapfjiik\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CustomEntityStoreAssignment response =
- manager
- .customEntityStoreAssignments()
- .define("qgsdr")
- .withExistingResourceGroup("bh")
- .withPrincipal("tjxophgerhsmv")
- .create();
-
- Assertions.assertEquals("wzm", response.principal());
- Assertions.assertEquals("lrixysfnimsq", response.entityStoreDatabaseLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 3dd6a74d56bec..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CustomEntityStoreAssignmentsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .customEntityStoreAssignments()
- .deleteByResourceGroupWithResponse("jfowxwy", "vcxjsgbipcukdvek", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsGetByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsGetByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 989cf9a63b52b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsGetByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.CustomEntityStoreAssignment;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CustomEntityStoreAssignmentsGetByResourceGroupWithResponseMockTests {
- @Test
- public void testGetByResourceGroupWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"principal\":\"sztekxby\",\"entityStoreDatabaseLink\":\"msfe\"},\"id\":\"x\",\"name\":\"ihpq\",\"type\":\"dagrhrdicxdw\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CustomEntityStoreAssignment response =
- manager
- .customEntityStoreAssignments()
- .getByResourceGroupWithResponse("kxpkzwaq", "ofqovchiqbplv", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("sztekxby", response.principal());
- Assertions.assertEquals("msfe", response.entityStoreDatabaseLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListByResourceGroupMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListByResourceGroupMockTests.java
deleted file mode 100644
index d66bf1861c56e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListByResourceGroupMockTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.CustomEntityStoreAssignment;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CustomEntityStoreAssignmentsListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"principal\":\"d\",\"entityStoreDatabaseLink\":\"bfdyjduss\"},\"id\":\"yszekbhwlka\",\"name\":\"ggkrehbf\",\"type\":\"n\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.customEntityStoreAssignments().listByResourceGroup("buhoduchv", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("d", response.iterator().next().principal());
- Assertions.assertEquals("bfdyjduss", response.iterator().next().entityStoreDatabaseLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListMockTests.java
deleted file mode 100644
index 755f2ef03197b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListMockTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.CustomEntityStoreAssignment;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CustomEntityStoreAssignmentsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"principal\":\"fljfiimreoagsqt\",\"entityStoreDatabaseLink\":\"dusr\"},\"id\":\"xxfavsqwudohzilf\",\"name\":\"nl\",\"type\":\"kpsimsfeypofqp\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.customEntityStoreAssignments().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("fljfiimreoagsqt", response.iterator().next().principal());
- Assertions.assertEquals("dusr", response.iterator().next().entityStoreDatabaseLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListResultTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListResultTests.java
deleted file mode 100644
index 8b522177114b1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CustomEntityStoreAssignmentsListResultTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.CustomEntityStoreAssignmentsListResult;
-import org.junit.jupiter.api.Assertions;
-
-public final class CustomEntityStoreAssignmentsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CustomEntityStoreAssignmentsListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"principal\":\"j\",\"entityStoreDatabaseLink\":\"hbcryffdfdosyge\"},\"id\":\"paojakhmsbzjh\",\"name\":\"rzevdphlxaol\",\"type\":\"hqtrgqjbpf\"},{\"properties\":{\"principal\":\"n\",\"entityStoreDatabaseLink\":\"v\"},\"id\":\"cjrwzoxxjtfellu\",\"name\":\"fziton\",\"type\":\"eqfpj\"},{\"properties\":{\"principal\":\"ofpdvh\",\"entityStoreDatabaseLink\":\"xxypininmay\"},\"id\":\"uybbkpodep\",\"name\":\"oginuvamiheognar\",\"type\":\"zxtheotusivyevcc\"}],\"nextLink\":\"ihnhun\"}")
- .toObject(CustomEntityStoreAssignmentsListResult.class);
- Assertions.assertEquals("ihnhun", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CustomEntityStoreAssignmentsListResult model =
- new CustomEntityStoreAssignmentsListResult().withNextLink("ihnhun");
- model = BinaryData.fromObject(model).toObject(CustomEntityStoreAssignmentsListResult.class);
- Assertions.assertEquals("ihnhun", model.nextLink());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CveTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CveTests.java
deleted file mode 100644
index b0dfc5e6e3891..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CveTests.java
+++ /dev/null
@@ -1,21 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.Cve;
-
-public final class CveTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Cve model = BinaryData.fromString("{\"title\":\"rclsso\",\"link\":\"omevtfycn\"}").toObject(Cve.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Cve model = new Cve();
- model = BinaryData.fromObject(model).toObject(Cve.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CvssTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CvssTests.java
deleted file mode 100644
index ac89cf48db959..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/CvssTests.java
+++ /dev/null
@@ -1,21 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.Cvss;
-
-public final class CvssTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Cvss model = BinaryData.fromString("{\"base\":57.412754}").toObject(Cvss.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Cvss model = new Cvss();
- model = BinaryData.fromObject(model).toObject(Cvss.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DataExportSettingPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DataExportSettingPropertiesTests.java
deleted file mode 100644
index 1ef43dbd37e64..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DataExportSettingPropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DataExportSettingProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class DataExportSettingPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DataExportSettingProperties model =
- BinaryData.fromString("{\"enabled\":true}").toObject(DataExportSettingProperties.class);
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DataExportSettingProperties model = new DataExportSettingProperties().withEnabled(true);
- model = BinaryData.fromObject(model).toObject(DataExportSettingProperties.class);
- Assertions.assertEquals(true, model.enabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DataExportSettingsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DataExportSettingsTests.java
deleted file mode 100644
index cfaa562cfc7cc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DataExportSettingsTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DataExportSettings;
-import org.junit.jupiter.api.Assertions;
-
-public final class DataExportSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DataExportSettings model =
- BinaryData
- .fromString(
- "{\"kind\":\"DataExportSettings\",\"properties\":{\"enabled\":true},\"id\":\"mptyrilkfbnrqqxv\",\"name\":\"tpbnfnqtxjtoma\",\"type\":\"swbnfddepldwqjns\"}")
- .toObject(DataExportSettings.class);
- Assertions.assertEquals(true, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DataExportSettings model = new DataExportSettings().withEnabled(true);
- model = BinaryData.fromObject(model).toObject(DataExportSettings.class);
- Assertions.assertEquals(true, model.enabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingDataSensitivityDiscoveryTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingDataSensitivityDiscoveryTests.java
deleted file mode 100644
index 2307bf7a6b368..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingDataSensitivityDiscoveryTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingDataSensitivityDiscovery;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderCspmAwsOfferingDataSensitivityDiscoveryTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderCspmAwsOfferingDataSensitivityDiscovery model =
- BinaryData
- .fromString("{\"enabled\":true,\"cloudRoleArn\":\"ythqkkwhbgxvel\"}")
- .toObject(DefenderCspmAwsOfferingDataSensitivityDiscovery.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("ythqkkwhbgxvel", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderCspmAwsOfferingDataSensitivityDiscovery model =
- new DefenderCspmAwsOfferingDataSensitivityDiscovery().withEnabled(true).withCloudRoleArn("ythqkkwhbgxvel");
- model = BinaryData.fromObject(model).toObject(DefenderCspmAwsOfferingDataSensitivityDiscovery.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("ythqkkwhbgxvel", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingDatabasesDspmTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingDatabasesDspmTests.java
deleted file mode 100644
index c5377f6faf433..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingDatabasesDspmTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingDatabasesDspm;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderCspmAwsOfferingDatabasesDspmTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderCspmAwsOfferingDatabasesDspm model =
- BinaryData
- .fromString("{\"enabled\":true,\"cloudRoleArn\":\"nxdmnitmujdtv\"}")
- .toObject(DefenderCspmAwsOfferingDatabasesDspm.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("nxdmnitmujdtv", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderCspmAwsOfferingDatabasesDspm model =
- new DefenderCspmAwsOfferingDatabasesDspm().withEnabled(true).withCloudRoleArn("nxdmnitmujdtv");
- model = BinaryData.fromObject(model).toObject(DefenderCspmAwsOfferingDatabasesDspm.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("nxdmnitmujdtv", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingTests.java
deleted file mode 100644
index 5f48fb7b27338..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingTests.java
+++ /dev/null
@@ -1,75 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOffering;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingDataSensitivityDiscovery;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingDatabasesDspm;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingVmScanners;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderCspmAwsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderCspmAwsOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderCspmAws\",\"vmScanners\":{\"enabled\":false,\"configuration\":{\"cloudRoleArn\":\"e\",\"scanningMode\":\"Default\",\"exclusionTags\":{\"ktjtgra\":\"llbvgwzsfftedous\",\"fkbebauzl\":\"aqo\"}}},\"dataSensitivityDiscovery\":{\"enabled\":false,\"cloudRoleArn\":\"wpfhnjzudrtpzkgm\"},\"databasesDspm\":{\"enabled\":false,\"cloudRoleArn\":\"hczzqrhm\"},\"description\":\"qbedygisrzwn\"}")
- .toObject(DefenderCspmAwsOffering.class);
- Assertions.assertEquals(false, model.vmScanners().enabled());
- Assertions.assertEquals("e", model.vmScanners().configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.vmScanners().configuration().scanningMode());
- Assertions.assertEquals("llbvgwzsfftedous", model.vmScanners().configuration().exclusionTags().get("ktjtgra"));
- Assertions.assertEquals(false, model.dataSensitivityDiscovery().enabled());
- Assertions.assertEquals("wpfhnjzudrtpzkgm", model.dataSensitivityDiscovery().cloudRoleArn());
- Assertions.assertEquals(false, model.databasesDspm().enabled());
- Assertions.assertEquals("hczzqrhm", model.databasesDspm().cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderCspmAwsOffering model =
- new DefenderCspmAwsOffering()
- .withVmScanners(
- new DefenderCspmAwsOfferingVmScanners()
- .withEnabled(false)
- .withConfiguration(
- new DefenderCspmAwsOfferingVmScannersConfiguration()
- .withCloudRoleArn("e")
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(mapOf("ktjtgra", "llbvgwzsfftedous", "fkbebauzl", "aqo"))))
- .withDataSensitivityDiscovery(
- new DefenderCspmAwsOfferingDataSensitivityDiscovery()
- .withEnabled(false)
- .withCloudRoleArn("wpfhnjzudrtpzkgm"))
- .withDatabasesDspm(
- new DefenderCspmAwsOfferingDatabasesDspm().withEnabled(false).withCloudRoleArn("hczzqrhm"));
- model = BinaryData.fromObject(model).toObject(DefenderCspmAwsOffering.class);
- Assertions.assertEquals(false, model.vmScanners().enabled());
- Assertions.assertEquals("e", model.vmScanners().configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.vmScanners().configuration().scanningMode());
- Assertions.assertEquals("llbvgwzsfftedous", model.vmScanners().configuration().exclusionTags().get("ktjtgra"));
- Assertions.assertEquals(false, model.dataSensitivityDiscovery().enabled());
- Assertions.assertEquals("wpfhnjzudrtpzkgm", model.dataSensitivityDiscovery().cloudRoleArn());
- Assertions.assertEquals(false, model.databasesDspm().enabled());
- Assertions.assertEquals("hczzqrhm", model.databasesDspm().cloudRoleArn());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingVmScannersConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingVmScannersConfigurationTests.java
deleted file mode 100644
index b0f6261d86409..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingVmScannersConfigurationTests.java
+++ /dev/null
@@ -1,50 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderCspmAwsOfferingVmScannersConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderCspmAwsOfferingVmScannersConfiguration model =
- BinaryData
- .fromString(
- "{\"cloudRoleArn\":\"sqrggvrbnyruko\",\"scanningMode\":\"Default\",\"exclusionTags\":{\"p\":\"duwjleipjlhwy\"}}")
- .toObject(DefenderCspmAwsOfferingVmScannersConfiguration.class);
- Assertions.assertEquals("sqrggvrbnyruko", model.cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.scanningMode());
- Assertions.assertEquals("duwjleipjlhwy", model.exclusionTags().get("p"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderCspmAwsOfferingVmScannersConfiguration model =
- new DefenderCspmAwsOfferingVmScannersConfiguration()
- .withCloudRoleArn("sqrggvrbnyruko")
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(mapOf("p", "duwjleipjlhwy"));
- model = BinaryData.fromObject(model).toObject(DefenderCspmAwsOfferingVmScannersConfiguration.class);
- Assertions.assertEquals("sqrggvrbnyruko", model.cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.scanningMode());
- Assertions.assertEquals("duwjleipjlhwy", model.exclusionTags().get("p"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingVmScannersTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingVmScannersTests.java
deleted file mode 100644
index a99b23fb56e18..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmAwsOfferingVmScannersTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingVmScanners;
-import com.azure.resourcemanager.security.models.DefenderCspmAwsOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderCspmAwsOfferingVmScannersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderCspmAwsOfferingVmScanners model =
- BinaryData
- .fromString(
- "{\"enabled\":false,\"configuration\":{\"cloudRoleArn\":\"jch\",\"scanningMode\":\"Default\",\"exclusionTags\":{\"rfgdrwj\":\"ctofldseacdhztxk\",\"xet\":\"yewhfjsrwq\",\"thvmaxgnuyeamcmh\":\"gcwvrrmdqntycna\",\"wcpqtwl\":\"dfjeceho\"}}}")
- .toObject(DefenderCspmAwsOfferingVmScanners.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("jch", model.configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.configuration().scanningMode());
- Assertions.assertEquals("ctofldseacdhztxk", model.configuration().exclusionTags().get("rfgdrwj"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderCspmAwsOfferingVmScanners model =
- new DefenderCspmAwsOfferingVmScanners()
- .withEnabled(false)
- .withConfiguration(
- new DefenderCspmAwsOfferingVmScannersConfiguration()
- .withCloudRoleArn("jch")
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(
- mapOf(
- "rfgdrwj",
- "ctofldseacdhztxk",
- "xet",
- "yewhfjsrwq",
- "thvmaxgnuyeamcmh",
- "gcwvrrmdqntycna",
- "wcpqtwl",
- "dfjeceho")));
- model = BinaryData.fromObject(model).toObject(DefenderCspmAwsOfferingVmScanners.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("jch", model.configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.configuration().scanningMode());
- Assertions.assertEquals("ctofldseacdhztxk", model.configuration().exclusionTags().get("rfgdrwj"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmGcpOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmGcpOfferingTests.java
deleted file mode 100644
index e92e258df8701..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderCspmGcpOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderCspmGcpOffering;
-
-public final class DefenderCspmGcpOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderCspmGcpOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"DefenderCspmGcp\",\"description\":\"lyymffhmjpddny\"}")
- .toObject(DefenderCspmGcpOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderCspmGcpOffering model = new DefenderCspmGcpOffering();
- model = BinaryData.fromObject(model).toObject(DefenderCspmGcpOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfigurationTests.java
deleted file mode 100644
index 62f7fbd72b7a9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfigurationTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration model =
- BinaryData
- .fromString("{\"proxy\":\"qbmfuvqarwz\",\"privateLinkScope\":\"qreblui\"}")
- .toObject(DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("qbmfuvqarwz", model.proxy());
- Assertions.assertEquals("qreblui", model.privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration model =
- new DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration()
- .withProxy("qbmfuvqarwz")
- .withPrivateLinkScope("qreblui");
- model =
- BinaryData.fromObject(model).toObject(DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("qbmfuvqarwz", model.proxy());
- Assertions.assertEquals("qreblui", model.privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingArcAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingArcAutoProvisioningTests.java
deleted file mode 100644
index 038e6c234ae7b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingArcAutoProvisioningTests.java
+++ /dev/null
@@ -1,42 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderFoDatabasesAwsOfferingArcAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderFoDatabasesAwsOfferingArcAutoProvisioning model =
- BinaryData
- .fromString(
- "{\"enabled\":true,\"cloudRoleArn\":\"kt\",\"configuration\":{\"proxy\":\"jwzzoslpk\",\"privateLinkScope\":\"tglwkzpgajsqjc\"}}")
- .toObject(DefenderFoDatabasesAwsOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("kt", model.cloudRoleArn());
- Assertions.assertEquals("jwzzoslpk", model.configuration().proxy());
- Assertions.assertEquals("tglwkzpgajsqjc", model.configuration().privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderFoDatabasesAwsOfferingArcAutoProvisioning model =
- new DefenderFoDatabasesAwsOfferingArcAutoProvisioning()
- .withEnabled(true)
- .withCloudRoleArn("kt")
- .withConfiguration(
- new DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration()
- .withProxy("jwzzoslpk")
- .withPrivateLinkScope("tglwkzpgajsqjc"));
- model = BinaryData.fromObject(model).toObject(DefenderFoDatabasesAwsOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("kt", model.cloudRoleArn());
- Assertions.assertEquals("jwzzoslpk", model.configuration().proxy());
- Assertions.assertEquals("tglwkzpgajsqjc", model.configuration().privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingDatabasesDspmTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingDatabasesDspmTests.java
deleted file mode 100644
index 73dd794694c05..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingDatabasesDspmTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingDatabasesDspm;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderFoDatabasesAwsOfferingDatabasesDspmTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderFoDatabasesAwsOfferingDatabasesDspm model =
- BinaryData
- .fromString("{\"enabled\":false,\"cloudRoleArn\":\"kbudbtwaokb\"}")
- .toObject(DefenderFoDatabasesAwsOfferingDatabasesDspm.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("kbudbtwaokb", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderFoDatabasesAwsOfferingDatabasesDspm model =
- new DefenderFoDatabasesAwsOfferingDatabasesDspm().withEnabled(false).withCloudRoleArn("kbudbtwaokb");
- model = BinaryData.fromObject(model).toObject(DefenderFoDatabasesAwsOfferingDatabasesDspm.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("kbudbtwaokb", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingRdsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingRdsTests.java
deleted file mode 100644
index 7b4235a71a2bc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingRdsTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingRds;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderFoDatabasesAwsOfferingRdsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderFoDatabasesAwsOfferingRds model =
- BinaryData
- .fromString("{\"enabled\":true,\"cloudRoleArn\":\"xsfgtdmbvxekr\"}")
- .toObject(DefenderFoDatabasesAwsOfferingRds.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("xsfgtdmbvxekr", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderFoDatabasesAwsOfferingRds model =
- new DefenderFoDatabasesAwsOfferingRds().withEnabled(true).withCloudRoleArn("xsfgtdmbvxekr");
- model = BinaryData.fromObject(model).toObject(DefenderFoDatabasesAwsOfferingRds.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("xsfgtdmbvxekr", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingTests.java
deleted file mode 100644
index aacdd14349c82..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderFoDatabasesAwsOfferingTests.java
+++ /dev/null
@@ -1,60 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOffering;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingDatabasesDspm;
-import com.azure.resourcemanager.security.models.DefenderFoDatabasesAwsOfferingRds;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderFoDatabasesAwsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderFoDatabasesAwsOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderForDatabasesAws\",\"arcAutoProvisioning\":{\"enabled\":true,\"cloudRoleArn\":\"mbqdabzfivfo\",\"configuration\":{\"proxy\":\"sthhzagjfwy\",\"privateLinkScope\":\"lhgenuzejgvkv\"}},\"rds\":{\"enabled\":false,\"cloudRoleArn\":\"zllrz\"},\"databasesDspm\":{\"enabled\":true,\"cloudRoleArn\":\"qgmihzpimcqrhnxt\"},\"description\":\"nklogxsvtzarhzv\"}")
- .toObject(DefenderFoDatabasesAwsOffering.class);
- Assertions.assertEquals(true, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("mbqdabzfivfo", model.arcAutoProvisioning().cloudRoleArn());
- Assertions.assertEquals("sthhzagjfwy", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("lhgenuzejgvkv", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions.assertEquals(false, model.rds().enabled());
- Assertions.assertEquals("zllrz", model.rds().cloudRoleArn());
- Assertions.assertEquals(true, model.databasesDspm().enabled());
- Assertions.assertEquals("qgmihzpimcqrhnxt", model.databasesDspm().cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderFoDatabasesAwsOffering model =
- new DefenderFoDatabasesAwsOffering()
- .withArcAutoProvisioning(
- new DefenderFoDatabasesAwsOfferingArcAutoProvisioning()
- .withEnabled(true)
- .withCloudRoleArn("mbqdabzfivfo")
- .withConfiguration(
- new DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration()
- .withProxy("sthhzagjfwy")
- .withPrivateLinkScope("lhgenuzejgvkv")))
- .withRds(new DefenderFoDatabasesAwsOfferingRds().withEnabled(false).withCloudRoleArn("zllrz"))
- .withDatabasesDspm(
- new DefenderFoDatabasesAwsOfferingDatabasesDspm()
- .withEnabled(true)
- .withCloudRoleArn("qgmihzpimcqrhnxt"));
- model = BinaryData.fromObject(model).toObject(DefenderFoDatabasesAwsOffering.class);
- Assertions.assertEquals(true, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("mbqdabzfivfo", model.arcAutoProvisioning().cloudRoleArn());
- Assertions.assertEquals("sthhzagjfwy", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("lhgenuzejgvkv", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions.assertEquals(false, model.rds().enabled());
- Assertions.assertEquals("zllrz", model.rds().cloudRoleArn());
- Assertions.assertEquals(true, model.databasesDspm().enabled());
- Assertions.assertEquals("qgmihzpimcqrhnxt", model.databasesDspm().cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingCloudWatchToKinesisTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingCloudWatchToKinesisTests.java
deleted file mode 100644
index d876386ab2098..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingCloudWatchToKinesisTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingCloudWatchToKinesis;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingCloudWatchToKinesisTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOfferingCloudWatchToKinesis model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"zuodacpun\"}")
- .toObject(DefenderForContainersAwsOfferingCloudWatchToKinesis.class);
- Assertions.assertEquals("zuodacpun", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOfferingCloudWatchToKinesis model =
- new DefenderForContainersAwsOfferingCloudWatchToKinesis().withCloudRoleArn("zuodacpun");
- model = BinaryData.fromObject(model).toObject(DefenderForContainersAwsOfferingCloudWatchToKinesis.class);
- Assertions.assertEquals("zuodacpun", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTaskTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTaskTests.java
deleted file mode 100644
index cc6b0ec2a746f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTaskTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTaskTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"lpckaewsedves\"}")
- .toObject(DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask.class);
- Assertions.assertEquals("lpckaewsedves", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask model =
- new DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask()
- .withCloudRoleArn("lpckaewsedves");
- model =
- BinaryData
- .fromObject(model)
- .toObject(DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask.class);
- Assertions.assertEquals("lpckaewsedves", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTests.java
deleted file mode 100644
index 1b83dea1aa12d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTests.java
+++ /dev/null
@@ -1,31 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingContainerVulnerabilityAssessment;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOfferingContainerVulnerabilityAssessment model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"ynu\"}")
- .toObject(DefenderForContainersAwsOfferingContainerVulnerabilityAssessment.class);
- Assertions.assertEquals("ynu", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOfferingContainerVulnerabilityAssessment model =
- new DefenderForContainersAwsOfferingContainerVulnerabilityAssessment().withCloudRoleArn("ynu");
- model =
- BinaryData
- .fromObject(model)
- .toObject(DefenderForContainersAwsOfferingContainerVulnerabilityAssessment.class);
- Assertions.assertEquals("ynu", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKinesisToS3Tests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKinesisToS3Tests.java
deleted file mode 100644
index 87796576427d0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKinesisToS3Tests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingKinesisToS3;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingKinesisToS3Tests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOfferingKinesisToS3 model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"tepdjxqes\"}")
- .toObject(DefenderForContainersAwsOfferingKinesisToS3.class);
- Assertions.assertEquals("tepdjxqes", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOfferingKinesisToS3 model =
- new DefenderForContainersAwsOfferingKinesisToS3().withCloudRoleArn("tepdjxqes");
- model = BinaryData.fromObject(model).toObject(DefenderForContainersAwsOfferingKinesisToS3.class);
- Assertions.assertEquals("tepdjxqes", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKubernetesScubaReaderTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKubernetesScubaReaderTests.java
deleted file mode 100644
index 167d0150f9a5c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKubernetesScubaReaderTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingKubernetesScubaReader;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingKubernetesScubaReaderTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOfferingKubernetesScubaReader model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"gxvrpjl\"}")
- .toObject(DefenderForContainersAwsOfferingKubernetesScubaReader.class);
- Assertions.assertEquals("gxvrpjl", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOfferingKubernetesScubaReader model =
- new DefenderForContainersAwsOfferingKubernetesScubaReader().withCloudRoleArn("gxvrpjl");
- model = BinaryData.fromObject(model).toObject(DefenderForContainersAwsOfferingKubernetesScubaReader.class);
- Assertions.assertEquals("gxvrpjl", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKubernetesServiceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKubernetesServiceTests.java
deleted file mode 100644
index b499ff38d9a0f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingKubernetesServiceTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingKubernetesService;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingKubernetesServiceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOfferingKubernetesService model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"cly\"}")
- .toObject(DefenderForContainersAwsOfferingKubernetesService.class);
- Assertions.assertEquals("cly", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOfferingKubernetesService model =
- new DefenderForContainersAwsOfferingKubernetesService().withCloudRoleArn("cly");
- model = BinaryData.fromObject(model).toObject(DefenderForContainersAwsOfferingKubernetesService.class);
- Assertions.assertEquals("cly", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingTests.java
deleted file mode 100644
index abf62d2ec1d7a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersAwsOfferingTests.java
+++ /dev/null
@@ -1,69 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOffering;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingCloudWatchToKinesis;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingContainerVulnerabilityAssessment;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingKinesisToS3;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingKubernetesScubaReader;
-import com.azure.resourcemanager.security.models.DefenderForContainersAwsOfferingKubernetesService;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersAwsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersAwsOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderForContainersAws\",\"kubernetesService\":{\"cloudRoleArn\":\"tkbtnqlrngl\"},\"kubernetesScubaReader\":{\"cloudRoleArn\":\"iipsnawwlqkz\"},\"cloudWatchToKinesis\":{\"cloudRoleArn\":\"hllxricctkw\"},\"kinesisToS3\":{\"cloudRoleArn\":\"qoajxeiyglesrwva\"},\"containerVulnerabilityAssessment\":{\"cloudRoleArn\":\"dctrceqnkbrupobe\"},\"containerVulnerabilityAssessmentTask\":{\"cloudRoleArn\":\"lj\"},\"enableContainerVulnerabilityAssessment\":true,\"autoProvisioning\":true,\"kubeAuditRetentionTime\":2313519110456203073,\"scubaExternalId\":\"pbibn\",\"description\":\"phepifexleqirc\"}")
- .toObject(DefenderForContainersAwsOffering.class);
- Assertions.assertEquals("tkbtnqlrngl", model.kubernetesService().cloudRoleArn());
- Assertions.assertEquals("iipsnawwlqkz", model.kubernetesScubaReader().cloudRoleArn());
- Assertions.assertEquals("hllxricctkw", model.cloudWatchToKinesis().cloudRoleArn());
- Assertions.assertEquals("qoajxeiyglesrwva", model.kinesisToS3().cloudRoleArn());
- Assertions.assertEquals("dctrceqnkbrupobe", model.containerVulnerabilityAssessment().cloudRoleArn());
- Assertions.assertEquals("lj", model.containerVulnerabilityAssessmentTask().cloudRoleArn());
- Assertions.assertEquals(true, model.enableContainerVulnerabilityAssessment());
- Assertions.assertEquals(true, model.autoProvisioning());
- Assertions.assertEquals(2313519110456203073L, model.kubeAuditRetentionTime());
- Assertions.assertEquals("pbibn", model.scubaExternalId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersAwsOffering model =
- new DefenderForContainersAwsOffering()
- .withKubernetesService(
- new DefenderForContainersAwsOfferingKubernetesService().withCloudRoleArn("tkbtnqlrngl"))
- .withKubernetesScubaReader(
- new DefenderForContainersAwsOfferingKubernetesScubaReader().withCloudRoleArn("iipsnawwlqkz"))
- .withCloudWatchToKinesis(
- new DefenderForContainersAwsOfferingCloudWatchToKinesis().withCloudRoleArn("hllxricctkw"))
- .withKinesisToS3(new DefenderForContainersAwsOfferingKinesisToS3().withCloudRoleArn("qoajxeiyglesrwva"))
- .withContainerVulnerabilityAssessment(
- new DefenderForContainersAwsOfferingContainerVulnerabilityAssessment()
- .withCloudRoleArn("dctrceqnkbrupobe"))
- .withContainerVulnerabilityAssessmentTask(
- new DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask().withCloudRoleArn("lj"))
- .withEnableContainerVulnerabilityAssessment(true)
- .withAutoProvisioning(true)
- .withKubeAuditRetentionTime(2313519110456203073L)
- .withScubaExternalId("pbibn");
- model = BinaryData.fromObject(model).toObject(DefenderForContainersAwsOffering.class);
- Assertions.assertEquals("tkbtnqlrngl", model.kubernetesService().cloudRoleArn());
- Assertions.assertEquals("iipsnawwlqkz", model.kubernetesScubaReader().cloudRoleArn());
- Assertions.assertEquals("hllxricctkw", model.cloudWatchToKinesis().cloudRoleArn());
- Assertions.assertEquals("qoajxeiyglesrwva", model.kinesisToS3().cloudRoleArn());
- Assertions.assertEquals("dctrceqnkbrupobe", model.containerVulnerabilityAssessment().cloudRoleArn());
- Assertions.assertEquals("lj", model.containerVulnerabilityAssessmentTask().cloudRoleArn());
- Assertions.assertEquals(true, model.enableContainerVulnerabilityAssessment());
- Assertions.assertEquals(true, model.autoProvisioning());
- Assertions.assertEquals(2313519110456203073L, model.kubeAuditRetentionTime());
- Assertions.assertEquals("pbibn", model.scubaExternalId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnectionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnectionTests.java
deleted file mode 100644
index 73efe1466c4e0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingDataPipelineNativeCloudConnectionTests.java
+++ /dev/null
@@ -1,36 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersGcpOfferingDataPipelineNativeCloudConnectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection model =
- BinaryData
- .fromString(
- "{\"serviceAccountEmailAddress\":\"iklhsyekrdrenx\",\"workloadIdentityProviderId\":\"riyehqbeivdlhy\"}")
- .toObject(DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection.class);
- Assertions.assertEquals("iklhsyekrdrenx", model.serviceAccountEmailAddress());
- Assertions.assertEquals("riyehqbeivdlhy", model.workloadIdentityProviderId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection model =
- new DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection()
- .withServiceAccountEmailAddress("iklhsyekrdrenx")
- .withWorkloadIdentityProviderId("riyehqbeivdlhy");
- model =
- BinaryData
- .fromObject(model)
- .toObject(DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection.class);
- Assertions.assertEquals("iklhsyekrdrenx", model.serviceAccountEmailAddress());
- Assertions.assertEquals("riyehqbeivdlhy", model.workloadIdentityProviderId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingNativeCloudConnectionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingNativeCloudConnectionTests.java
deleted file mode 100644
index 5e5cd5096c944..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingNativeCloudConnectionTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersGcpOfferingNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersGcpOfferingNativeCloudConnectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersGcpOfferingNativeCloudConnection model =
- BinaryData
- .fromString(
- "{\"serviceAccountEmailAddress\":\"jgazl\",\"workloadIdentityProviderId\":\"bzfcpuoeedwj\"}")
- .toObject(DefenderForContainersGcpOfferingNativeCloudConnection.class);
- Assertions.assertEquals("jgazl", model.serviceAccountEmailAddress());
- Assertions.assertEquals("bzfcpuoeedwj", model.workloadIdentityProviderId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersGcpOfferingNativeCloudConnection model =
- new DefenderForContainersGcpOfferingNativeCloudConnection()
- .withServiceAccountEmailAddress("jgazl")
- .withWorkloadIdentityProviderId("bzfcpuoeedwj");
- model = BinaryData.fromObject(model).toObject(DefenderForContainersGcpOfferingNativeCloudConnection.class);
- Assertions.assertEquals("jgazl", model.serviceAccountEmailAddress());
- Assertions.assertEquals("bzfcpuoeedwj", model.workloadIdentityProviderId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingTests.java
deleted file mode 100644
index 10c38f1783136..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForContainersGcpOfferingTests.java
+++ /dev/null
@@ -1,56 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForContainersGcpOffering;
-import com.azure.resourcemanager.security.models.DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection;
-import com.azure.resourcemanager.security.models.DefenderForContainersGcpOfferingNativeCloudConnection;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForContainersGcpOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForContainersGcpOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderForContainersGcp\",\"nativeCloudConnection\":{\"serviceAccountEmailAddress\":\"anfbc\",\"workloadIdentityProviderId\":\"qagywvtxig\"},\"dataPipelineNativeCloudConnection\":{\"serviceAccountEmailAddress\":\"ktpgaeukyawohp\",\"workloadIdentityProviderId\":\"hqnucs\"},\"auditLogsAutoProvisioningFlag\":true,\"defenderAgentAutoProvisioningFlag\":false,\"policyAgentAutoProvisioningFlag\":false,\"description\":\"tdlpbn\"}")
- .toObject(DefenderForContainersGcpOffering.class);
- Assertions.assertEquals("anfbc", model.nativeCloudConnection().serviceAccountEmailAddress());
- Assertions.assertEquals("qagywvtxig", model.nativeCloudConnection().workloadIdentityProviderId());
- Assertions
- .assertEquals("ktpgaeukyawohp", model.dataPipelineNativeCloudConnection().serviceAccountEmailAddress());
- Assertions.assertEquals("hqnucs", model.dataPipelineNativeCloudConnection().workloadIdentityProviderId());
- Assertions.assertEquals(true, model.auditLogsAutoProvisioningFlag());
- Assertions.assertEquals(false, model.defenderAgentAutoProvisioningFlag());
- Assertions.assertEquals(false, model.policyAgentAutoProvisioningFlag());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForContainersGcpOffering model =
- new DefenderForContainersGcpOffering()
- .withNativeCloudConnection(
- new DefenderForContainersGcpOfferingNativeCloudConnection()
- .withServiceAccountEmailAddress("anfbc")
- .withWorkloadIdentityProviderId("qagywvtxig"))
- .withDataPipelineNativeCloudConnection(
- new DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection()
- .withServiceAccountEmailAddress("ktpgaeukyawohp")
- .withWorkloadIdentityProviderId("hqnucs"))
- .withAuditLogsAutoProvisioningFlag(true)
- .withDefenderAgentAutoProvisioningFlag(false)
- .withPolicyAgentAutoProvisioningFlag(false);
- model = BinaryData.fromObject(model).toObject(DefenderForContainersGcpOffering.class);
- Assertions.assertEquals("anfbc", model.nativeCloudConnection().serviceAccountEmailAddress());
- Assertions.assertEquals("qagywvtxig", model.nativeCloudConnection().workloadIdentityProviderId());
- Assertions
- .assertEquals("ktpgaeukyawohp", model.dataPipelineNativeCloudConnection().serviceAccountEmailAddress());
- Assertions.assertEquals("hqnucs", model.dataPipelineNativeCloudConnection().workloadIdentityProviderId());
- Assertions.assertEquals(true, model.auditLogsAutoProvisioningFlag());
- Assertions.assertEquals(false, model.defenderAgentAutoProvisioningFlag());
- Assertions.assertEquals(false, model.policyAgentAutoProvisioningFlag());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingArcAutoProvisioningConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingArcAutoProvisioningConfigurationTests.java
deleted file mode 100644
index 517b09fad11be..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingArcAutoProvisioningConfigurationTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForDatabasesGcpOfferingArcAutoProvisioningConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration model =
- BinaryData
- .fromString("{\"proxy\":\"ecleqioulndhzyo\",\"privateLinkScope\":\"jhtollh\"}")
- .toObject(DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("ecleqioulndhzyo", model.proxy());
- Assertions.assertEquals("jhtollh", model.privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration model =
- new DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration()
- .withProxy("ecleqioulndhzyo")
- .withPrivateLinkScope("jhtollh");
- model =
- BinaryData
- .fromObject(model)
- .toObject(DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("ecleqioulndhzyo", model.proxy());
- Assertions.assertEquals("jhtollh", model.privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingArcAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingArcAutoProvisioningTests.java
deleted file mode 100644
index 2d4fc50f362b4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingArcAutoProvisioningTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForDatabasesGcpOfferingArcAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDatabasesGcpOfferingArcAutoProvisioning model =
- BinaryData
- .fromString(
- "{\"enabled\":false,\"configuration\":{\"proxy\":\"ztv\",\"privateLinkScope\":\"mwwmjswenaww\"}}")
- .toObject(DefenderForDatabasesGcpOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("ztv", model.configuration().proxy());
- Assertions.assertEquals("mwwmjswenaww", model.configuration().privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDatabasesGcpOfferingArcAutoProvisioning model =
- new DefenderForDatabasesGcpOfferingArcAutoProvisioning()
- .withEnabled(false)
- .withConfiguration(
- new DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration()
- .withProxy("ztv")
- .withPrivateLinkScope("mwwmjswenaww"));
- model = BinaryData.fromObject(model).toObject(DefenderForDatabasesGcpOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("ztv", model.configuration().proxy());
- Assertions.assertEquals("mwwmjswenaww", model.configuration().privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioningTests.java
deleted file mode 100644
index a6153764e374d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioningTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning model =
- BinaryData
- .fromString("{\"serviceAccountEmailAddress\":\"idmytzln\",\"workloadIdentityProviderId\":\"xpno\"}")
- .toObject(DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning.class);
- Assertions.assertEquals("idmytzln", model.serviceAccountEmailAddress());
- Assertions.assertEquals("xpno", model.workloadIdentityProviderId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning model =
- new DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning()
- .withServiceAccountEmailAddress("idmytzln")
- .withWorkloadIdentityProviderId("xpno");
- model =
- BinaryData
- .fromObject(model)
- .toObject(DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning.class);
- Assertions.assertEquals("idmytzln", model.serviceAccountEmailAddress());
- Assertions.assertEquals("xpno", model.workloadIdentityProviderId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingTests.java
deleted file mode 100644
index 5f7b8fcfbce65..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDatabasesGcpOfferingTests.java
+++ /dev/null
@@ -1,55 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOffering;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForDatabasesGcpOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDatabasesGcpOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderForDatabasesGcp\",\"arcAutoProvisioning\":{\"enabled\":true,\"configuration\":{\"proxy\":\"fv\",\"privateLinkScope\":\"vqkxiuxqggvq\"}},\"defenderForDatabasesArcAutoProvisioning\":{\"serviceAccountEmailAddress\":\"yhlwcjsqg\",\"workloadIdentityProviderId\":\"hffbxrq\"},\"description\":\"ijpeuql\"}")
- .toObject(DefenderForDatabasesGcpOffering.class);
- Assertions.assertEquals(true, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("fv", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("vqkxiuxqggvq", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions
- .assertEquals("yhlwcjsqg", model.defenderForDatabasesArcAutoProvisioning().serviceAccountEmailAddress());
- Assertions
- .assertEquals("hffbxrq", model.defenderForDatabasesArcAutoProvisioning().workloadIdentityProviderId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDatabasesGcpOffering model =
- new DefenderForDatabasesGcpOffering()
- .withArcAutoProvisioning(
- new DefenderForDatabasesGcpOfferingArcAutoProvisioning()
- .withEnabled(true)
- .withConfiguration(
- new DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration()
- .withProxy("fv")
- .withPrivateLinkScope("vqkxiuxqggvq")))
- .withDefenderForDatabasesArcAutoProvisioning(
- new DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning()
- .withServiceAccountEmailAddress("yhlwcjsqg")
- .withWorkloadIdentityProviderId("hffbxrq"));
- model = BinaryData.fromObject(model).toObject(DefenderForDatabasesGcpOffering.class);
- Assertions.assertEquals(true, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("fv", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("vqkxiuxqggvq", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions
- .assertEquals("yhlwcjsqg", model.defenderForDatabasesArcAutoProvisioning().serviceAccountEmailAddress());
- Assertions
- .assertEquals("hffbxrq", model.defenderForDatabasesArcAutoProvisioning().workloadIdentityProviderId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsAzureDevOpsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsAzureDevOpsOfferingTests.java
deleted file mode 100644
index c41f2a47b23be..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsAzureDevOpsOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDevOpsAzureDevOpsOffering;
-
-public final class DefenderForDevOpsAzureDevOpsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDevOpsAzureDevOpsOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"DefenderForDevOpsAzureDevOps\",\"description\":\"rb\"}")
- .toObject(DefenderForDevOpsAzureDevOpsOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDevOpsAzureDevOpsOffering model = new DefenderForDevOpsAzureDevOpsOffering();
- model = BinaryData.fromObject(model).toObject(DefenderForDevOpsAzureDevOpsOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsGitLabOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsGitLabOfferingTests.java
deleted file mode 100644
index 8452e440f36e9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsGitLabOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDevOpsGitLabOffering;
-
-public final class DefenderForDevOpsGitLabOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDevOpsGitLabOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"DefenderForDevOpsGitLab\",\"description\":\"pp\"}")
- .toObject(DefenderForDevOpsGitLabOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDevOpsGitLabOffering model = new DefenderForDevOpsGitLabOffering();
- model = BinaryData.fromObject(model).toObject(DefenderForDevOpsGitLabOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsGithubOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsGithubOfferingTests.java
deleted file mode 100644
index 3ff70d8d6e6b7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForDevOpsGithubOfferingTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForDevOpsGithubOffering;
-
-public final class DefenderForDevOpsGithubOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForDevOpsGithubOffering model =
- BinaryData
- .fromString("{\"offeringType\":\"DefenderForDevOpsGithub\",\"description\":\"zuvrzmzqmz\"}")
- .toObject(DefenderForDevOpsGithubOffering.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForDevOpsGithubOffering model = new DefenderForDevOpsGithubOffering();
- model = BinaryData.fromObject(model).toObject(DefenderForDevOpsGithubOffering.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingArcAutoProvisioningConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingArcAutoProvisioningConfigurationTests.java
deleted file mode 100644
index d934b0e7aff0f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingArcAutoProvisioningConfigurationTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingArcAutoProvisioningConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingArcAutoProvisioningConfiguration model =
- BinaryData
- .fromString("{\"proxy\":\"loozrvt\",\"privateLinkScope\":\"cmufunlcpxxv\"}")
- .toObject(DefenderForServersAwsOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("loozrvt", model.proxy());
- Assertions.assertEquals("cmufunlcpxxv", model.privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingArcAutoProvisioningConfiguration model =
- new DefenderForServersAwsOfferingArcAutoProvisioningConfiguration()
- .withProxy("loozrvt")
- .withPrivateLinkScope("cmufunlcpxxv");
- model =
- BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("loozrvt", model.proxy());
- Assertions.assertEquals("cmufunlcpxxv", model.privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingArcAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingArcAutoProvisioningTests.java
deleted file mode 100644
index 47bc889f42d53..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingArcAutoProvisioningTests.java
+++ /dev/null
@@ -1,42 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingArcAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingArcAutoProvisioning model =
- BinaryData
- .fromString(
- "{\"enabled\":true,\"cloudRoleArn\":\"cmkrftsjcwjj\",\"configuration\":{\"proxy\":\"mb\",\"privateLinkScope\":\"vifdxkecifhocjx\"}}")
- .toObject(DefenderForServersAwsOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("cmkrftsjcwjj", model.cloudRoleArn());
- Assertions.assertEquals("mb", model.configuration().proxy());
- Assertions.assertEquals("vifdxkecifhocjx", model.configuration().privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingArcAutoProvisioning model =
- new DefenderForServersAwsOfferingArcAutoProvisioning()
- .withEnabled(true)
- .withCloudRoleArn("cmkrftsjcwjj")
- .withConfiguration(
- new DefenderForServersAwsOfferingArcAutoProvisioningConfiguration()
- .withProxy("mb")
- .withPrivateLinkScope("vifdxkecifhocjx"));
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("cmkrftsjcwjj", model.cloudRoleArn());
- Assertions.assertEquals("mb", model.configuration().proxy());
- Assertions.assertEquals("vifdxkecifhocjx", model.configuration().privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingDefenderForServersTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingDefenderForServersTests.java
deleted file mode 100644
index a2c683a44bf40..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingDefenderForServersTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingDefenderForServers;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingDefenderForServersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingDefenderForServers model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"bcyksivmfogd\"}")
- .toObject(DefenderForServersAwsOfferingDefenderForServers.class);
- Assertions.assertEquals("bcyksivmfogd", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingDefenderForServers model =
- new DefenderForServersAwsOfferingDefenderForServers().withCloudRoleArn("bcyksivmfogd");
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingDefenderForServers.class);
- Assertions.assertEquals("bcyksivmfogd", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingMdeAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingMdeAutoProvisioningTests.java
deleted file mode 100644
index fdb7380ae412f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingMdeAutoProvisioningTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingMdeAutoProvisioning;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingMdeAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingMdeAutoProvisioning model =
- BinaryData
- .fromString("{\"enabled\":false,\"configuration\":\"dataquv\"}")
- .toObject(DefenderForServersAwsOfferingMdeAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingMdeAutoProvisioning model =
- new DefenderForServersAwsOfferingMdeAutoProvisioning().withEnabled(false).withConfiguration("dataquv");
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingMdeAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingSubPlanTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingSubPlanTests.java
deleted file mode 100644
index 5e77a78072417..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingSubPlanTests.java
+++ /dev/null
@@ -1,26 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingSubPlan;
-import com.azure.resourcemanager.security.models.SubPlan;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingSubPlanTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingSubPlan model =
- BinaryData.fromString("{\"type\":\"P2\"}").toObject(DefenderForServersAwsOfferingSubPlan.class);
- Assertions.assertEquals(SubPlan.P2, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingSubPlan model = new DefenderForServersAwsOfferingSubPlan().withType(SubPlan.P2);
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingSubPlan.class);
- Assertions.assertEquals(SubPlan.P2, model.type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingTests.java
deleted file mode 100644
index 462e3ef6422d8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingTests.java
+++ /dev/null
@@ -1,109 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOffering;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingArcAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingDefenderForServers;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingMdeAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingSubPlan;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVaAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVaAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVmScanners;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import com.azure.resourcemanager.security.models.SubPlan;
-import com.azure.resourcemanager.security.models.Type;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderForServersAws\",\"defenderForServers\":{\"cloudRoleArn\":\"egqphrgfnzhctm\"},\"arcAutoProvisioning\":{\"enabled\":true,\"cloudRoleArn\":\"pbcbcpzar\",\"configuration\":{\"proxy\":\"qacdldtzm\",\"privateLinkScope\":\"pefcpcz\"}},\"vaAutoProvisioning\":{\"enabled\":true,\"configuration\":{\"type\":\"Qualys\"}},\"mdeAutoProvisioning\":{\"enabled\":true,\"configuration\":\"datapfkhuytuszxhmt\"},\"subPlan\":{\"type\":\"P1\"},\"vmScanners\":{\"enabled\":true,\"configuration\":{\"cloudRoleArn\":\"kvzwydw\",\"scanningMode\":\"Default\",\"exclusionTags\":{\"fukpeexpgeu\":\"kgkskjivbsshaj\",\"hwu\":\"i\",\"dbzsx\":\"trdexyionofnin\"}}},\"description\":\"qqrsmpcbbprtugav\"}")
- .toObject(DefenderForServersAwsOffering.class);
- Assertions.assertEquals("egqphrgfnzhctm", model.defenderForServers().cloudRoleArn());
- Assertions.assertEquals(true, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("pbcbcpzar", model.arcAutoProvisioning().cloudRoleArn());
- Assertions.assertEquals("qacdldtzm", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("pefcpcz", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions.assertEquals(true, model.vaAutoProvisioning().enabled());
- Assertions.assertEquals(Type.QUALYS, model.vaAutoProvisioning().configuration().type());
- Assertions.assertEquals(true, model.mdeAutoProvisioning().enabled());
- Assertions.assertEquals(SubPlan.P1, model.subPlan().type());
- Assertions.assertEquals(true, model.vmScanners().enabled());
- Assertions.assertEquals("kvzwydw", model.vmScanners().configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.vmScanners().configuration().scanningMode());
- Assertions
- .assertEquals("kgkskjivbsshaj", model.vmScanners().configuration().exclusionTags().get("fukpeexpgeu"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOffering model =
- new DefenderForServersAwsOffering()
- .withDefenderForServers(
- new DefenderForServersAwsOfferingDefenderForServers().withCloudRoleArn("egqphrgfnzhctm"))
- .withArcAutoProvisioning(
- new DefenderForServersAwsOfferingArcAutoProvisioning()
- .withEnabled(true)
- .withCloudRoleArn("pbcbcpzar")
- .withConfiguration(
- new DefenderForServersAwsOfferingArcAutoProvisioningConfiguration()
- .withProxy("qacdldtzm")
- .withPrivateLinkScope("pefcpcz")))
- .withVaAutoProvisioning(
- new DefenderForServersAwsOfferingVaAutoProvisioning()
- .withEnabled(true)
- .withConfiguration(
- new DefenderForServersAwsOfferingVaAutoProvisioningConfiguration().withType(Type.QUALYS)))
- .withMdeAutoProvisioning(
- new DefenderForServersAwsOfferingMdeAutoProvisioning()
- .withEnabled(true)
- .withConfiguration("datapfkhuytuszxhmt"))
- .withSubPlan(new DefenderForServersAwsOfferingSubPlan().withType(SubPlan.P1))
- .withVmScanners(
- new DefenderForServersAwsOfferingVmScanners()
- .withEnabled(true)
- .withConfiguration(
- new DefenderForServersAwsOfferingVmScannersConfiguration()
- .withCloudRoleArn("kvzwydw")
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(
- mapOf("fukpeexpgeu", "kgkskjivbsshaj", "hwu", "i", "dbzsx", "trdexyionofnin"))));
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOffering.class);
- Assertions.assertEquals("egqphrgfnzhctm", model.defenderForServers().cloudRoleArn());
- Assertions.assertEquals(true, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("pbcbcpzar", model.arcAutoProvisioning().cloudRoleArn());
- Assertions.assertEquals("qacdldtzm", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("pefcpcz", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions.assertEquals(true, model.vaAutoProvisioning().enabled());
- Assertions.assertEquals(Type.QUALYS, model.vaAutoProvisioning().configuration().type());
- Assertions.assertEquals(true, model.mdeAutoProvisioning().enabled());
- Assertions.assertEquals(SubPlan.P1, model.subPlan().type());
- Assertions.assertEquals(true, model.vmScanners().enabled());
- Assertions.assertEquals("kvzwydw", model.vmScanners().configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.vmScanners().configuration().scanningMode());
- Assertions
- .assertEquals("kgkskjivbsshaj", model.vmScanners().configuration().exclusionTags().get("fukpeexpgeu"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVaAutoProvisioningConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVaAutoProvisioningConfigurationTests.java
deleted file mode 100644
index bf806864b8be2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVaAutoProvisioningConfigurationTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVaAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.Type;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingVaAutoProvisioningConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingVaAutoProvisioningConfiguration model =
- BinaryData
- .fromString("{\"type\":\"TVM\"}")
- .toObject(DefenderForServersAwsOfferingVaAutoProvisioningConfiguration.class);
- Assertions.assertEquals(Type.TVM, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingVaAutoProvisioningConfiguration model =
- new DefenderForServersAwsOfferingVaAutoProvisioningConfiguration().withType(Type.TVM);
- model =
- BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingVaAutoProvisioningConfiguration.class);
- Assertions.assertEquals(Type.TVM, model.type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVaAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVaAutoProvisioningTests.java
deleted file mode 100644
index 25e6d925c65eb..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVaAutoProvisioningTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVaAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVaAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.Type;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingVaAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingVaAutoProvisioning model =
- BinaryData
- .fromString("{\"enabled\":false,\"configuration\":{\"type\":\"TVM\"}}")
- .toObject(DefenderForServersAwsOfferingVaAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals(Type.TVM, model.configuration().type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingVaAutoProvisioning model =
- new DefenderForServersAwsOfferingVaAutoProvisioning()
- .withEnabled(false)
- .withConfiguration(
- new DefenderForServersAwsOfferingVaAutoProvisioningConfiguration().withType(Type.TVM));
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingVaAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals(Type.TVM, model.configuration().type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVmScannersConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVmScannersConfigurationTests.java
deleted file mode 100644
index faa1d1f670675..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVmScannersConfigurationTests.java
+++ /dev/null
@@ -1,59 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingVmScannersConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingVmScannersConfiguration model =
- BinaryData
- .fromString(
- "{\"cloudRoleArn\":\"vjcteoedlrslsk\",\"scanningMode\":\"Default\",\"exclusionTags\":{\"xzfsnggytexvzilm\":\"jnzdpvocojhpcna\",\"kwwwnckn\":\"iv\",\"weucyrth\":\"zdajlskzptjxu\",\"hokamvfej\":\"qlehmcgcjeinu\"}}")
- .toObject(DefenderForServersAwsOfferingVmScannersConfiguration.class);
- Assertions.assertEquals("vjcteoedlrslsk", model.cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.scanningMode());
- Assertions.assertEquals("jnzdpvocojhpcna", model.exclusionTags().get("xzfsnggytexvzilm"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingVmScannersConfiguration model =
- new DefenderForServersAwsOfferingVmScannersConfiguration()
- .withCloudRoleArn("vjcteoedlrslsk")
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(
- mapOf(
- "xzfsnggytexvzilm",
- "jnzdpvocojhpcna",
- "kwwwnckn",
- "iv",
- "weucyrth",
- "zdajlskzptjxu",
- "hokamvfej",
- "qlehmcgcjeinu"));
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingVmScannersConfiguration.class);
- Assertions.assertEquals("vjcteoedlrslsk", model.cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.scanningMode());
- Assertions.assertEquals("jnzdpvocojhpcna", model.exclusionTags().get("xzfsnggytexvzilm"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVmScannersTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVmScannersTests.java
deleted file mode 100644
index 08809353e8413..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersAwsOfferingVmScannersTests.java
+++ /dev/null
@@ -1,57 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVmScanners;
-import com.azure.resourcemanager.security.models.DefenderForServersAwsOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersAwsOfferingVmScannersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersAwsOfferingVmScanners model =
- BinaryData
- .fromString(
- "{\"enabled\":false,\"configuration\":{\"cloudRoleArn\":\"crdcueljti\",\"scanningMode\":\"Default\",\"exclusionTags\":{\"yarvsxzqbglcjk\":\"q\",\"btl\":\"yspthzod\",\"kfmkmfdjxyxgbk\":\"jtgblios\"}}}")
- .toObject(DefenderForServersAwsOfferingVmScanners.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("crdcueljti", model.configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.configuration().scanningMode());
- Assertions.assertEquals("q", model.configuration().exclusionTags().get("yarvsxzqbglcjk"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersAwsOfferingVmScanners model =
- new DefenderForServersAwsOfferingVmScanners()
- .withEnabled(false)
- .withConfiguration(
- new DefenderForServersAwsOfferingVmScannersConfiguration()
- .withCloudRoleArn("crdcueljti")
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(
- mapOf("yarvsxzqbglcjk", "q", "btl", "yspthzod", "kfmkmfdjxyxgbk", "jtgblios")));
- model = BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingVmScanners.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("crdcueljti", model.configuration().cloudRoleArn());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.configuration().scanningMode());
- Assertions.assertEquals("q", model.configuration().exclusionTags().get("yarvsxzqbglcjk"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingArcAutoProvisioningConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingArcAutoProvisioningConfigurationTests.java
deleted file mode 100644
index a207a915aac6f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingArcAutoProvisioningConfigurationTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingArcAutoProvisioningConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingArcAutoProvisioningConfiguration model =
- BinaryData
- .fromString("{\"proxy\":\"n\",\"privateLinkScope\":\"ali\"}")
- .toObject(DefenderForServersGcpOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("n", model.proxy());
- Assertions.assertEquals("ali", model.privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingArcAutoProvisioningConfiguration model =
- new DefenderForServersGcpOfferingArcAutoProvisioningConfiguration()
- .withProxy("n")
- .withPrivateLinkScope("ali");
- model =
- BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingArcAutoProvisioningConfiguration.class);
- Assertions.assertEquals("n", model.proxy());
- Assertions.assertEquals("ali", model.privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingArcAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingArcAutoProvisioningTests.java
deleted file mode 100644
index a1274e27291b3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingArcAutoProvisioningTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingArcAutoProvisioningConfiguration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingArcAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingArcAutoProvisioning model =
- BinaryData
- .fromString(
- "{\"enabled\":false,\"configuration\":{\"proxy\":\"gfb\",\"privateLinkScope\":\"tlpqagynoi\"}}")
- .toObject(DefenderForServersGcpOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("gfb", model.configuration().proxy());
- Assertions.assertEquals("tlpqagynoi", model.configuration().privateLinkScope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingArcAutoProvisioning model =
- new DefenderForServersGcpOfferingArcAutoProvisioning()
- .withEnabled(false)
- .withConfiguration(
- new DefenderForServersGcpOfferingArcAutoProvisioningConfiguration()
- .withProxy("gfb")
- .withPrivateLinkScope("tlpqagynoi"));
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingArcAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals("gfb", model.configuration().proxy());
- Assertions.assertEquals("tlpqagynoi", model.configuration().privateLinkScope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingDefenderForServersTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingDefenderForServersTests.java
deleted file mode 100644
index 6731bb112f43f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingDefenderForServersTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingDefenderForServers;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingDefenderForServersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingDefenderForServers model =
- BinaryData
- .fromString("{\"workloadIdentityProviderId\":\"jajqmatxjt\",\"serviceAccountEmailAddress\":\"ln\"}")
- .toObject(DefenderForServersGcpOfferingDefenderForServers.class);
- Assertions.assertEquals("jajqmatxjt", model.workloadIdentityProviderId());
- Assertions.assertEquals("ln", model.serviceAccountEmailAddress());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingDefenderForServers model =
- new DefenderForServersGcpOfferingDefenderForServers()
- .withWorkloadIdentityProviderId("jajqmatxjt")
- .withServiceAccountEmailAddress("ln");
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingDefenderForServers.class);
- Assertions.assertEquals("jajqmatxjt", model.workloadIdentityProviderId());
- Assertions.assertEquals("ln", model.serviceAccountEmailAddress());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingMdeAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingMdeAutoProvisioningTests.java
deleted file mode 100644
index d37fda7f56dab..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingMdeAutoProvisioningTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingMdeAutoProvisioning;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingMdeAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingMdeAutoProvisioning model =
- BinaryData
- .fromString("{\"enabled\":false,\"configuration\":\"dataibmq\"}")
- .toObject(DefenderForServersGcpOfferingMdeAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingMdeAutoProvisioning model =
- new DefenderForServersGcpOfferingMdeAutoProvisioning().withEnabled(false).withConfiguration("dataibmq");
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingMdeAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingSubPlanTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingSubPlanTests.java
deleted file mode 100644
index f70acd19405ee..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingSubPlanTests.java
+++ /dev/null
@@ -1,26 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingSubPlan;
-import com.azure.resourcemanager.security.models.SubPlan;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingSubPlanTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingSubPlan model =
- BinaryData.fromString("{\"type\":\"P1\"}").toObject(DefenderForServersGcpOfferingSubPlan.class);
- Assertions.assertEquals(SubPlan.P1, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingSubPlan model = new DefenderForServersGcpOfferingSubPlan().withType(SubPlan.P1);
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingSubPlan.class);
- Assertions.assertEquals(SubPlan.P1, model.type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingTests.java
deleted file mode 100644
index 4b05b375060cb..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingTests.java
+++ /dev/null
@@ -1,113 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOffering;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingArcAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingArcAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingDefenderForServers;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingMdeAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingSubPlan;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVaAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVaAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVmScanners;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import com.azure.resourcemanager.security.models.SubPlan;
-import com.azure.resourcemanager.security.models.Type;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"DefenderForServersGcp\",\"defenderForServers\":{\"workloadIdentityProviderId\":\"scyrfwbivqv\",\"serviceAccountEmailAddress\":\"fuy\"},\"arcAutoProvisioning\":{\"enabled\":false,\"configuration\":{\"proxy\":\"imbyqe\",\"privateLinkScope\":\"ood\"}},\"vaAutoProvisioning\":{\"enabled\":true,\"configuration\":{\"type\":\"Qualys\"}},\"mdeAutoProvisioning\":{\"enabled\":false,\"configuration\":\"dataxxobsmfkwiy\"},\"subPlan\":{\"type\":\"P1\"},\"vmScanners\":{\"enabled\":true,\"configuration\":{\"scanningMode\":\"Default\",\"exclusionTags\":{\"abjqqaxuyvymcnud\":\"vzmlnkoywsxv\",\"wxqweuipmpvksmi\":\"doabhj\",\"krdpqgfhyrfr\":\"nsqxtltc\"}}},\"description\":\"kldgrcwfcmfc\"}")
- .toObject(DefenderForServersGcpOffering.class);
- Assertions.assertEquals("scyrfwbivqv", model.defenderForServers().workloadIdentityProviderId());
- Assertions.assertEquals("fuy", model.defenderForServers().serviceAccountEmailAddress());
- Assertions.assertEquals(false, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("imbyqe", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("ood", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions.assertEquals(true, model.vaAutoProvisioning().enabled());
- Assertions.assertEquals(Type.QUALYS, model.vaAutoProvisioning().configuration().type());
- Assertions.assertEquals(false, model.mdeAutoProvisioning().enabled());
- Assertions.assertEquals(SubPlan.P1, model.subPlan().type());
- Assertions.assertEquals(true, model.vmScanners().enabled());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.vmScanners().configuration().scanningMode());
- Assertions
- .assertEquals("vzmlnkoywsxv", model.vmScanners().configuration().exclusionTags().get("abjqqaxuyvymcnud"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOffering model =
- new DefenderForServersGcpOffering()
- .withDefenderForServers(
- new DefenderForServersGcpOfferingDefenderForServers()
- .withWorkloadIdentityProviderId("scyrfwbivqv")
- .withServiceAccountEmailAddress("fuy"))
- .withArcAutoProvisioning(
- new DefenderForServersGcpOfferingArcAutoProvisioning()
- .withEnabled(false)
- .withConfiguration(
- new DefenderForServersGcpOfferingArcAutoProvisioningConfiguration()
- .withProxy("imbyqe")
- .withPrivateLinkScope("ood")))
- .withVaAutoProvisioning(
- new DefenderForServersGcpOfferingVaAutoProvisioning()
- .withEnabled(true)
- .withConfiguration(
- new DefenderForServersGcpOfferingVaAutoProvisioningConfiguration().withType(Type.QUALYS)))
- .withMdeAutoProvisioning(
- new DefenderForServersGcpOfferingMdeAutoProvisioning()
- .withEnabled(false)
- .withConfiguration("dataxxobsmfkwiy"))
- .withSubPlan(new DefenderForServersGcpOfferingSubPlan().withType(SubPlan.P1))
- .withVmScanners(
- new DefenderForServersGcpOfferingVmScanners()
- .withEnabled(true)
- .withConfiguration(
- new DefenderForServersGcpOfferingVmScannersConfiguration()
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(
- mapOf(
- "abjqqaxuyvymcnud",
- "vzmlnkoywsxv",
- "wxqweuipmpvksmi",
- "doabhj",
- "krdpqgfhyrfr",
- "nsqxtltc"))));
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOffering.class);
- Assertions.assertEquals("scyrfwbivqv", model.defenderForServers().workloadIdentityProviderId());
- Assertions.assertEquals("fuy", model.defenderForServers().serviceAccountEmailAddress());
- Assertions.assertEquals(false, model.arcAutoProvisioning().enabled());
- Assertions.assertEquals("imbyqe", model.arcAutoProvisioning().configuration().proxy());
- Assertions.assertEquals("ood", model.arcAutoProvisioning().configuration().privateLinkScope());
- Assertions.assertEquals(true, model.vaAutoProvisioning().enabled());
- Assertions.assertEquals(Type.QUALYS, model.vaAutoProvisioning().configuration().type());
- Assertions.assertEquals(false, model.mdeAutoProvisioning().enabled());
- Assertions.assertEquals(SubPlan.P1, model.subPlan().type());
- Assertions.assertEquals(true, model.vmScanners().enabled());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.vmScanners().configuration().scanningMode());
- Assertions
- .assertEquals("vzmlnkoywsxv", model.vmScanners().configuration().exclusionTags().get("abjqqaxuyvymcnud"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVaAutoProvisioningConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVaAutoProvisioningConfigurationTests.java
deleted file mode 100644
index 54168f20ecfd6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVaAutoProvisioningConfigurationTests.java
+++ /dev/null
@@ -1,30 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVaAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.Type;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingVaAutoProvisioningConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingVaAutoProvisioningConfiguration model =
- BinaryData
- .fromString("{\"type\":\"Qualys\"}")
- .toObject(DefenderForServersGcpOfferingVaAutoProvisioningConfiguration.class);
- Assertions.assertEquals(Type.QUALYS, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingVaAutoProvisioningConfiguration model =
- new DefenderForServersGcpOfferingVaAutoProvisioningConfiguration().withType(Type.QUALYS);
- model =
- BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingVaAutoProvisioningConfiguration.class);
- Assertions.assertEquals(Type.QUALYS, model.type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVaAutoProvisioningTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVaAutoProvisioningTests.java
deleted file mode 100644
index 367ac0c2b753b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVaAutoProvisioningTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVaAutoProvisioning;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVaAutoProvisioningConfiguration;
-import com.azure.resourcemanager.security.models.Type;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingVaAutoProvisioningTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingVaAutoProvisioning model =
- BinaryData
- .fromString("{\"enabled\":false,\"configuration\":{\"type\":\"TVM\"}}")
- .toObject(DefenderForServersGcpOfferingVaAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals(Type.TVM, model.configuration().type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingVaAutoProvisioning model =
- new DefenderForServersGcpOfferingVaAutoProvisioning()
- .withEnabled(false)
- .withConfiguration(
- new DefenderForServersGcpOfferingVaAutoProvisioningConfiguration().withType(Type.TVM));
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingVaAutoProvisioning.class);
- Assertions.assertEquals(false, model.enabled());
- Assertions.assertEquals(Type.TVM, model.configuration().type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVmScannersConfigurationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVmScannersConfigurationTests.java
deleted file mode 100644
index 84ad466eb6548..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVmScannersConfigurationTests.java
+++ /dev/null
@@ -1,48 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingVmScannersConfigurationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingVmScannersConfiguration model =
- BinaryData
- .fromString(
- "{\"scanningMode\":\"Default\",\"exclusionTags\":{\"io\":\"puohdkcprgukxrz\",\"f\":\"hlutixmqrudjizc\",\"fbcpaqktkrumzu\":\"mcrunfhiucn\"}}")
- .toObject(DefenderForServersGcpOfferingVmScannersConfiguration.class);
- Assertions.assertEquals(ScanningMode.DEFAULT, model.scanningMode());
- Assertions.assertEquals("puohdkcprgukxrz", model.exclusionTags().get("io"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingVmScannersConfiguration model =
- new DefenderForServersGcpOfferingVmScannersConfiguration()
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(
- mapOf("io", "puohdkcprgukxrz", "f", "hlutixmqrudjizc", "fbcpaqktkrumzu", "mcrunfhiucn"));
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingVmScannersConfiguration.class);
- Assertions.assertEquals(ScanningMode.DEFAULT, model.scanningMode());
- Assertions.assertEquals("puohdkcprgukxrz", model.exclusionTags().get("io"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVmScannersTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVmScannersTests.java
deleted file mode 100644
index 9e611d93fc4ae..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DefenderForServersGcpOfferingVmScannersTests.java
+++ /dev/null
@@ -1,53 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVmScanners;
-import com.azure.resourcemanager.security.models.DefenderForServersGcpOfferingVmScannersConfiguration;
-import com.azure.resourcemanager.security.models.ScanningMode;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class DefenderForServersGcpOfferingVmScannersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DefenderForServersGcpOfferingVmScanners model =
- BinaryData
- .fromString(
- "{\"enabled\":true,\"configuration\":{\"scanningMode\":\"Default\",\"exclusionTags\":{\"fupetasvv\":\"u\",\"flanfkgxsyao\":\"qsbp\"}}}")
- .toObject(DefenderForServersGcpOfferingVmScanners.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.configuration().scanningMode());
- Assertions.assertEquals("u", model.configuration().exclusionTags().get("fupetasvv"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DefenderForServersGcpOfferingVmScanners model =
- new DefenderForServersGcpOfferingVmScanners()
- .withEnabled(true)
- .withConfiguration(
- new DefenderForServersGcpOfferingVmScannersConfiguration()
- .withScanningMode(ScanningMode.DEFAULT)
- .withExclusionTags(mapOf("fupetasvv", "u", "flanfkgxsyao", "qsbp")));
- model = BinaryData.fromObject(model).toObject(DefenderForServersGcpOfferingVmScanners.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals(ScanningMode.DEFAULT, model.configuration().scanningMode());
- Assertions.assertEquals("u", model.configuration().exclusionTags().get("fupetasvv"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DenylistCustomAlertRuleTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DenylistCustomAlertRuleTests.java
deleted file mode 100644
index 05ff07e7bd38e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DenylistCustomAlertRuleTests.java
+++ /dev/null
@@ -1,34 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DenylistCustomAlertRule;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DenylistCustomAlertRuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DenylistCustomAlertRule model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"DenylistCustomAlertRule\",\"denylistValues\":[\"okeyyienj\",\"dlwtgrhpdj\"],\"valueType\":\"String\",\"displayName\":\"asxazjpqyegualhb\",\"description\":\"hejjz\",\"isEnabled\":false}")
- .toObject(DenylistCustomAlertRule.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("okeyyienj", model.denylistValues().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DenylistCustomAlertRule model =
- new DenylistCustomAlertRule()
- .withIsEnabled(false)
- .withDenylistValues(Arrays.asList("okeyyienj", "dlwtgrhpdj"));
- model = BinaryData.fromObject(model).toObject(DenylistCustomAlertRule.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals("okeyyienj", model.denylistValues().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupInnerTests.java
deleted file mode 100644
index a5985d229eb63..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupInnerTests.java
+++ /dev/null
@@ -1,90 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DeviceSecurityGroupInner;
-import com.azure.resourcemanager.security.models.AllowlistCustomAlertRule;
-import com.azure.resourcemanager.security.models.DenylistCustomAlertRule;
-import com.azure.resourcemanager.security.models.ThresholdCustomAlertRule;
-import com.azure.resourcemanager.security.models.TimeWindowCustomAlertRule;
-import java.time.Duration;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DeviceSecurityGroupInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DeviceSecurityGroupInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"thresholdRules\":[{\"ruleType\":\"ThresholdCustomAlertRule\",\"minThreshold\":1273702243,\"maxThreshold\":541162578,\"displayName\":\"rsoodqxhcrmnoh\",\"description\":\"ckwhds\",\"isEnabled\":true},{\"ruleType\":\"ThresholdCustomAlertRule\",\"minThreshold\":1580515344,\"maxThreshold\":491677014,\"displayName\":\"i\",\"description\":\"xsqwpgrjbznorc\",\"isEnabled\":false},{\"ruleType\":\"ThresholdCustomAlertRule\",\"minThreshold\":1016211190,\"maxThreshold\":745592995,\"displayName\":\"byxqabn\",\"description\":\"cpc\",\"isEnabled\":true}],\"timeWindowRules\":[{\"ruleType\":\"TimeWindowCustomAlertRule\",\"timeWindowSize\":\"PT138H20M56S\",\"minThreshold\":818060655,\"maxThreshold\":2023442123,\"displayName\":\"bl\",\"description\":\"gpbtoqcjmklj\",\"isEnabled\":false},{\"ruleType\":\"TimeWindowCustomAlertRule\",\"timeWindowSize\":\"PT31H50M7S\",\"minThreshold\":300306842,\"maxThreshold\":62975440,\"displayName\":\"tqajzyulpkudjkrl\",\"description\":\"bzhfepgzgqexz\",\"isEnabled\":true}],\"allowlistRules\":[{\"ruleType\":\"AllowlistCustomAlertRule\",\"allowlistValues\":[],\"valueType\":\"IpCidr\",\"displayName\":\"aierhhb\",\"description\":\"glu\",\"isEnabled\":false},{\"ruleType\":\"AllowlistCustomAlertRule\",\"allowlistValues\":[],\"valueType\":\"String\",\"displayName\":\"j\",\"description\":\"dxob\",\"isEnabled\":true},{\"ruleType\":\"AllowlistCustomAlertRule\",\"allowlistValues\":[],\"valueType\":\"IpCidr\",\"displayName\":\"qp\",\"description\":\"kajionpim\",\"isEnabled\":false}],\"denylistRules\":[{\"ruleType\":\"DenylistCustomAlertRule\",\"denylistValues\":[],\"valueType\":\"IpCidr\",\"displayName\":\"cp\",\"description\":\"gmaajrm\",\"isEnabled\":false},{\"ruleType\":\"DenylistCustomAlertRule\",\"denylistValues\":[],\"valueType\":\"String\",\"displayName\":\"rlovmclwhijcoej\",\"description\":\"bzaqsqsycbkbfk\",\"isEnabled\":true}]},\"id\":\"kdkexxp\",\"name\":\"ofmx\",\"type\":\"x\"}")
- .toObject(DeviceSecurityGroupInner.class);
- Assertions.assertEquals(true, model.thresholdRules().get(0).isEnabled());
- Assertions.assertEquals(1273702243, model.thresholdRules().get(0).minThreshold());
- Assertions.assertEquals(541162578, model.thresholdRules().get(0).maxThreshold());
- Assertions.assertEquals(false, model.timeWindowRules().get(0).isEnabled());
- Assertions.assertEquals(818060655, model.timeWindowRules().get(0).minThreshold());
- Assertions.assertEquals(2023442123, model.timeWindowRules().get(0).maxThreshold());
- Assertions.assertEquals(Duration.parse("PT138H20M56S"), model.timeWindowRules().get(0).timeWindowSize());
- Assertions.assertEquals(false, model.allowlistRules().get(0).isEnabled());
- Assertions.assertEquals(false, model.denylistRules().get(0).isEnabled());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DeviceSecurityGroupInner model =
- new DeviceSecurityGroupInner()
- .withThresholdRules(
- Arrays
- .asList(
- new ThresholdCustomAlertRule()
- .withIsEnabled(true)
- .withMinThreshold(1273702243)
- .withMaxThreshold(541162578),
- new ThresholdCustomAlertRule()
- .withIsEnabled(false)
- .withMinThreshold(1580515344)
- .withMaxThreshold(491677014),
- new ThresholdCustomAlertRule()
- .withIsEnabled(true)
- .withMinThreshold(1016211190)
- .withMaxThreshold(745592995)))
- .withTimeWindowRules(
- Arrays
- .asList(
- new TimeWindowCustomAlertRule()
- .withIsEnabled(false)
- .withMinThreshold(818060655)
- .withMaxThreshold(2023442123)
- .withTimeWindowSize(Duration.parse("PT138H20M56S")),
- new TimeWindowCustomAlertRule()
- .withIsEnabled(true)
- .withMinThreshold(300306842)
- .withMaxThreshold(62975440)
- .withTimeWindowSize(Duration.parse("PT31H50M7S"))))
- .withAllowlistRules(
- Arrays
- .asList(
- new AllowlistCustomAlertRule().withIsEnabled(false).withAllowlistValues(Arrays.asList()),
- new AllowlistCustomAlertRule().withIsEnabled(true).withAllowlistValues(Arrays.asList()),
- new AllowlistCustomAlertRule().withIsEnabled(false).withAllowlistValues(Arrays.asList())))
- .withDenylistRules(
- Arrays
- .asList(
- new DenylistCustomAlertRule().withIsEnabled(false).withDenylistValues(Arrays.asList()),
- new DenylistCustomAlertRule().withIsEnabled(true).withDenylistValues(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(DeviceSecurityGroupInner.class);
- Assertions.assertEquals(true, model.thresholdRules().get(0).isEnabled());
- Assertions.assertEquals(1273702243, model.thresholdRules().get(0).minThreshold());
- Assertions.assertEquals(541162578, model.thresholdRules().get(0).maxThreshold());
- Assertions.assertEquals(false, model.timeWindowRules().get(0).isEnabled());
- Assertions.assertEquals(818060655, model.timeWindowRules().get(0).minThreshold());
- Assertions.assertEquals(2023442123, model.timeWindowRules().get(0).maxThreshold());
- Assertions.assertEquals(Duration.parse("PT138H20M56S"), model.timeWindowRules().get(0).timeWindowSize());
- Assertions.assertEquals(false, model.allowlistRules().get(0).isEnabled());
- Assertions.assertEquals(false, model.denylistRules().get(0).isEnabled());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupListTests.java
deleted file mode 100644
index b2a23f808484c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupListTests.java
+++ /dev/null
@@ -1,36 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DeviceSecurityGroupInner;
-import com.azure.resourcemanager.security.models.DeviceSecurityGroupList;
-import java.util.Arrays;
-
-public final class DeviceSecurityGroupListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DeviceSecurityGroupList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"thresholdRules\":[],\"timeWindowRules\":[],\"allowlistRules\":[],\"denylistRules\":[]},\"id\":\"dwzjeiach\",\"name\":\"oosflnr\",\"type\":\"sfqpteehz\"}],\"nextLink\":\"ypyqrimzinp\"}")
- .toObject(DeviceSecurityGroupList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DeviceSecurityGroupList model =
- new DeviceSecurityGroupList()
- .withValue(
- Arrays
- .asList(
- new DeviceSecurityGroupInner()
- .withThresholdRules(Arrays.asList())
- .withTimeWindowRules(Arrays.asList())
- .withAllowlistRules(Arrays.asList())
- .withDenylistRules(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(DeviceSecurityGroupList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupPropertiesTests.java
deleted file mode 100644
index 47dc2d1aac557..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupPropertiesTests.java
+++ /dev/null
@@ -1,88 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DeviceSecurityGroupProperties;
-import com.azure.resourcemanager.security.models.AllowlistCustomAlertRule;
-import com.azure.resourcemanager.security.models.DenylistCustomAlertRule;
-import com.azure.resourcemanager.security.models.ThresholdCustomAlertRule;
-import com.azure.resourcemanager.security.models.TimeWindowCustomAlertRule;
-import java.time.Duration;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DeviceSecurityGroupPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DeviceSecurityGroupProperties model =
- BinaryData
- .fromString(
- "{\"thresholdRules\":[{\"ruleType\":\"ThresholdCustomAlertRule\",\"minThreshold\":396023335,\"maxThreshold\":1635783635,\"displayName\":\"dtocj\",\"description\":\"hvpmoue\",\"isEnabled\":false}],\"timeWindowRules\":[{\"ruleType\":\"TimeWindowCustomAlertRule\",\"timeWindowSize\":\"PT62H8M23S\",\"minThreshold\":229644058,\"maxThreshold\":738311617,\"displayName\":\"eojnxqbzvddn\",\"description\":\"ndei\",\"isEnabled\":true},{\"ruleType\":\"TimeWindowCustomAlertRule\",\"timeWindowSize\":\"PT35H10M37S\",\"minThreshold\":206399167,\"maxThreshold\":1604770276,\"displayName\":\"zao\",\"description\":\"uhrhcffcyddgl\",\"isEnabled\":true}],\"allowlistRules\":[{\"ruleType\":\"AllowlistCustomAlertRule\",\"allowlistValues\":[\"qkwpyeicxmqc\",\"wqvhkhixuigdt\",\"pbobjo\"],\"valueType\":\"IpCidr\",\"displayName\":\"w\",\"description\":\"m\",\"isEnabled\":true}],\"denylistRules\":[{\"ruleType\":\"DenylistCustomAlertRule\",\"denylistValues\":[\"ayvvtpgvdf\"],\"valueType\":\"String\",\"displayName\":\"kftutqxlngxlefg\",\"description\":\"nxkrx\",\"isEnabled\":false},{\"ruleType\":\"DenylistCustomAlertRule\",\"denylistValues\":[\"i\"],\"valueType\":\"IpCidr\",\"displayName\":\"zrvqdr\",\"description\":\"hjybigehoqfbo\",\"isEnabled\":false}]}")
- .toObject(DeviceSecurityGroupProperties.class);
- Assertions.assertEquals(false, model.thresholdRules().get(0).isEnabled());
- Assertions.assertEquals(396023335, model.thresholdRules().get(0).minThreshold());
- Assertions.assertEquals(1635783635, model.thresholdRules().get(0).maxThreshold());
- Assertions.assertEquals(true, model.timeWindowRules().get(0).isEnabled());
- Assertions.assertEquals(229644058, model.timeWindowRules().get(0).minThreshold());
- Assertions.assertEquals(738311617, model.timeWindowRules().get(0).maxThreshold());
- Assertions.assertEquals(Duration.parse("PT62H8M23S"), model.timeWindowRules().get(0).timeWindowSize());
- Assertions.assertEquals(true, model.allowlistRules().get(0).isEnabled());
- Assertions.assertEquals("qkwpyeicxmqc", model.allowlistRules().get(0).allowlistValues().get(0));
- Assertions.assertEquals(false, model.denylistRules().get(0).isEnabled());
- Assertions.assertEquals("ayvvtpgvdf", model.denylistRules().get(0).denylistValues().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DeviceSecurityGroupProperties model =
- new DeviceSecurityGroupProperties()
- .withThresholdRules(
- Arrays
- .asList(
- new ThresholdCustomAlertRule()
- .withIsEnabled(false)
- .withMinThreshold(396023335)
- .withMaxThreshold(1635783635)))
- .withTimeWindowRules(
- Arrays
- .asList(
- new TimeWindowCustomAlertRule()
- .withIsEnabled(true)
- .withMinThreshold(229644058)
- .withMaxThreshold(738311617)
- .withTimeWindowSize(Duration.parse("PT62H8M23S")),
- new TimeWindowCustomAlertRule()
- .withIsEnabled(true)
- .withMinThreshold(206399167)
- .withMaxThreshold(1604770276)
- .withTimeWindowSize(Duration.parse("PT35H10M37S"))))
- .withAllowlistRules(
- Arrays
- .asList(
- new AllowlistCustomAlertRule()
- .withIsEnabled(true)
- .withAllowlistValues(Arrays.asList("qkwpyeicxmqc", "wqvhkhixuigdt", "pbobjo"))))
- .withDenylistRules(
- Arrays
- .asList(
- new DenylistCustomAlertRule()
- .withIsEnabled(false)
- .withDenylistValues(Arrays.asList("ayvvtpgvdf")),
- new DenylistCustomAlertRule().withIsEnabled(false).withDenylistValues(Arrays.asList("i"))));
- model = BinaryData.fromObject(model).toObject(DeviceSecurityGroupProperties.class);
- Assertions.assertEquals(false, model.thresholdRules().get(0).isEnabled());
- Assertions.assertEquals(396023335, model.thresholdRules().get(0).minThreshold());
- Assertions.assertEquals(1635783635, model.thresholdRules().get(0).maxThreshold());
- Assertions.assertEquals(true, model.timeWindowRules().get(0).isEnabled());
- Assertions.assertEquals(229644058, model.timeWindowRules().get(0).minThreshold());
- Assertions.assertEquals(738311617, model.timeWindowRules().get(0).maxThreshold());
- Assertions.assertEquals(Duration.parse("PT62H8M23S"), model.timeWindowRules().get(0).timeWindowSize());
- Assertions.assertEquals(true, model.allowlistRules().get(0).isEnabled());
- Assertions.assertEquals("qkwpyeicxmqc", model.allowlistRules().get(0).allowlistValues().get(0));
- Assertions.assertEquals(false, model.denylistRules().get(0).isEnabled());
- Assertions.assertEquals("ayvvtpgvdf", model.denylistRules().get(0).denylistValues().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index c7fd3563d6170..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,73 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DeviceSecurityGroup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DeviceSecurityGroupsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"thresholdRules\":[],\"timeWindowRules\":[],\"allowlistRules\":[],\"denylistRules\":[]},\"id\":\"stewfop\",\"name\":\"z\",\"type\":\"azgbsqgpe\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- DeviceSecurityGroup response =
- manager
- .deviceSecurityGroups()
- .define("ylt")
- .withExistingResourceId("nquktrfnslnlrxs")
- .withThresholdRules(Arrays.asList())
- .withTimeWindowRules(Arrays.asList())
- .withAllowlistRules(Arrays.asList())
- .withDenylistRules(Arrays.asList())
- .create();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteByResourceGroupWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 73bd48834292f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DeviceSecurityGroupsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .deviceSecurityGroups()
- .deleteByResourceGroupWithResponse("suenyg", "xcgjtf", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsGetWithResponseMockTests.java
deleted file mode 100644
index 8c94dddd61d89..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DeviceSecurityGroup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DeviceSecurityGroupsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"thresholdRules\":[],\"timeWindowRules\":[],\"allowlistRules\":[],\"denylistRules\":[]},\"id\":\"hsoymhpvtyqf\",\"name\":\"tehdpboujs\",\"type\":\"kfvvdshxcde\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- DeviceSecurityGroup response =
- manager
- .deviceSecurityGroups()
- .getWithResponse("aiossscyvaifp", "uacvfy", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsListMockTests.java
deleted file mode 100644
index 83dbf8c17a89b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DeviceSecurityGroupsListMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DeviceSecurityGroup;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DeviceSecurityGroupsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"thresholdRules\":[],\"timeWindowRules\":[],\"allowlistRules\":[],\"denylistRules\":[]},\"id\":\"xqceazfpxgn\",\"name\":\"qvzvlu\",\"type\":\"q\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.deviceSecurityGroups().list("gfii", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DirectMethodInvokesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DirectMethodInvokesNotInAllowedRangeTests.java
deleted file mode 100644
index 2b4f41c6f6c56..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DirectMethodInvokesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.DirectMethodInvokesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class DirectMethodInvokesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DirectMethodInvokesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"DirectMethodInvokesNotInAllowedRange\",\"timeWindowSize\":\"PT14H59M6S\",\"minThreshold\":2142539902,\"maxThreshold\":629230880,\"displayName\":\"isczskoswo\",\"description\":\"qazu\",\"isEnabled\":false}")
- .toObject(DirectMethodInvokesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(2142539902, model.minThreshold());
- Assertions.assertEquals(629230880, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT14H59M6S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DirectMethodInvokesNotInAllowedRange model =
- new DirectMethodInvokesNotInAllowedRange()
- .withIsEnabled(false)
- .withMinThreshold(2142539902)
- .withMaxThreshold(629230880)
- .withTimeWindowSize(Duration.parse("PT14H59M6S"));
- model = BinaryData.fromObject(model).toObject(DirectMethodInvokesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(2142539902, model.minThreshold());
- Assertions.assertEquals(629230880, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT14H59M6S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionInnerTests.java
deleted file mode 100644
index cb5568d6247e7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionInnerTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DiscoveredSecuritySolutionInner;
-import com.azure.resourcemanager.security.models.SecurityFamily;
-import org.junit.jupiter.api.Assertions;
-
-public final class DiscoveredSecuritySolutionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DiscoveredSecuritySolutionInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"securityFamily\":\"Waf\",\"offer\":\"pbswvefloccsrm\",\"publisher\":\"zihmipgawtxxpky\",\"sku\":\"cxcjxgry\"},\"location\":\"mpcycilrmcaykgg\",\"id\":\"oxuztrksx\",\"name\":\"pndfcpfnznt\",\"type\":\"jtwkjaos\"}")
- .toObject(DiscoveredSecuritySolutionInner.class);
- Assertions.assertEquals(SecurityFamily.WAF, model.securityFamily());
- Assertions.assertEquals("pbswvefloccsrm", model.offer());
- Assertions.assertEquals("zihmipgawtxxpky", model.publisher());
- Assertions.assertEquals("cxcjxgry", model.sku());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DiscoveredSecuritySolutionInner model =
- new DiscoveredSecuritySolutionInner()
- .withSecurityFamily(SecurityFamily.WAF)
- .withOffer("pbswvefloccsrm")
- .withPublisher("zihmipgawtxxpky")
- .withSku("cxcjxgry");
- model = BinaryData.fromObject(model).toObject(DiscoveredSecuritySolutionInner.class);
- Assertions.assertEquals(SecurityFamily.WAF, model.securityFamily());
- Assertions.assertEquals("pbswvefloccsrm", model.offer());
- Assertions.assertEquals("zihmipgawtxxpky", model.publisher());
- Assertions.assertEquals("cxcjxgry", model.sku());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionListTests.java
deleted file mode 100644
index 6014a76ff0f39..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionListTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DiscoveredSecuritySolutionInner;
-import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutionList;
-import com.azure.resourcemanager.security.models.SecurityFamily;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DiscoveredSecuritySolutionListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DiscoveredSecuritySolutionList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"securityFamily\":\"Ngfw\",\"offer\":\"ptfujgicgaaoept\",\"publisher\":\"aqutdewemxswvruu\",\"sku\":\"zzjgehkfki\"},\"location\":\"tixo\",\"id\":\"ffqyinlj\",\"name\":\"epqw\",\"type\":\"ixmonstshiyxg\"},{\"properties\":{\"securityFamily\":\"SaasWaf\",\"offer\":\"lfcldu\",\"publisher\":\"cb\",\"sku\":\"rds\"},\"location\":\"wcobie\",\"id\":\"stmninwjizcilng\",\"name\":\"gshejjtbxqmulux\",\"type\":\"xqzv\"},{\"properties\":{\"securityFamily\":\"Waf\",\"offer\":\"rsbycucrwn\",\"publisher\":\"mikzeb\",\"sku\":\"qbsms\"},\"location\":\"iqg\",\"id\":\"uhok\",\"name\":\"ruswhv\",\"type\":\"czznvfbycjsxj\"},{\"properties\":{\"securityFamily\":\"Waf\",\"offer\":\"i\",\"publisher\":\"z\",\"sku\":\"umwmxqhnd\"},\"location\":\"oamld\",\"id\":\"ehaohdjhh\",\"name\":\"lzok\",\"type\":\"coxpelnjeta\"}],\"nextLink\":\"tsxoatftgz\"}")
- .toObject(DiscoveredSecuritySolutionList.class);
- Assertions.assertEquals(SecurityFamily.NGFW, model.value().get(0).securityFamily());
- Assertions.assertEquals("ptfujgicgaaoept", model.value().get(0).offer());
- Assertions.assertEquals("aqutdewemxswvruu", model.value().get(0).publisher());
- Assertions.assertEquals("zzjgehkfki", model.value().get(0).sku());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DiscoveredSecuritySolutionList model =
- new DiscoveredSecuritySolutionList()
- .withValue(
- Arrays
- .asList(
- new DiscoveredSecuritySolutionInner()
- .withSecurityFamily(SecurityFamily.NGFW)
- .withOffer("ptfujgicgaaoept")
- .withPublisher("aqutdewemxswvruu")
- .withSku("zzjgehkfki"),
- new DiscoveredSecuritySolutionInner()
- .withSecurityFamily(SecurityFamily.SAAS_WAF)
- .withOffer("lfcldu")
- .withPublisher("cb")
- .withSku("rds"),
- new DiscoveredSecuritySolutionInner()
- .withSecurityFamily(SecurityFamily.WAF)
- .withOffer("rsbycucrwn")
- .withPublisher("mikzeb")
- .withSku("qbsms"),
- new DiscoveredSecuritySolutionInner()
- .withSecurityFamily(SecurityFamily.WAF)
- .withOffer("i")
- .withPublisher("z")
- .withSku("umwmxqhnd")));
- model = BinaryData.fromObject(model).toObject(DiscoveredSecuritySolutionList.class);
- Assertions.assertEquals(SecurityFamily.NGFW, model.value().get(0).securityFamily());
- Assertions.assertEquals("ptfujgicgaaoept", model.value().get(0).offer());
- Assertions.assertEquals("aqutdewemxswvruu", model.value().get(0).publisher());
- Assertions.assertEquals("zzjgehkfki", model.value().get(0).sku());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionPropertiesTests.java
deleted file mode 100644
index 0c9f26a3f1b10..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionPropertiesTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.DiscoveredSecuritySolutionProperties;
-import com.azure.resourcemanager.security.models.SecurityFamily;
-import org.junit.jupiter.api.Assertions;
-
-public final class DiscoveredSecuritySolutionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DiscoveredSecuritySolutionProperties model =
- BinaryData
- .fromString(
- "{\"securityFamily\":\"SaasWaf\",\"offer\":\"uzvoamktcqiosm\",\"publisher\":\"bzahgxqd\",\"sku\":\"yrtltlaprltzkat\"}")
- .toObject(DiscoveredSecuritySolutionProperties.class);
- Assertions.assertEquals(SecurityFamily.SAAS_WAF, model.securityFamily());
- Assertions.assertEquals("uzvoamktcqiosm", model.offer());
- Assertions.assertEquals("bzahgxqd", model.publisher());
- Assertions.assertEquals("yrtltlaprltzkat", model.sku());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DiscoveredSecuritySolutionProperties model =
- new DiscoveredSecuritySolutionProperties()
- .withSecurityFamily(SecurityFamily.SAAS_WAF)
- .withOffer("uzvoamktcqiosm")
- .withPublisher("bzahgxqd")
- .withSku("yrtltlaprltzkat");
- model = BinaryData.fromObject(model).toObject(DiscoveredSecuritySolutionProperties.class);
- Assertions.assertEquals(SecurityFamily.SAAS_WAF, model.securityFamily());
- Assertions.assertEquals("uzvoamktcqiosm", model.offer());
- Assertions.assertEquals("bzahgxqd", model.publisher());
- Assertions.assertEquals("yrtltlaprltzkat", model.sku());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsGetWithResponseMockTests.java
deleted file mode 100644
index bba3ec5377fd8..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,74 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DiscoveredSecuritySolution;
-import com.azure.resourcemanager.security.models.SecurityFamily;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DiscoveredSecuritySolutionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"securityFamily\":\"Va\",\"offer\":\"wushlcxpbl\",\"publisher\":\"lhh\",\"sku\":\"zpfkis\"},\"location\":\"idqzsaaoqdsgpto\",\"id\":\"xjqfiafcnlrtbfi\",\"name\":\"zzcaoijolbuauk\",\"type\":\"wieopexelxqdw\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- DiscoveredSecuritySolution response =
- manager
- .discoveredSecuritySolutions()
- .getWithResponse("biwksde", "yxsbfpz", "oikvntwcz", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(SecurityFamily.VA, response.securityFamily());
- Assertions.assertEquals("wushlcxpbl", response.offer());
- Assertions.assertEquals("lhh", response.publisher());
- Assertions.assertEquals("zpfkis", response.sku());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsListByHomeRegionMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsListByHomeRegionMockTests.java
deleted file mode 100644
index 81c3536a98708..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsListByHomeRegionMockTests.java
+++ /dev/null
@@ -1,72 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DiscoveredSecuritySolution;
-import com.azure.resourcemanager.security.models.SecurityFamily;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DiscoveredSecuritySolutionsListByHomeRegionMockTests {
- @Test
- public void testListByHomeRegion() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"securityFamily\":\"Va\",\"offer\":\"kll\",\"publisher\":\"ynqanhkigglc\",\"sku\":\"walhvubh\"},\"location\":\"phetxdqc\",\"id\":\"yctajqz\",\"name\":\"vale\",\"type\":\"xb\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.discoveredSecuritySolutions().listByHomeRegion("tpzcr", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(SecurityFamily.VA, response.iterator().next().securityFamily());
- Assertions.assertEquals("kll", response.iterator().next().offer());
- Assertions.assertEquals("ynqanhkigglc", response.iterator().next().publisher());
- Assertions.assertEquals("walhvubh", response.iterator().next().sku());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsListMockTests.java
deleted file mode 100644
index 56bea0638685d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/DiscoveredSecuritySolutionsListMockTests.java
+++ /dev/null
@@ -1,72 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DiscoveredSecuritySolution;
-import com.azure.resourcemanager.security.models.SecurityFamily;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DiscoveredSecuritySolutionsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"securityFamily\":\"Waf\",\"offer\":\"qpzfzxsoxin\",\"publisher\":\"nj\",\"sku\":\"zkdrocqsxy\"},\"location\":\"qtcmiwdwisv\",\"id\":\"mey\",\"name\":\"ajamc\",\"type\":\"jyh\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.discoveredSecuritySolutions().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(SecurityFamily.WAF, response.iterator().next().securityFamily());
- Assertions.assertEquals("qpzfzxsoxin", response.iterator().next().offer());
- Assertions.assertEquals("nj", response.iterator().next().publisher());
- Assertions.assertEquals("zkdrocqsxy", response.iterator().next().sku());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EffectiveNetworkSecurityGroupsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EffectiveNetworkSecurityGroupsTests.java
deleted file mode 100644
index 27e2fa27461e1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EffectiveNetworkSecurityGroupsTests.java
+++ /dev/null
@@ -1,34 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.EffectiveNetworkSecurityGroups;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class EffectiveNetworkSecurityGroupsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- EffectiveNetworkSecurityGroups model =
- BinaryData
- .fromString(
- "{\"networkInterface\":\"aeranokqgukkjqnv\",\"networkSecurityGroups\":[\"ylaxxulcdi\",\"dosfjbjsvgjrw\"]}")
- .toObject(EffectiveNetworkSecurityGroups.class);
- Assertions.assertEquals("aeranokqgukkjqnv", model.networkInterface());
- Assertions.assertEquals("ylaxxulcdi", model.networkSecurityGroups().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- EffectiveNetworkSecurityGroups model =
- new EffectiveNetworkSecurityGroups()
- .withNetworkInterface("aeranokqgukkjqnv")
- .withNetworkSecurityGroups(Arrays.asList("ylaxxulcdi", "dosfjbjsvgjrw"));
- model = BinaryData.fromObject(model).toObject(EffectiveNetworkSecurityGroups.class);
- Assertions.assertEquals("aeranokqgukkjqnv", model.networkInterface());
- Assertions.assertEquals("ylaxxulcdi", model.networkSecurityGroups().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EnvironmentDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EnvironmentDataTests.java
deleted file mode 100644
index b86d82d1f6e7c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EnvironmentDataTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.EnvironmentData;
-
-public final class EnvironmentDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- EnvironmentData model =
- BinaryData.fromString("{\"environmentType\":\"EnvironmentData\"}").toObject(EnvironmentData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- EnvironmentData model = new EnvironmentData();
- model = BinaryData.fromObject(model).toObject(EnvironmentData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EnvironmentDetailsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EnvironmentDetailsTests.java
deleted file mode 100644
index c3dc5e78c7801..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EnvironmentDetailsTests.java
+++ /dev/null
@@ -1,42 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.EnvironmentDetails;
-import org.junit.jupiter.api.Assertions;
-
-public final class EnvironmentDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- EnvironmentDetails model =
- BinaryData
- .fromString(
- "{\"nativeResourceId\":\"lohap\",\"environmentHierarchyId\":\"nfszpyglqdhmrjz\",\"organizationalHierarchyId\":\"l\",\"subscriptionId\":\"pjby\",\"tenantId\":\"sjoqcjenkyhfqzvs\"}")
- .toObject(EnvironmentDetails.class);
- Assertions.assertEquals("lohap", model.nativeResourceId());
- Assertions.assertEquals("nfszpyglqdhmrjz", model.environmentHierarchyId());
- Assertions.assertEquals("l", model.organizationalHierarchyId());
- Assertions.assertEquals("pjby", model.subscriptionId());
- Assertions.assertEquals("sjoqcjenkyhfqzvs", model.tenantId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- EnvironmentDetails model =
- new EnvironmentDetails()
- .withNativeResourceId("lohap")
- .withEnvironmentHierarchyId("nfszpyglqdhmrjz")
- .withOrganizationalHierarchyId("l")
- .withSubscriptionId("pjby")
- .withTenantId("sjoqcjenkyhfqzvs");
- model = BinaryData.fromObject(model).toObject(EnvironmentDetails.class);
- Assertions.assertEquals("lohap", model.nativeResourceId());
- Assertions.assertEquals("nfszpyglqdhmrjz", model.environmentHierarchyId());
- Assertions.assertEquals("l", model.organizationalHierarchyId());
- Assertions.assertEquals("pjby", model.subscriptionId());
- Assertions.assertEquals("sjoqcjenkyhfqzvs", model.tenantId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EtagTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EtagTests.java
deleted file mode 100644
index f338b94dfa017..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/EtagTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.Etag;
-import org.junit.jupiter.api.Assertions;
-
-public final class EtagTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Etag model = BinaryData.fromString("{\"etag\":\"jw\"}").toObject(Etag.class);
- Assertions.assertEquals("jw", model.etag());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Etag model = new Etag().withEtag("jw");
- model = BinaryData.fromObject(model).toObject(Etag.class);
- Assertions.assertEquals("jw", model.etag());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExecuteGovernanceRuleParamsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExecuteGovernanceRuleParamsTests.java
deleted file mode 100644
index 629bc806b651b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExecuteGovernanceRuleParamsTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ExecuteGovernanceRuleParams;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExecuteGovernanceRuleParamsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExecuteGovernanceRuleParams model =
- BinaryData.fromString("{\"override\":true}").toObject(ExecuteGovernanceRuleParams.class);
- Assertions.assertEquals(true, model.override());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExecuteGovernanceRuleParams model = new ExecuteGovernanceRuleParams().withOverride(true);
- model = BinaryData.fromObject(model).toObject(ExecuteGovernanceRuleParams.class);
- Assertions.assertEquals(true, model.override());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionInnerTests.java
deleted file mode 100644
index c7243563ce055..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionInnerTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ExternalSecuritySolutionInner;
-
-public final class ExternalSecuritySolutionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExternalSecuritySolutionInner model =
- BinaryData
- .fromString(
- "{\"kind\":\"ExternalSecuritySolution\",\"location\":\"ddoui\",\"id\":\"amowaziynknlqwzd\",\"name\":\"piwhxqs\",\"type\":\"dtmaa\"}")
- .toObject(ExternalSecuritySolutionInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExternalSecuritySolutionInner model = new ExternalSecuritySolutionInner();
- model = BinaryData.fromObject(model).toObject(ExternalSecuritySolutionInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionListTests.java
deleted file mode 100644
index 2df85c8b06560..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionListTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.ExternalSecuritySolutionInner;
-import com.azure.resourcemanager.security.models.ExternalSecuritySolutionList;
-import java.util.Arrays;
-
-public final class ExternalSecuritySolutionListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExternalSecuritySolutionList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"kind\":\"ExternalSecuritySolution\",\"location\":\"ozxwopd\",\"id\":\"yd\",\"name\":\"izqaclnapxbiyg\",\"type\":\"ugjknf\"},{\"kind\":\"ExternalSecuritySolution\",\"location\":\"fcttuxuuyilfl\",\"id\":\"oiquvrehmrnjhvs\",\"name\":\"jztczytqj\",\"type\":\"w\"}],\"nextLink\":\"uunfprnjletlxsm\"}")
- .toObject(ExternalSecuritySolutionList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExternalSecuritySolutionList model =
- new ExternalSecuritySolutionList()
- .withValue(Arrays.asList(new ExternalSecuritySolutionInner(), new ExternalSecuritySolutionInner()));
- model = BinaryData.fromObject(model).toObject(ExternalSecuritySolutionList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionPropertiesTests.java
deleted file mode 100644
index f6debc2322d6f..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionPropertiesTests.java
+++ /dev/null
@@ -1,51 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.ConnectedWorkspace;
-import com.azure.resourcemanager.security.models.ExternalSecuritySolutionProperties;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExternalSecuritySolutionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExternalSecuritySolutionProperties model =
- BinaryData
- .fromString(
- "{\"deviceVendor\":\"rbzg\",\"deviceType\":\"oxqmjeajc\",\"workspace\":{\"id\":\"qg\"},\"\":{\"simjceagbjqvlsu\":\"datausrvx\",\"gon\":\"dataywzash\"}}")
- .toObject(ExternalSecuritySolutionProperties.class);
- Assertions.assertEquals("rbzg", model.deviceVendor());
- Assertions.assertEquals("oxqmjeajc", model.deviceType());
- Assertions.assertEquals("qg", model.workspace().id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExternalSecuritySolutionProperties model =
- new ExternalSecuritySolutionProperties()
- .withDeviceVendor("rbzg")
- .withDeviceType("oxqmjeajc")
- .withWorkspace(new ConnectedWorkspace().withId("qg"))
- .withAdditionalProperties(mapOf());
- model = BinaryData.fromObject(model).toObject(ExternalSecuritySolutionProperties.class);
- Assertions.assertEquals("rbzg", model.deviceVendor());
- Assertions.assertEquals("oxqmjeajc", model.deviceType());
- Assertions.assertEquals("qg", model.workspace().id());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsGetWithResponseMockTests.java
deleted file mode 100644
index 4ef34cd40f2a2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ExternalSecuritySolution;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ExternalSecuritySolutionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"kind\":\"ExternalSecuritySolution\",\"location\":\"jfccylhtrht\",\"id\":\"vazjpwexcd\",\"name\":\"zp\",\"type\":\"o\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ExternalSecuritySolution response =
- manager
- .externalSecuritySolutions()
- .getWithResponse("atpf", "saebwfwhxorpwal", "zwuge", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsListByHomeRegionMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsListByHomeRegionMockTests.java
deleted file mode 100644
index 5d91ab8dbdc54..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsListByHomeRegionMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ExternalSecuritySolution;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ExternalSecuritySolutionsListByHomeRegionMockTests {
- @Test
- public void testListByHomeRegion() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"kind\":\"ExternalSecuritySolution\",\"location\":\"i\",\"id\":\"moxrezsvavlrxi\",\"name\":\"jmoywlunpipcwybs\",\"type\":\"fncn\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.externalSecuritySolutions().listByHomeRegion("ujx", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsListMockTests.java
deleted file mode 100644
index 8072f7d852234..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/ExternalSecuritySolutionsListMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ExternalSecuritySolution;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ExternalSecuritySolutionsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"kind\":\"ExternalSecuritySolution\",\"location\":\"we\",\"id\":\"yjshcyb\",\"name\":\"fuppoxprc\",\"type\":\"vo\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.externalSecuritySolutions().list(com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/FailedLocalLoginsNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/FailedLocalLoginsNotInAllowedRangeTests.java
deleted file mode 100644
index 877d8b1952ce2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/FailedLocalLoginsNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.FailedLocalLoginsNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class FailedLocalLoginsNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FailedLocalLoginsNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"FailedLocalLoginsNotInAllowedRange\",\"timeWindowSize\":\"PT78H46M30S\",\"minThreshold\":1982738288,\"maxThreshold\":589538374,\"displayName\":\"rrcoi\",\"description\":\"bamnppcc\",\"isEnabled\":true}")
- .toObject(FailedLocalLoginsNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1982738288, model.minThreshold());
- Assertions.assertEquals(589538374, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT78H46M30S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FailedLocalLoginsNotInAllowedRange model =
- new FailedLocalLoginsNotInAllowedRange()
- .withIsEnabled(true)
- .withMinThreshold(1982738288)
- .withMaxThreshold(589538374)
- .withTimeWindowSize(Duration.parse("PT78H46M30S"));
- model = BinaryData.fromObject(model).toObject(FailedLocalLoginsNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1982738288, model.minThreshold());
- Assertions.assertEquals(589538374, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT78H46M30S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/FileUploadsNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/FileUploadsNotInAllowedRangeTests.java
deleted file mode 100644
index 3acdccdb7ac33..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/FileUploadsNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.FileUploadsNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class FileUploadsNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FileUploadsNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"FileUploadsNotInAllowedRange\",\"timeWindowSize\":\"PT179H50M54S\",\"minThreshold\":2061950840,\"maxThreshold\":2123887167,\"displayName\":\"sbezaxyfukzxuizh\",\"description\":\"nepk\",\"isEnabled\":true}")
- .toObject(FileUploadsNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(2061950840, model.minThreshold());
- Assertions.assertEquals(2123887167, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT179H50M54S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FileUploadsNotInAllowedRange model =
- new FileUploadsNotInAllowedRange()
- .withIsEnabled(true)
- .withMinThreshold(2061950840)
- .withMaxThreshold(2123887167)
- .withTimeWindowSize(Duration.parse("PT179H50M54S"));
- model = BinaryData.fromObject(model).toObject(FileUploadsNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(2061950840, model.minThreshold());
- Assertions.assertEquals(2123887167, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT179H50M54S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataMemberTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataMemberTests.java
deleted file mode 100644
index c31950361d1fd..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataMemberTests.java
+++ /dev/null
@@ -1,33 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GcpOrganizationalDataMember;
-import org.junit.jupiter.api.Assertions;
-
-public final class GcpOrganizationalDataMemberTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GcpOrganizationalDataMember model =
- BinaryData
- .fromString(
- "{\"organizationMembershipType\":\"Member\",\"parentHierarchyId\":\"atxtjrrlkmdskjhh\",\"managementProjectNumber\":\"lajfoxcxscvslxlh\"}")
- .toObject(GcpOrganizationalDataMember.class);
- Assertions.assertEquals("atxtjrrlkmdskjhh", model.parentHierarchyId());
- Assertions.assertEquals("lajfoxcxscvslxlh", model.managementProjectNumber());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GcpOrganizationalDataMember model =
- new GcpOrganizationalDataMember()
- .withParentHierarchyId("atxtjrrlkmdskjhh")
- .withManagementProjectNumber("lajfoxcxscvslxlh");
- model = BinaryData.fromObject(model).toObject(GcpOrganizationalDataMember.class);
- Assertions.assertEquals("atxtjrrlkmdskjhh", model.parentHierarchyId());
- Assertions.assertEquals("lajfoxcxscvslxlh", model.managementProjectNumber());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataOrganizationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataOrganizationTests.java
deleted file mode 100644
index da7ac224d1dc7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataOrganizationTests.java
+++ /dev/null
@@ -1,37 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GcpOrganizationalDataOrganization;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class GcpOrganizationalDataOrganizationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GcpOrganizationalDataOrganization model =
- BinaryData
- .fromString(
- "{\"organizationMembershipType\":\"Organization\",\"excludedProjectNumbers\":[\"rlefgnaavu\",\"gnteta\",\"utnpdctuhspfefyi\",\"duyeuyl\"],\"serviceAccountEmailAddress\":\"hmtybkcgsuthhll\",\"workloadIdentityProviderId\":\"wynefx\",\"organizationName\":\"lf\"}")
- .toObject(GcpOrganizationalDataOrganization.class);
- Assertions.assertEquals("rlefgnaavu", model.excludedProjectNumbers().get(0));
- Assertions.assertEquals("hmtybkcgsuthhll", model.serviceAccountEmailAddress());
- Assertions.assertEquals("wynefx", model.workloadIdentityProviderId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GcpOrganizationalDataOrganization model =
- new GcpOrganizationalDataOrganization()
- .withExcludedProjectNumbers(Arrays.asList("rlefgnaavu", "gnteta", "utnpdctuhspfefyi", "duyeuyl"))
- .withServiceAccountEmailAddress("hmtybkcgsuthhll")
- .withWorkloadIdentityProviderId("wynefx");
- model = BinaryData.fromObject(model).toObject(GcpOrganizationalDataOrganization.class);
- Assertions.assertEquals("rlefgnaavu", model.excludedProjectNumbers().get(0));
- Assertions.assertEquals("hmtybkcgsuthhll", model.serviceAccountEmailAddress());
- Assertions.assertEquals("wynefx", model.workloadIdentityProviderId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataTests.java
deleted file mode 100644
index 0249f77d98593..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpOrganizationalDataTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GcpOrganizationalData;
-
-public final class GcpOrganizationalDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GcpOrganizationalData model =
- BinaryData
- .fromString("{\"organizationMembershipType\":\"GcpOrganizationalData\"}")
- .toObject(GcpOrganizationalData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GcpOrganizationalData model = new GcpOrganizationalData();
- model = BinaryData.fromObject(model).toObject(GcpOrganizationalData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpProjectDetailsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpProjectDetailsTests.java
deleted file mode 100644
index 5aafb2dce0c06..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpProjectDetailsTests.java
+++ /dev/null
@@ -1,31 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GcpProjectDetails;
-import org.junit.jupiter.api.Assertions;
-
-public final class GcpProjectDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GcpProjectDetails model =
- BinaryData
- .fromString(
- "{\"projectNumber\":\"rsidqpxlbtpakf\",\"projectId\":\"gatwmykyu\",\"workloadIdentityPoolId\":\"ym\",\"projectName\":\"mfjhpycvjqdvdwkq\"}")
- .toObject(GcpProjectDetails.class);
- Assertions.assertEquals("rsidqpxlbtpakf", model.projectNumber());
- Assertions.assertEquals("gatwmykyu", model.projectId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GcpProjectDetails model =
- new GcpProjectDetails().withProjectNumber("rsidqpxlbtpakf").withProjectId("gatwmykyu");
- model = BinaryData.fromObject(model).toObject(GcpProjectDetails.class);
- Assertions.assertEquals("rsidqpxlbtpakf", model.projectNumber());
- Assertions.assertEquals("gatwmykyu", model.projectId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpProjectEnvironmentDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpProjectEnvironmentDataTests.java
deleted file mode 100644
index b9609d7436ab4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GcpProjectEnvironmentDataTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GcpOrganizationalData;
-import com.azure.resourcemanager.security.models.GcpProjectDetails;
-import com.azure.resourcemanager.security.models.GcpProjectEnvironmentData;
-import org.junit.jupiter.api.Assertions;
-
-public final class GcpProjectEnvironmentDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GcpProjectEnvironmentData model =
- BinaryData
- .fromString(
- "{\"environmentType\":\"GcpProject\",\"organizationalData\":{\"organizationMembershipType\":\"GcpOrganizationalData\"},\"projectDetails\":{\"projectNumber\":\"dfpdqwtygevg\",\"projectId\":\"sehar\",\"workloadIdentityPoolId\":\"fv\",\"projectName\":\"rxtmbpjptnvw\"}}")
- .toObject(GcpProjectEnvironmentData.class);
- Assertions.assertEquals("dfpdqwtygevg", model.projectDetails().projectNumber());
- Assertions.assertEquals("sehar", model.projectDetails().projectId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GcpProjectEnvironmentData model =
- new GcpProjectEnvironmentData()
- .withOrganizationalData(new GcpOrganizationalData())
- .withProjectDetails(new GcpProjectDetails().withProjectNumber("dfpdqwtygevg").withProjectId("sehar"));
- model = BinaryData.fromObject(model).toObject(GcpProjectEnvironmentData.class);
- Assertions.assertEquals("dfpdqwtygevg", model.projectDetails().projectNumber());
- Assertions.assertEquals("sehar", model.projectDetails().projectId());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GithubScopeEnvironmentDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GithubScopeEnvironmentDataTests.java
deleted file mode 100644
index 417e9df0ab9e6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GithubScopeEnvironmentDataTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GithubScopeEnvironmentData;
-
-public final class GithubScopeEnvironmentDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GithubScopeEnvironmentData model =
- BinaryData.fromString("{\"environmentType\":\"GithubScope\"}").toObject(GithubScopeEnvironmentData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GithubScopeEnvironmentData model = new GithubScopeEnvironmentData();
- model = BinaryData.fromObject(model).toObject(GithubScopeEnvironmentData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GitlabScopeEnvironmentDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GitlabScopeEnvironmentDataTests.java
deleted file mode 100644
index 4d3f168d78d28..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GitlabScopeEnvironmentDataTests.java
+++ /dev/null
@@ -1,22 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GitlabScopeEnvironmentData;
-
-public final class GitlabScopeEnvironmentDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GitlabScopeEnvironmentData model =
- BinaryData.fromString("{\"environmentType\":\"GitlabScope\"}").toObject(GitlabScopeEnvironmentData.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GitlabScopeEnvironmentData model = new GitlabScopeEnvironmentData();
- model = BinaryData.fromObject(model).toObject(GitlabScopeEnvironmentData.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentAdditionalDataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentAdditionalDataTests.java
deleted file mode 100644
index 136043399b91b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentAdditionalDataTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceAssignmentAdditionalData;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceAssignmentAdditionalDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceAssignmentAdditionalData model =
- BinaryData
- .fromString("{\"ticketNumber\":885021040,\"ticketLink\":\"njuhpsprkzya\",\"ticketStatus\":\"ia\"}")
- .toObject(GovernanceAssignmentAdditionalData.class);
- Assertions.assertEquals(885021040, model.ticketNumber());
- Assertions.assertEquals("njuhpsprkzya", model.ticketLink());
- Assertions.assertEquals("ia", model.ticketStatus());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceAssignmentAdditionalData model =
- new GovernanceAssignmentAdditionalData()
- .withTicketNumber(885021040)
- .withTicketLink("njuhpsprkzya")
- .withTicketStatus("ia");
- model = BinaryData.fromObject(model).toObject(GovernanceAssignmentAdditionalData.class);
- Assertions.assertEquals(885021040, model.ticketNumber());
- Assertions.assertEquals("njuhpsprkzya", model.ticketLink());
- Assertions.assertEquals("ia", model.ticketStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentInnerTests.java
deleted file mode 100644
index c485202262122..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentInnerTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.GovernanceAssignmentInner;
-import com.azure.resourcemanager.security.models.GovernanceAssignmentAdditionalData;
-import com.azure.resourcemanager.security.models.GovernanceEmailNotification;
-import com.azure.resourcemanager.security.models.RemediationEta;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceAssignmentInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceAssignmentInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"owner\":\"wzfgbrttuiaclkie\",\"remediationDueDate\":\"2021-01-24T04:29:25Z\",\"remediationEta\":{\"eta\":\"2021-03-15T08:06:52Z\",\"justification\":\"lfnthiqfyut\"},\"isGracePeriod\":false,\"governanceEmailNotification\":{\"disableManagerEmailNotification\":false,\"disableOwnerEmailNotification\":false},\"additionalData\":{\"ticketNumber\":1375874232,\"ticketLink\":\"mtx\",\"ticketStatus\":\"ctwwgzw\"}},\"id\":\"jlmec\",\"name\":\"og\",\"type\":\"gzyvnee\"}")
- .toObject(GovernanceAssignmentInner.class);
- Assertions.assertEquals("wzfgbrttuiaclkie", model.owner());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T04:29:25Z"), model.remediationDueDate());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-15T08:06:52Z"), model.remediationEta().eta());
- Assertions.assertEquals("lfnthiqfyut", model.remediationEta().justification());
- Assertions.assertEquals(false, model.isGracePeriod());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(1375874232, model.additionalData().ticketNumber());
- Assertions.assertEquals("mtx", model.additionalData().ticketLink());
- Assertions.assertEquals("ctwwgzw", model.additionalData().ticketStatus());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceAssignmentInner model =
- new GovernanceAssignmentInner()
- .withOwner("wzfgbrttuiaclkie")
- .withRemediationDueDate(OffsetDateTime.parse("2021-01-24T04:29:25Z"))
- .withRemediationEta(
- new RemediationEta()
- .withEta(OffsetDateTime.parse("2021-03-15T08:06:52Z"))
- .withJustification("lfnthiqfyut"))
- .withIsGracePeriod(false)
- .withGovernanceEmailNotification(
- new GovernanceEmailNotification()
- .withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(false))
- .withAdditionalData(
- new GovernanceAssignmentAdditionalData()
- .withTicketNumber(1375874232)
- .withTicketLink("mtx")
- .withTicketStatus("ctwwgzw"));
- model = BinaryData.fromObject(model).toObject(GovernanceAssignmentInner.class);
- Assertions.assertEquals("wzfgbrttuiaclkie", model.owner());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T04:29:25Z"), model.remediationDueDate());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-15T08:06:52Z"), model.remediationEta().eta());
- Assertions.assertEquals("lfnthiqfyut", model.remediationEta().justification());
- Assertions.assertEquals(false, model.isGracePeriod());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(1375874232, model.additionalData().ticketNumber());
- Assertions.assertEquals("mtx", model.additionalData().ticketLink());
- Assertions.assertEquals("ctwwgzw", model.additionalData().ticketStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentPropertiesTests.java
deleted file mode 100644
index f39d10fb18c45..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentPropertiesTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.GovernanceAssignmentProperties;
-import com.azure.resourcemanager.security.models.GovernanceAssignmentAdditionalData;
-import com.azure.resourcemanager.security.models.GovernanceEmailNotification;
-import com.azure.resourcemanager.security.models.RemediationEta;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceAssignmentPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceAssignmentProperties model =
- BinaryData
- .fromString(
- "{\"owner\":\"ifgh\",\"remediationDueDate\":\"2021-06-10T17:08:41Z\",\"remediationEta\":{\"eta\":\"2021-08-19T14:37:02Z\",\"justification\":\"qtlffhzbk\"},\"isGracePeriod\":true,\"governanceEmailNotification\":{\"disableManagerEmailNotification\":true,\"disableOwnerEmailNotification\":true},\"additionalData\":{\"ticketNumber\":1233073634,\"ticketLink\":\"nq\",\"ticketStatus\":\"wdogiyetesyp\"}}")
- .toObject(GovernanceAssignmentProperties.class);
- Assertions.assertEquals("ifgh", model.owner());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T17:08:41Z"), model.remediationDueDate());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T14:37:02Z"), model.remediationEta().eta());
- Assertions.assertEquals("qtlffhzbk", model.remediationEta().justification());
- Assertions.assertEquals(true, model.isGracePeriod());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(1233073634, model.additionalData().ticketNumber());
- Assertions.assertEquals("nq", model.additionalData().ticketLink());
- Assertions.assertEquals("wdogiyetesyp", model.additionalData().ticketStatus());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceAssignmentProperties model =
- new GovernanceAssignmentProperties()
- .withOwner("ifgh")
- .withRemediationDueDate(OffsetDateTime.parse("2021-06-10T17:08:41Z"))
- .withRemediationEta(
- new RemediationEta()
- .withEta(OffsetDateTime.parse("2021-08-19T14:37:02Z"))
- .withJustification("qtlffhzbk"))
- .withIsGracePeriod(true)
- .withGovernanceEmailNotification(
- new GovernanceEmailNotification()
- .withDisableManagerEmailNotification(true)
- .withDisableOwnerEmailNotification(true))
- .withAdditionalData(
- new GovernanceAssignmentAdditionalData()
- .withTicketNumber(1233073634)
- .withTicketLink("nq")
- .withTicketStatus("wdogiyetesyp"));
- model = BinaryData.fromObject(model).toObject(GovernanceAssignmentProperties.class);
- Assertions.assertEquals("ifgh", model.owner());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T17:08:41Z"), model.remediationDueDate());
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T14:37:02Z"), model.remediationEta().eta());
- Assertions.assertEquals("qtlffhzbk", model.remediationEta().justification());
- Assertions.assertEquals(true, model.isGracePeriod());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(1233073634, model.additionalData().ticketNumber());
- Assertions.assertEquals("nq", model.additionalData().ticketLink());
- Assertions.assertEquals("wdogiyetesyp", model.additionalData().ticketStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index ff420b6923fc9..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,99 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.GovernanceAssignment;
-import com.azure.resourcemanager.security.models.GovernanceAssignmentAdditionalData;
-import com.azure.resourcemanager.security.models.GovernanceEmailNotification;
-import com.azure.resourcemanager.security.models.RemediationEta;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceAssignmentsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"owner\":\"jjzgxqgqw\",\"remediationDueDate\":\"2021-06-27T22:34:45Z\",\"remediationEta\":{\"eta\":\"2021-09-27T23:54:35Z\",\"justification\":\"gtvh\"},\"isGracePeriod\":false,\"governanceEmailNotification\":{\"disableManagerEmailNotification\":true,\"disableOwnerEmailNotification\":false},\"additionalData\":{\"ticketNumber\":1254338347,\"ticketLink\":\"zejogmkorvvmvm\",\"ticketStatus\":\"fnqh\"}},\"id\":\"bsn\",\"name\":\"snqliwkmzojfe\",\"type\":\"yalhtgm\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- GovernanceAssignment response =
- manager
- .governanceAssignments()
- .define("canzb")
- .withExistingAssessment("kgdet", "z")
- .withOwner("wu")
- .withRemediationDueDate(OffsetDateTime.parse("2021-04-13T16:18:12Z"))
- .withRemediationEta(
- new RemediationEta()
- .withEta(OffsetDateTime.parse("2021-10-14T16:12:54Z"))
- .withJustification("vnensmuffiw"))
- .withIsGracePeriod(true)
- .withGovernanceEmailNotification(
- new GovernanceEmailNotification()
- .withDisableManagerEmailNotification(true)
- .withDisableOwnerEmailNotification(true))
- .withAdditionalData(
- new GovernanceAssignmentAdditionalData()
- .withTicketNumber(844736587)
- .withTicketLink("totdxposcslh")
- .withTicketStatus("usiecktybhjuxid"))
- .create();
-
- Assertions.assertEquals("jjzgxqgqw", response.owner());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-27T22:34:45Z"), response.remediationDueDate());
- Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T23:54:35Z"), response.remediationEta().eta());
- Assertions.assertEquals("gtvh", response.remediationEta().justification());
- Assertions.assertEquals(false, response.isGracePeriod());
- Assertions.assertEquals(true, response.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(false, response.governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(1254338347, response.additionalData().ticketNumber());
- Assertions.assertEquals("zejogmkorvvmvm", response.additionalData().ticketLink());
- Assertions.assertEquals("fnqh", response.additionalData().ticketStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsDeleteWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsDeleteWithResponseMockTests.java
deleted file mode 100644
index d70eb2bae7866..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceAssignmentsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.governanceAssignments().deleteWithResponse("iqegm", "db", "ohcwhpyv", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsGetWithResponseMockTests.java
deleted file mode 100644
index 1ca23309416b7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,79 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.GovernanceAssignment;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceAssignmentsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"owner\":\"w\",\"remediationDueDate\":\"2021-05-03T11:44:34Z\",\"remediationEta\":{\"eta\":\"2021-04-13T20:47Z\",\"justification\":\"ioctqk\"},\"isGracePeriod\":false,\"governanceEmailNotification\":{\"disableManagerEmailNotification\":true,\"disableOwnerEmailNotification\":true},\"additionalData\":{\"ticketNumber\":27888858,\"ticketLink\":\"tj\",\"ticketStatus\":\"oss\"}},\"id\":\"fjxtvlxxzqfc\",\"name\":\"rr\",\"type\":\"omxeezwyhjmb\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- GovernanceAssignment response =
- manager
- .governanceAssignments()
- .getWithResponse("wgsoriobijeiydy", "uynhbokayrgwybr", "opdweoft", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("w", response.owner());
- Assertions.assertEquals(OffsetDateTime.parse("2021-05-03T11:44:34Z"), response.remediationDueDate());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-13T20:47Z"), response.remediationEta().eta());
- Assertions.assertEquals("ioctqk", response.remediationEta().justification());
- Assertions.assertEquals(false, response.isGracePeriod());
- Assertions.assertEquals(true, response.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, response.governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(27888858, response.additionalData().ticketNumber());
- Assertions.assertEquals("tj", response.additionalData().ticketLink());
- Assertions.assertEquals("oss", response.additionalData().ticketStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsListMockTests.java
deleted file mode 100644
index 82014d8dfbe52..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsListMockTests.java
+++ /dev/null
@@ -1,85 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.GovernanceAssignment;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceAssignmentsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"owner\":\"npxraqawbmpspf\",\"remediationDueDate\":\"2021-02-16T15:05:28Z\",\"remediationEta\":{\"eta\":\"2021-05-30T23:09:04Z\",\"justification\":\"ocvvujexayglxrk\"},\"isGracePeriod\":false,\"governanceEmailNotification\":{\"disableManagerEmailNotification\":true,\"disableOwnerEmailNotification\":true},\"additionalData\":{\"ticketNumber\":1922725665,\"ticketLink\":\"jfiuofpi\",\"ticketStatus\":\"dzlvssqywj\"}},\"id\":\"packyh\",\"name\":\"dvikm\",\"type\":\"ngpmillxgjsci\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.governanceAssignments().list("khowgomvvhxow", "c", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("npxraqawbmpspf", response.iterator().next().owner());
- Assertions
- .assertEquals(
- OffsetDateTime.parse("2021-02-16T15:05:28Z"), response.iterator().next().remediationDueDate());
- Assertions
- .assertEquals(
- OffsetDateTime.parse("2021-05-30T23:09:04Z"), response.iterator().next().remediationEta().eta());
- Assertions.assertEquals("ocvvujexayglxrk", response.iterator().next().remediationEta().justification());
- Assertions.assertEquals(false, response.iterator().next().isGracePeriod());
- Assertions
- .assertEquals(
- true, response.iterator().next().governanceEmailNotification().disableManagerEmailNotification());
- Assertions
- .assertEquals(
- true, response.iterator().next().governanceEmailNotification().disableOwnerEmailNotification());
- Assertions.assertEquals(1922725665, response.iterator().next().additionalData().ticketNumber());
- Assertions.assertEquals("jfiuofpi", response.iterator().next().additionalData().ticketLink());
- Assertions.assertEquals("dzlvssqywj", response.iterator().next().additionalData().ticketStatus());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsListTests.java
deleted file mode 100644
index a52e9b7b2cbd0..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceAssignmentsListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceAssignmentsList;
-
-public final class GovernanceAssignmentsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceAssignmentsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"owner\":\"ny\",\"remediationDueDate\":\"2021-07-02T15:24:24Z\",\"isGracePeriod\":true},\"id\":\"nsrpmeyy\",\"name\":\"pkpatlbijpzgsks\",\"type\":\"fhfv\"}],\"nextLink\":\"mknbnxwcdommpv\"}")
- .toObject(GovernanceAssignmentsList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceAssignmentsList model = new GovernanceAssignmentsList();
- model = BinaryData.fromObject(model).toObject(GovernanceAssignmentsList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceEmailNotificationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceEmailNotificationTests.java
deleted file mode 100644
index c4a0f5b472138..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceEmailNotificationTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceEmailNotification;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceEmailNotificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceEmailNotification model =
- BinaryData
- .fromString("{\"disableManagerEmailNotification\":false,\"disableOwnerEmailNotification\":true}")
- .toObject(GovernanceEmailNotification.class);
- Assertions.assertEquals(false, model.disableManagerEmailNotification());
- Assertions.assertEquals(true, model.disableOwnerEmailNotification());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceEmailNotification model =
- new GovernanceEmailNotification()
- .withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(true);
- model = BinaryData.fromObject(model).toObject(GovernanceEmailNotification.class);
- Assertions.assertEquals(false, model.disableManagerEmailNotification());
- Assertions.assertEquals(true, model.disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleEmailNotificationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleEmailNotificationTests.java
deleted file mode 100644
index a83db39ccb7a1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleEmailNotificationTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceRuleEmailNotificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceRuleEmailNotification model =
- BinaryData
- .fromString("{\"disableManagerEmailNotification\":false,\"disableOwnerEmailNotification\":true}")
- .toObject(GovernanceRuleEmailNotification.class);
- Assertions.assertEquals(false, model.disableManagerEmailNotification());
- Assertions.assertEquals(true, model.disableOwnerEmailNotification());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceRuleEmailNotification model =
- new GovernanceRuleEmailNotification()
- .withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(true);
- model = BinaryData.fromObject(model).toObject(GovernanceRuleEmailNotification.class);
- Assertions.assertEquals(false, model.disableManagerEmailNotification());
- Assertions.assertEquals(true, model.disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleInnerTests.java
deleted file mode 100644
index c6715cea6442c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleInnerTests.java
+++ /dev/null
@@ -1,82 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
-import com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification;
-import com.azure.resourcemanager.security.models.GovernanceRuleMetadata;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSource;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleSourceResourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceRuleInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceRuleInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"tenantId\":\"liufiqwoyxq\",\"displayName\":\"apcohhouc\",\"description\":\"q\",\"remediationTimeframe\":\"xcxzrzdcgdzben\",\"isGracePeriod\":false,\"rulePriority\":314467274,\"isDisabled\":true,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[\"ddtjwfljhznam\"],\"conditionSets\":[\"dataatmzw\",\"datajj\",\"datacqtjzmi\",\"datavgbgatzuuvbxng\"],\"includeMemberScopes\":false,\"ownerSource\":{\"type\":\"ByTag\",\"value\":\"ahttzlswvajqfut\"},\"governanceEmailNotification\":{\"disableManagerEmailNotification\":false,\"disableOwnerEmailNotification\":true},\"metadata\":{\"createdBy\":\"unwqr\",\"createdOn\":\"2021-01-05T19:17:25Z\",\"updatedBy\":\"gqhaohcmbuocn\",\"updatedOn\":\"2021-05-14T07:13:07Z\"}},\"id\":\"hmbpyryxamebly\",\"name\":\"yvk\",\"type\":\"kmrocxne\"}")
- .toObject(GovernanceRuleInner.class);
- Assertions.assertEquals("apcohhouc", model.displayName());
- Assertions.assertEquals("q", model.description());
- Assertions.assertEquals("xcxzrzdcgdzben", model.remediationTimeframe());
- Assertions.assertEquals(false, model.isGracePeriod());
- Assertions.assertEquals(314467274, model.rulePriority());
- Assertions.assertEquals(true, model.isDisabled());
- Assertions.assertEquals(GovernanceRuleType.INTEGRATED, model.ruleType());
- Assertions.assertEquals(GovernanceRuleSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- Assertions.assertEquals("ddtjwfljhznam", model.excludedScopes().get(0));
- Assertions.assertEquals(false, model.includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, model.ownerSource().type());
- Assertions.assertEquals("ahttzlswvajqfut", model.ownerSource().value());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableOwnerEmailNotification());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceRuleInner model =
- new GovernanceRuleInner()
- .withDisplayName("apcohhouc")
- .withDescription("q")
- .withRemediationTimeframe("xcxzrzdcgdzben")
- .withIsGracePeriod(false)
- .withRulePriority(314467274)
- .withIsDisabled(true)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withExcludedScopes(Arrays.asList("ddtjwfljhznam"))
- .withConditionSets(Arrays.asList("dataatmzw", "datajj", "datacqtjzmi", "datavgbgatzuuvbxng"))
- .withIncludeMemberScopes(false)
- .withOwnerSource(
- new GovernanceRuleOwnerSource()
- .withType(GovernanceRuleOwnerSourceType.BY_TAG)
- .withValue("ahttzlswvajqfut"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification()
- .withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(true))
- .withMetadata(new GovernanceRuleMetadata());
- model = BinaryData.fromObject(model).toObject(GovernanceRuleInner.class);
- Assertions.assertEquals("apcohhouc", model.displayName());
- Assertions.assertEquals("q", model.description());
- Assertions.assertEquals("xcxzrzdcgdzben", model.remediationTimeframe());
- Assertions.assertEquals(false, model.isGracePeriod());
- Assertions.assertEquals(314467274, model.rulePriority());
- Assertions.assertEquals(true, model.isDisabled());
- Assertions.assertEquals(GovernanceRuleType.INTEGRATED, model.ruleType());
- Assertions.assertEquals(GovernanceRuleSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- Assertions.assertEquals("ddtjwfljhznam", model.excludedScopes().get(0));
- Assertions.assertEquals(false, model.includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, model.ownerSource().type());
- Assertions.assertEquals("ahttzlswvajqfut", model.ownerSource().value());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleListTests.java
deleted file mode 100644
index 62c6e0f78e0fa..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceRuleList;
-
-public final class GovernanceRuleListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceRuleList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"tenantId\":\"p\",\"displayName\":\"bkdq\",\"description\":\"dzsylollgtrczz\",\"remediationTimeframe\":\"mxzjijpvua\",\"isGracePeriod\":true,\"rulePriority\":153071773,\"isDisabled\":false,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":true},\"id\":\"rdcoxnbkkj\",\"name\":\"nurnnq\",\"type\":\"nqbpi\"},{\"properties\":{\"tenantId\":\"ltgrdogypxrxv\",\"displayName\":\"fihwu\",\"description\":\"ctafsrbxrblm\",\"remediationTimeframe\":\"owxih\",\"isGracePeriod\":false,\"rulePriority\":491471659,\"isDisabled\":true,\"ruleType\":\"ServiceNow\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":true},\"id\":\"aklsbsbq\",\"name\":\"qagwwrxaomz\",\"type\":\"sgl\"},{\"properties\":{\"tenantId\":\"zezkhhltnjadh\",\"displayName\":\"oawjqoyueay\",\"description\":\"pcmsplbyrrueqth\",\"remediationTimeframe\":\"gnmbscbbxigdhx\",\"isGracePeriod\":false,\"rulePriority\":1518081378,\"isDisabled\":true,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":true},\"id\":\"qyybxubmdnafcbq\",\"name\":\"remj\",\"type\":\"laqacigele\"},{\"properties\":{\"tenantId\":\"bvqvwzkjopwbeo\",\"displayName\":\"r\",\"description\":\"wzdqybxceakxcpts\",\"remediationTimeframe\":\"fyiaseqch\",\"isGracePeriod\":true,\"rulePriority\":375914410,\"isDisabled\":false,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":false},\"id\":\"iuemvanbwzohmnr\",\"name\":\"xbsojkli\",\"type\":\"hmdp\"}],\"nextLink\":\"sprqsgnzxojpslsv\"}")
- .toObject(GovernanceRuleList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceRuleList model = new GovernanceRuleList();
- model = BinaryData.fromObject(model).toObject(GovernanceRuleList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleMetadataTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleMetadataTests.java
deleted file mode 100644
index ac4d620cc5c8e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleMetadataTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceRuleMetadata;
-
-public final class GovernanceRuleMetadataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceRuleMetadata model =
- BinaryData
- .fromString(
- "{\"createdBy\":\"dvrmazlpd\",\"createdOn\":\"2021-01-11T12:00:50Z\",\"updatedBy\":\"ymzvla\",\"updatedOn\":\"2021-05-17T23:09:54Z\"}")
- .toObject(GovernanceRuleMetadata.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceRuleMetadata model = new GovernanceRuleMetadata();
- model = BinaryData.fromObject(model).toObject(GovernanceRuleMetadata.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleOwnerSourceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleOwnerSourceTests.java
deleted file mode 100644
index 67374d090a317..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRuleOwnerSourceTests.java
+++ /dev/null
@@ -1,31 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSource;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceRuleOwnerSourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceRuleOwnerSource model =
- BinaryData
- .fromString("{\"type\":\"ByTag\",\"value\":\"vfkoxml\"}")
- .toObject(GovernanceRuleOwnerSource.class);
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, model.type());
- Assertions.assertEquals("vfkoxml", model.value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceRuleOwnerSource model =
- new GovernanceRuleOwnerSource().withType(GovernanceRuleOwnerSourceType.BY_TAG).withValue("vfkoxml");
- model = BinaryData.fromObject(model).toObject(GovernanceRuleOwnerSource.class);
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, model.type());
- Assertions.assertEquals("vfkoxml", model.value());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulePropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulePropertiesTests.java
deleted file mode 100644
index e80930dfba717..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulePropertiesTests.java
+++ /dev/null
@@ -1,82 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.GovernanceRuleProperties;
-import com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification;
-import com.azure.resourcemanager.security.models.GovernanceRuleMetadata;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSource;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleSourceResourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleType;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class GovernanceRulePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- GovernanceRuleProperties model =
- BinaryData
- .fromString(
- "{\"tenantId\":\"sm\",\"displayName\":\"odlfpyapucygvo\",\"description\":\"yunssx\",\"remediationTimeframe\":\"hi\",\"isGracePeriod\":true,\"rulePriority\":230828821,\"isDisabled\":false,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[\"seksgbux\",\"ntuygdhgaqipir\",\"iwrqofulopmjnl\",\"x\"],\"conditionSets\":[\"datacbjpibkephuu\",\"dataerctatoyin\"],\"includeMemberScopes\":true,\"ownerSource\":{\"type\":\"ByTag\",\"value\":\"cyrduczkg\"},\"governanceEmailNotification\":{\"disableManagerEmailNotification\":false,\"disableOwnerEmailNotification\":true},\"metadata\":{\"createdBy\":\"cvcrrp\",\"createdOn\":\"2021-06-14T17:45:27Z\",\"updatedBy\":\"bstvje\",\"updatedOn\":\"2021-06-06T13:44:54Z\"}}")
- .toObject(GovernanceRuleProperties.class);
- Assertions.assertEquals("odlfpyapucygvo", model.displayName());
- Assertions.assertEquals("yunssx", model.description());
- Assertions.assertEquals("hi", model.remediationTimeframe());
- Assertions.assertEquals(true, model.isGracePeriod());
- Assertions.assertEquals(230828821, model.rulePriority());
- Assertions.assertEquals(false, model.isDisabled());
- Assertions.assertEquals(GovernanceRuleType.INTEGRATED, model.ruleType());
- Assertions.assertEquals(GovernanceRuleSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- Assertions.assertEquals("seksgbux", model.excludedScopes().get(0));
- Assertions.assertEquals(true, model.includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, model.ownerSource().type());
- Assertions.assertEquals("cyrduczkg", model.ownerSource().value());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableOwnerEmailNotification());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- GovernanceRuleProperties model =
- new GovernanceRuleProperties()
- .withDisplayName("odlfpyapucygvo")
- .withDescription("yunssx")
- .withRemediationTimeframe("hi")
- .withIsGracePeriod(true)
- .withRulePriority(230828821)
- .withIsDisabled(false)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withExcludedScopes(Arrays.asList("seksgbux", "ntuygdhgaqipir", "iwrqofulopmjnl", "x"))
- .withConditionSets(Arrays.asList("datacbjpibkephuu", "dataerctatoyin"))
- .withIncludeMemberScopes(true)
- .withOwnerSource(
- new GovernanceRuleOwnerSource()
- .withType(GovernanceRuleOwnerSourceType.BY_TAG)
- .withValue("cyrduczkg"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification()
- .withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(true))
- .withMetadata(new GovernanceRuleMetadata());
- model = BinaryData.fromObject(model).toObject(GovernanceRuleProperties.class);
- Assertions.assertEquals("odlfpyapucygvo", model.displayName());
- Assertions.assertEquals("yunssx", model.description());
- Assertions.assertEquals("hi", model.remediationTimeframe());
- Assertions.assertEquals(true, model.isGracePeriod());
- Assertions.assertEquals(230828821, model.rulePriority());
- Assertions.assertEquals(false, model.isDisabled());
- Assertions.assertEquals(GovernanceRuleType.INTEGRATED, model.ruleType());
- Assertions.assertEquals(GovernanceRuleSourceResourceType.ASSESSMENTS, model.sourceResourceType());
- Assertions.assertEquals("seksgbux", model.excludedScopes().get(0));
- Assertions.assertEquals(true, model.includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, model.ownerSource().type());
- Assertions.assertEquals("cyrduczkg", model.ownerSource().value());
- Assertions.assertEquals(false, model.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, model.governanceEmailNotification().disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index 08cdf523f1d7d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,111 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.GovernanceRule;
-import com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification;
-import com.azure.resourcemanager.security.models.GovernanceRuleMetadata;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSource;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleSourceResourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceRulesCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"tenantId\":\"jqjpv\",\"displayName\":\"aihxjtgzgtaiywbq\",\"description\":\"oig\",\"remediationTimeframe\":\"fsgsa\",\"isGracePeriod\":false,\"rulePriority\":1919322541,\"isDisabled\":false,\"ruleType\":\"ServiceNow\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[\"qlxspmrj\",\"tryldsxebuhsxr\",\"nmgsdaluyckhef\"],\"conditionSets\":[\"datahs\"],\"includeMemberScopes\":false,\"ownerSource\":{\"type\":\"Manually\",\"value\":\"pxebjlud\"},\"governanceEmailNotification\":{\"disableManagerEmailNotification\":true,\"disableOwnerEmailNotification\":true},\"metadata\":{\"createdBy\":\"xdtpry\",\"createdOn\":\"2021-05-23T11:25:30Z\",\"updatedBy\":\"nsewouxl\",\"updatedOn\":\"2021-04-21T21:20:48Z\"}},\"id\":\"vvyljurkepose\",\"name\":\"qqylmpctwjwds\",\"type\":\"lzmkxerxxxotee\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- GovernanceRule response =
- manager
- .governanceRules()
- .define("lhpses")
- .withExistingScope("zpvxak")
- .withDisplayName("goqg")
- .withDescription("yqyxyjrcbqpbis")
- .withRemediationTimeframe("lqjoxtda")
- .withIsGracePeriod(false)
- .withRulePriority(352859817)
- .withIsDisabled(false)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withExcludedScopes(Arrays.asList("ztivfwjl", "fzekfsrm", "uklajvcfoc", "hapejov"))
- .withConditionSets(Arrays.asList("datawxn", "datawhhnoyrzaa", "dataee", "datapmjen"))
- .withIncludeMemberScopes(false)
- .withOwnerSource(
- new GovernanceRuleOwnerSource()
- .withType(GovernanceRuleOwnerSourceType.MANUALLY)
- .withValue("axxcrxoxdj"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification()
- .withDisableManagerEmailNotification(false)
- .withDisableOwnerEmailNotification(false))
- .withMetadata(new GovernanceRuleMetadata())
- .create();
-
- Assertions.assertEquals("aihxjtgzgtaiywbq", response.displayName());
- Assertions.assertEquals("oig", response.description());
- Assertions.assertEquals("fsgsa", response.remediationTimeframe());
- Assertions.assertEquals(false, response.isGracePeriod());
- Assertions.assertEquals(1919322541, response.rulePriority());
- Assertions.assertEquals(false, response.isDisabled());
- Assertions.assertEquals(GovernanceRuleType.SERVICE_NOW, response.ruleType());
- Assertions.assertEquals(GovernanceRuleSourceResourceType.ASSESSMENTS, response.sourceResourceType());
- Assertions.assertEquals("qlxspmrj", response.excludedScopes().get(0));
- Assertions.assertEquals(false, response.includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.MANUALLY, response.ownerSource().type());
- Assertions.assertEquals("pxebjlud", response.ownerSource().value());
- Assertions.assertEquals(true, response.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, response.governanceEmailNotification().disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesDeleteMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesDeleteMockTests.java
deleted file mode 100644
index 17e7f70aa603b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesDeleteMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceRulesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.governanceRules().delete("wpdkktpmbmxbmb", "wgzzxljb", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesGetWithResponseMockTests.java
deleted file mode 100644
index f82053789e5da..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,86 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.GovernanceRule;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleSourceResourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceRulesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"tenantId\":\"j\",\"displayName\":\"n\",\"description\":\"dtjva\",\"remediationTimeframe\":\"yznm\",\"isGracePeriod\":false,\"rulePriority\":1496636288,\"isDisabled\":false,\"ruleType\":\"ServiceNow\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[\"gytoxuwhtt\",\"zqsa\"],\"conditionSets\":[\"dataebg\",\"datazplusdekpdzzms\",\"datagpgvokyejidbdq\"],\"includeMemberScopes\":true,\"ownerSource\":{\"type\":\"ByTag\",\"value\":\"cwztlvvws\"},\"governanceEmailNotification\":{\"disableManagerEmailNotification\":false,\"disableOwnerEmailNotification\":true},\"metadata\":{\"createdBy\":\"repwpwfkcaux\",\"createdOn\":\"2021-07-16T09:20:09Z\",\"updatedBy\":\"cpfpdofuckcl\",\"updatedOn\":\"2021-10-21T16:06:31Z\"}},\"id\":\"luevsolzwilfng\",\"name\":\"jfsqeb\",\"type\":\"uxjxhfxf\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- GovernanceRule response =
- manager
- .governanceRules()
- .getWithResponse("gsevmdm", "enlrstgf", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("n", response.displayName());
- Assertions.assertEquals("dtjva", response.description());
- Assertions.assertEquals("yznm", response.remediationTimeframe());
- Assertions.assertEquals(false, response.isGracePeriod());
- Assertions.assertEquals(1496636288, response.rulePriority());
- Assertions.assertEquals(false, response.isDisabled());
- Assertions.assertEquals(GovernanceRuleType.SERVICE_NOW, response.ruleType());
- Assertions.assertEquals(GovernanceRuleSourceResourceType.ASSESSMENTS, response.sourceResourceType());
- Assertions.assertEquals("gytoxuwhtt", response.excludedScopes().get(0));
- Assertions.assertEquals(true, response.includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, response.ownerSource().type());
- Assertions.assertEquals("cwztlvvws", response.ownerSource().value());
- Assertions.assertEquals(false, response.governanceEmailNotification().disableManagerEmailNotification());
- Assertions.assertEquals(true, response.governanceEmailNotification().disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesListMockTests.java
deleted file mode 100644
index d5739fd28d740..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesListMockTests.java
+++ /dev/null
@@ -1,90 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.GovernanceRule;
-import com.azure.resourcemanager.security.models.GovernanceRuleOwnerSourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleSourceResourceType;
-import com.azure.resourcemanager.security.models.GovernanceRuleType;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceRulesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"tenantId\":\"oaeoc\",\"displayName\":\"ajtfey\",\"description\":\"bdgddkrh\",\"remediationTimeframe\":\"cxbeuuqutkzwtjww\",\"isGracePeriod\":false,\"rulePriority\":574110550,\"isDisabled\":false,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[\"nondegjdyd\"],\"conditionSets\":[\"datakkkbjuckcatuqbh\",\"dataowcnxtpz\",\"datalyseidtoak\",\"datat\"],\"includeMemberScopes\":true,\"ownerSource\":{\"type\":\"ByTag\",\"value\":\"hzbqfdpfawrptvcs\"},\"governanceEmailNotification\":{\"disableManagerEmailNotification\":true,\"disableOwnerEmailNotification\":true},\"metadata\":{\"createdBy\":\"tbqgdirdamm\",\"createdOn\":\"2021-04-05T19:23:11Z\",\"updatedBy\":\"cfjfxtbwjj\",\"updatedOn\":\"2021-06-25T16:41:01Z\"}},\"id\":\"uydgfttmdofgeoa\",\"name\":\"fuof\",\"type\":\"nxodwxmdajwiyg\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.governanceRules().list("yjfzi", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("ajtfey", response.iterator().next().displayName());
- Assertions.assertEquals("bdgddkrh", response.iterator().next().description());
- Assertions.assertEquals("cxbeuuqutkzwtjww", response.iterator().next().remediationTimeframe());
- Assertions.assertEquals(false, response.iterator().next().isGracePeriod());
- Assertions.assertEquals(574110550, response.iterator().next().rulePriority());
- Assertions.assertEquals(false, response.iterator().next().isDisabled());
- Assertions.assertEquals(GovernanceRuleType.INTEGRATED, response.iterator().next().ruleType());
- Assertions
- .assertEquals(
- GovernanceRuleSourceResourceType.ASSESSMENTS, response.iterator().next().sourceResourceType());
- Assertions.assertEquals("nondegjdyd", response.iterator().next().excludedScopes().get(0));
- Assertions.assertEquals(true, response.iterator().next().includeMemberScopes());
- Assertions.assertEquals(GovernanceRuleOwnerSourceType.BY_TAG, response.iterator().next().ownerSource().type());
- Assertions.assertEquals("hzbqfdpfawrptvcs", response.iterator().next().ownerSource().value());
- Assertions
- .assertEquals(
- true, response.iterator().next().governanceEmailNotification().disableManagerEmailNotification());
- Assertions
- .assertEquals(
- true, response.iterator().next().governanceEmailNotification().disableOwnerEmailNotification());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesOperationResultsWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesOperationResultsWithResponseMockTests.java
deleted file mode 100644
index ffe9ddfdb235c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/GovernanceRulesOperationResultsWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.OperationResultAutoGenerated;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class GovernanceRulesOperationResultsWithResponseMockTests {
- @Test
- public void testOperationResultsWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"status\":\"Failed\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- OperationResultAutoGenerated response =
- manager
- .governanceRules()
- .operationResultsWithResponse(
- "hxsdplaumydmhwe", "jf", "xydgtokvqbvwg", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HealthDataClassificationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HealthDataClassificationTests.java
deleted file mode 100644
index 276de2c075f97..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HealthDataClassificationTests.java
+++ /dev/null
@@ -1,36 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.HealthDataClassification;
-import com.azure.resourcemanager.security.models.ScopeName;
-import org.junit.jupiter.api.Assertions;
-
-public final class HealthDataClassificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HealthDataClassification model =
- BinaryData
- .fromString("{\"component\":\"fxjelg\",\"scenario\":\"pzqjhhhq\",\"scope\":\"Connectors\"}")
- .toObject(HealthDataClassification.class);
- Assertions.assertEquals("fxjelg", model.component());
- Assertions.assertEquals("pzqjhhhq", model.scenario());
- Assertions.assertEquals(ScopeName.CONNECTORS, model.scope());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HealthDataClassification model =
- new HealthDataClassification()
- .withComponent("fxjelg")
- .withScenario("pzqjhhhq")
- .withScope(ScopeName.CONNECTORS);
- model = BinaryData.fromObject(model).toObject(HealthDataClassification.class);
- Assertions.assertEquals("fxjelg", model.component());
- Assertions.assertEquals("pzqjhhhq", model.scenario());
- Assertions.assertEquals(ScopeName.CONNECTORS, model.scope());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HealthReportsListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HealthReportsListTests.java
deleted file mode 100644
index 92a2accc73fde..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HealthReportsListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.HealthReportsList;
-
-public final class HealthReportsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HealthReportsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"affectedDefendersPlans\":[],\"issues\":[]},\"id\":\"rpq\",\"name\":\"vmblcouqe\",\"type\":\"bhbcdszir\"}],\"nextLink\":\"an\"}")
- .toObject(HealthReportsList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HealthReportsList model = new HealthReportsList();
- model = BinaryData.fromObject(model).toObject(HealthReportsList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpC2DMessagesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpC2DMessagesNotInAllowedRangeTests.java
deleted file mode 100644
index 945fff22cb970..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpC2DMessagesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.HttpC2DMessagesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class HttpC2DMessagesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HttpC2DMessagesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"HttpC2DMessagesNotInAllowedRange\",\"timeWindowSize\":\"PT97H37M31S\",\"minThreshold\":1748294835,\"maxThreshold\":94404068,\"displayName\":\"mouvbl\",\"description\":\"okzkltr\",\"isEnabled\":true}")
- .toObject(HttpC2DMessagesNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1748294835, model.minThreshold());
- Assertions.assertEquals(94404068, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT97H37M31S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HttpC2DMessagesNotInAllowedRange model =
- new HttpC2DMessagesNotInAllowedRange()
- .withIsEnabled(true)
- .withMinThreshold(1748294835)
- .withMaxThreshold(94404068)
- .withTimeWindowSize(Duration.parse("PT97H37M31S"));
- model = BinaryData.fromObject(model).toObject(HttpC2DMessagesNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1748294835, model.minThreshold());
- Assertions.assertEquals(94404068, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT97H37M31S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpC2DRejectedMessagesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpC2DRejectedMessagesNotInAllowedRangeTests.java
deleted file mode 100644
index 84b708f60d137..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpC2DRejectedMessagesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.HttpC2DRejectedMessagesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class HttpC2DRejectedMessagesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HttpC2DRejectedMessagesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"HttpC2DRejectedMessagesNotInAllowedRange\",\"timeWindowSize\":\"PT63H43M46S\",\"minThreshold\":290921266,\"maxThreshold\":1500801234,\"displayName\":\"qxmbjroumzzn\",\"description\":\"l\",\"isEnabled\":false}")
- .toObject(HttpC2DRejectedMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(290921266, model.minThreshold());
- Assertions.assertEquals(1500801234, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT63H43M46S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HttpC2DRejectedMessagesNotInAllowedRange model =
- new HttpC2DRejectedMessagesNotInAllowedRange()
- .withIsEnabled(false)
- .withMinThreshold(290921266)
- .withMaxThreshold(1500801234)
- .withTimeWindowSize(Duration.parse("PT63H43M46S"));
- model = BinaryData.fromObject(model).toObject(HttpC2DRejectedMessagesNotInAllowedRange.class);
- Assertions.assertEquals(false, model.isEnabled());
- Assertions.assertEquals(290921266, model.minThreshold());
- Assertions.assertEquals(1500801234, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT63H43M46S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpD2CMessagesNotInAllowedRangeTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpD2CMessagesNotInAllowedRangeTests.java
deleted file mode 100644
index 9ec53e3fd2fb3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/HttpD2CMessagesNotInAllowedRangeTests.java
+++ /dev/null
@@ -1,40 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.HttpD2CMessagesNotInAllowedRange;
-import java.time.Duration;
-import org.junit.jupiter.api.Assertions;
-
-public final class HttpD2CMessagesNotInAllowedRangeTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- HttpD2CMessagesNotInAllowedRange model =
- BinaryData
- .fromString(
- "{\"ruleType\":\"HttpD2CMessagesNotInAllowedRange\",\"timeWindowSize\":\"PT111H55M28S\",\"minThreshold\":1174525778,\"maxThreshold\":184797601,\"displayName\":\"jkqev\",\"description\":\"rmmwiuawvcmj\",\"isEnabled\":true}")
- .toObject(HttpD2CMessagesNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1174525778, model.minThreshold());
- Assertions.assertEquals(184797601, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT111H55M28S"), model.timeWindowSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- HttpD2CMessagesNotInAllowedRange model =
- new HttpD2CMessagesNotInAllowedRange()
- .withIsEnabled(true)
- .withMinThreshold(1174525778)
- .withMaxThreshold(184797601)
- .withTimeWindowSize(Duration.parse("PT111H55M28S"));
- model = BinaryData.fromObject(model).toObject(HttpD2CMessagesNotInAllowedRange.class);
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals(1174525778, model.minThreshold());
- Assertions.assertEquals(184797601, model.maxThreshold());
- Assertions.assertEquals(Duration.parse("PT111H55M28S"), model.timeWindowSize());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IdentityTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IdentityTests.java
deleted file mode 100644
index 16716635e2a9e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IdentityTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.Identity;
-import com.azure.resourcemanager.security.models.ResourceIdentityType;
-import org.junit.jupiter.api.Assertions;
-
-public final class IdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Identity model =
- BinaryData
- .fromString("{\"principalId\":\"pzfngqjcli\",\"tenantId\":\"tujwjju\",\"type\":\"SystemAssigned\"}")
- .toObject(Identity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Identity model = new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED);
- model = BinaryData.fromObject(model).toObject(Identity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionAwsOfferingInformationProtectionTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionAwsOfferingInformationProtectionTests.java
deleted file mode 100644
index cf5a043d9f548..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionAwsOfferingInformationProtectionTests.java
+++ /dev/null
@@ -1,28 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.InformationProtectionAwsOfferingInformationProtection;
-import org.junit.jupiter.api.Assertions;
-
-public final class InformationProtectionAwsOfferingInformationProtectionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- InformationProtectionAwsOfferingInformationProtection model =
- BinaryData
- .fromString("{\"cloudRoleArn\":\"atolekscbc\"}")
- .toObject(InformationProtectionAwsOfferingInformationProtection.class);
- Assertions.assertEquals("atolekscbc", model.cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- InformationProtectionAwsOfferingInformationProtection model =
- new InformationProtectionAwsOfferingInformationProtection().withCloudRoleArn("atolekscbc");
- model = BinaryData.fromObject(model).toObject(InformationProtectionAwsOfferingInformationProtection.class);
- Assertions.assertEquals("atolekscbc", model.cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionAwsOfferingTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionAwsOfferingTests.java
deleted file mode 100644
index 06d1cdde4fb0b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionAwsOfferingTests.java
+++ /dev/null
@@ -1,32 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.InformationProtectionAwsOffering;
-import com.azure.resourcemanager.security.models.InformationProtectionAwsOfferingInformationProtection;
-import org.junit.jupiter.api.Assertions;
-
-public final class InformationProtectionAwsOfferingTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- InformationProtectionAwsOffering model =
- BinaryData
- .fromString(
- "{\"offeringType\":\"InformationProtectionAws\",\"informationProtection\":{\"cloudRoleArn\":\"ytt\"},\"description\":\"knwfrkebsmhpdujd\"}")
- .toObject(InformationProtectionAwsOffering.class);
- Assertions.assertEquals("ytt", model.informationProtection().cloudRoleArn());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- InformationProtectionAwsOffering model =
- new InformationProtectionAwsOffering()
- .withInformationProtection(
- new InformationProtectionAwsOfferingInformationProtection().withCloudRoleArn("ytt"));
- model = BinaryData.fromObject(model).toObject(InformationProtectionAwsOffering.class);
- Assertions.assertEquals("ytt", model.informationProtection().cloudRoleArn());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionKeywordTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionKeywordTests.java
deleted file mode 100644
index d3dedd80d4012..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionKeywordTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.InformationProtectionKeyword;
-import org.junit.jupiter.api.Assertions;
-
-public final class InformationProtectionKeywordTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- InformationProtectionKeyword model =
- BinaryData
- .fromString(
- "{\"pattern\":\"zlxwabmqoefkifr\",\"custom\":true,\"canBeNumeric\":true,\"excluded\":false}")
- .toObject(InformationProtectionKeyword.class);
- Assertions.assertEquals("zlxwabmqoefkifr", model.pattern());
- Assertions.assertEquals(true, model.custom());
- Assertions.assertEquals(true, model.canBeNumeric());
- Assertions.assertEquals(false, model.excluded());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- InformationProtectionKeyword model =
- new InformationProtectionKeyword()
- .withPattern("zlxwabmqoefkifr")
- .withCustom(true)
- .withCanBeNumeric(true)
- .withExcluded(false);
- model = BinaryData.fromObject(model).toObject(InformationProtectionKeyword.class);
- Assertions.assertEquals("zlxwabmqoefkifr", model.pattern());
- Assertions.assertEquals(true, model.custom());
- Assertions.assertEquals(true, model.canBeNumeric());
- Assertions.assertEquals(false, model.excluded());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index 6b9bc99e2e6e4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,84 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicy;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicyName;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class InformationProtectionPoliciesCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"lastModifiedUtc\":\"2021-09-28T10:09:58Z\",\"version\":\"ugggzlfbgrdcgu\",\"labels\":{},\"informationTypes\":{}},\"id\":\"dylperpilttjzgc\",\"name\":\"fcm\",\"type\":\"pfb\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- InformationProtectionPolicy response =
- manager
- .informationProtectionPolicies()
- .define(InformationProtectionPolicyName.EFFECTIVE)
- .withExistingScope("auwazcgwd")
- .withLabels(mapOf())
- .withInformationTypes(mapOf())
- .create();
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesGetWithResponseMockTests.java
deleted file mode 100644
index afe0d0fc390ca..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,68 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicy;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicyName;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class InformationProtectionPoliciesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"lastModifiedUtc\":\"2021-04-24T13:47:51Z\",\"version\":\"xnxmlbmuoswkj\",\"labels\":{},\"informationTypes\":{}},\"id\":\"cy\",\"name\":\"yzlwhbwzjnufzrf\",\"type\":\"m\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- InformationProtectionPolicy response =
- manager
- .informationProtectionPolicies()
- .getWithResponse("rf", InformationProtectionPolicyName.CUSTOM, com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesListMockTests.java
deleted file mode 100644
index dc5034b7ba767..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPoliciesListMockTests.java
+++ /dev/null
@@ -1,65 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicy;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class InformationProtectionPoliciesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"lastModifiedUtc\":\"2021-01-14T00:19:35Z\",\"version\":\"dzuubjtvgjsxm\",\"labels\":{},\"informationTypes\":{}},\"id\":\"avdpwwobtdphtits\",\"name\":\"fofwan\",\"type\":\"hks\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.informationProtectionPolicies().list("qgnnbz", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPolicyListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPolicyListTests.java
deleted file mode 100644
index 95c38e44ca1e1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/InformationProtectionPolicyListTests.java
+++ /dev/null
@@ -1,46 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.InformationProtectionPolicyInner;
-import com.azure.resourcemanager.security.models.InformationProtectionPolicyList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-public final class InformationProtectionPolicyListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- InformationProtectionPolicyList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"lastModifiedUtc\":\"2021-01-14T06:42:30Z\",\"version\":\"btndo\",\"labels\":{},\"informationTypes\":{}},\"id\":\"gbjcntujitcjed\",\"name\":\"twwaezkojvdcpzf\",\"type\":\"qouicybxarzgsz\"},{\"properties\":{\"lastModifiedUtc\":\"2021-07-26T12:22:12Z\",\"version\":\"iqopidoamciod\",\"labels\":{},\"informationTypes\":{}},\"id\":\"azxkhnzbonlwnto\",\"name\":\"gokdwbwhks\",\"type\":\"zcmrvexztvb\"}],\"nextLink\":\"gsfraoyzkoow\"}")
- .toObject(InformationProtectionPolicyList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- InformationProtectionPolicyList model =
- new InformationProtectionPolicyList()
- .withValue(
- Arrays
- .asList(
- new InformationProtectionPolicyInner().withLabels(mapOf()).withInformationTypes(mapOf()),
- new InformationProtectionPolicyInner().withLabels(mapOf()).withInformationTypes(mapOf())));
- model = BinaryData.fromObject(model).toObject(InformationProtectionPolicyList.class);
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionConnectionStringTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionConnectionStringTests.java
deleted file mode 100644
index b2e32e7d4689c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionConnectionStringTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IngestionConnectionString;
-
-public final class IngestionConnectionStringTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IngestionConnectionString model =
- BinaryData
- .fromString("{\"location\":\"d\",\"value\":\"ypivlsbb\"}")
- .toObject(IngestionConnectionString.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IngestionConnectionString model = new IngestionConnectionString();
- model = BinaryData.fromObject(model).toObject(IngestionConnectionString.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingInnerTests.java
deleted file mode 100644
index 2aa4af3471bff..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingInnerTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IngestionSettingInner;
-
-public final class IngestionSettingInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IngestionSettingInner model =
- BinaryData
- .fromString("{\"properties\":\"datacqlh\",\"id\":\"isws\",\"name\":\"miii\",\"type\":\"v\"}")
- .toObject(IngestionSettingInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IngestionSettingInner model = new IngestionSettingInner().withProperties("datacqlh");
- model = BinaryData.fromObject(model).toObject(IngestionSettingInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingListTests.java
deleted file mode 100644
index f261272c0e03e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingListTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IngestionSettingList;
-
-public final class IngestionSettingListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IngestionSettingList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":\"datamhdroznnhdrlktg\",\"id\":\"csgguxhemlw\",\"name\":\"waeeczgfb\",\"type\":\"kklelssxblycs\"},{\"properties\":\"dataujksrlsmdesqplpv\",\"id\":\"jcdoewb\",\"name\":\"dyvt\",\"type\":\"owx\"},{\"properties\":\"datapiudeugfsxzecpa\",\"id\":\"wkufykhvuhxepm\",\"name\":\"utznabaobns\",\"type\":\"ujdjltymkmvg\"},{\"properties\":\"datahywartspph\",\"id\":\"ixkykxd\",\"name\":\"sj\",\"type\":\"emmucfxh\"}],\"nextLink\":\"kflrmymy\"}")
- .toObject(IngestionSettingList.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IngestionSettingList model = new IngestionSettingList();
- model = BinaryData.fromObject(model).toObject(IngestionSettingList.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsCreateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsCreateWithResponseMockTests.java
deleted file mode 100644
index 957fb84718525..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IngestionSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IngestionSettingsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":\"datanzrsbkkzovlzdmn\",\"id\":\"mfwsxafofu\",\"name\":\"orimmo\",\"type\":\"zwdehkkmvhz\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IngestionSetting response = manager.ingestionSettings().define("ecuyr").withProperties("dataimb").create();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsDeleteWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsDeleteWithResponseMockTests.java
deleted file mode 100644
index 4e039d04b20bb..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IngestionSettingsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.ingestionSettings().deleteWithResponse("ezp", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsGetWithResponseMockTests.java
deleted file mode 100644
index fb7975dc5601d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IngestionSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IngestionSettingsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":\"datafiybxqich\",\"id\":\"ybfzdqekivycp\",\"name\":\"cv\",\"type\":\"izulrqtbht\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IngestionSetting response =
- manager.ingestionSettings().getWithResponse("kdtfo", com.azure.core.util.Context.NONE).getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsListConnectionStringsWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsListConnectionStringsWithResponseMockTests.java
deleted file mode 100644
index bb78d72945b50..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsListConnectionStringsWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.ConnectionStrings;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IngestionSettingsListConnectionStringsWithResponseMockTests {
- @Test
- public void testListConnectionStringsWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"location\":\"dccgndjgdpriggqq\",\"value\":\"qfcbuul\"},{\"location\":\"uflqjfshtuj\",\"value\":\"ohigimwdcsk\"},{\"location\":\"qnq\",\"value\":\"ixnmbz\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ConnectionStrings response =
- manager
- .ingestionSettings()
- .listConnectionStringsWithResponse("il", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsListMockTests.java
deleted file mode 100644
index a8b3100f8f67d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IngestionSettingsListMockTests.java
+++ /dev/null
@@ -1,64 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IngestionSetting;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IngestionSettingsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":\"datahgjnaq\",\"id\":\"qipslz\",\"name\":\"vcdsvm\",\"type\":\"bit\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.ingestionSettings().list(com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertInnerTests.java
deleted file mode 100644
index 634b34355835c..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertInnerTests.java
+++ /dev/null
@@ -1,42 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecurityAggregatedAlertInner;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecurityAggregatedAlertInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedAlertInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"alertType\":\"riplrbpbewtg\",\"alertDisplayName\":\"gblcgwxzvlvq\",\"vendorName\":\"begibtnmxiebwwa\",\"reportedSeverity\":\"Low\",\"remediationSteps\":\"qcgw\",\"description\":\"zjuzgwyz\",\"count\":4114340895697399622,\"effectedResourceType\":\"ngmtsavjcb\",\"systemSource\":\"xqpsrknftguv\",\"actionTaken\":\"uhprwmdyvxqt\",\"logAnalyticsQuery\":\"riwwroy\",\"topDevicesList\":[{\"deviceId\":\"rmcqiby\",\"alertsCount\":8763943848607308417,\"lastOccurrence\":\"knme\"},{\"deviceId\":\"sgzvahapjyzhpv\",\"alertsCount\":6872658649281325491,\"lastOccurrence\":\"rvxdjzlmw\"},{\"deviceId\":\"kvugfhzovawjvzun\",\"alertsCount\":6384208989627743230,\"lastOccurrence\":\"n\"},{\"deviceId\":\"nxipeil\",\"alertsCount\":7813618899616430195,\"lastOccurrence\":\"e\"}]},\"tags\":{\"mv\":\"ultskzbbtdz\",\"wozuhkf\":\"ekg\"},\"id\":\"bsjyofdx\",\"name\":\"uusdttouwa\",\"type\":\"oekqvk\"}")
- .toObject(IoTSecurityAggregatedAlertInner.class);
- Assertions.assertEquals("ultskzbbtdz", model.tags().get("mv"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedAlertInner model =
- new IoTSecurityAggregatedAlertInner().withTags(mapOf("mv", "ultskzbbtdz", "wozuhkf", "ekg"));
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedAlertInner.class);
- Assertions.assertEquals("ultskzbbtdz", model.tags().get("mv"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertListTests.java
deleted file mode 100644
index cb00af9b5533a..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertListTests.java
+++ /dev/null
@@ -1,49 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecurityAggregatedAlertInner;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedAlertList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecurityAggregatedAlertListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedAlertList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"alertType\":\"b\",\"alertDisplayName\":\"ldawkzbaliourqha\",\"vendorName\":\"hashsfwxosow\",\"reportedSeverity\":\"Medium\",\"remediationSteps\":\"gicjooxdjeb\",\"description\":\"ucww\",\"count\":2907518339137583712,\"effectedResourceType\":\"vmeueci\",\"systemSource\":\"hzceuojgjrwjue\",\"actionTaken\":\"twm\",\"logAnalyticsQuery\":\"ytdxwit\",\"topDevicesList\":[]},\"tags\":{\"kxfbkpycgklwndn\":\"awgqwgxhni\",\"wzbtdhxu\":\"jdauwhvy\"},\"id\":\"znbmpowuwprzq\",\"name\":\"veual\",\"type\":\"pjmkhfxobbc\"}],\"nextLink\":\"s\"}")
- .toObject(IoTSecurityAggregatedAlertList.class);
- Assertions.assertEquals("awgqwgxhni", model.value().get(0).tags().get("kxfbkpycgklwndn"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedAlertList model =
- new IoTSecurityAggregatedAlertList()
- .withValue(
- Arrays
- .asList(
- new IoTSecurityAggregatedAlertInner()
- .withTags(mapOf("kxfbkpycgklwndn", "awgqwgxhni", "wzbtdhxu", "jdauwhvy"))));
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedAlertList.class);
- Assertions.assertEquals("awgqwgxhni", model.value().get(0).tags().get("kxfbkpycgklwndn"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertPropertiesTests.java
deleted file mode 100644
index f2d7da1f12e46..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertPropertiesTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecurityAggregatedAlertProperties;
-
-public final class IoTSecurityAggregatedAlertPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedAlertProperties model =
- BinaryData
- .fromString(
- "{\"alertType\":\"nsmvbxwyj\",\"alertDisplayName\":\"lh\",\"vendorName\":\"aln\",\"reportedSeverity\":\"High\",\"remediationSteps\":\"sxyawjoyaqcs\",\"description\":\"jpkiidzyexznelix\",\"count\":3030315127445847890,\"effectedResourceType\":\"folhbnxknal\",\"systemSource\":\"lp\",\"actionTaken\":\"gdtpnapnyiro\",\"logAnalyticsQuery\":\"hpigv\",\"topDevicesList\":[{\"deviceId\":\"gqgitxmedjvcsl\",\"alertsCount\":5849348987172300465,\"lastOccurrence\":\"ncw\"},{\"deviceId\":\"hxg\",\"alertsCount\":8312530618702549187,\"lastOccurrence\":\"ucnapkteoellwp\"},{\"deviceId\":\"d\",\"alertsCount\":4494990539994529771,\"lastOccurrence\":\"b\"},{\"deviceId\":\"ceopzfqrhhuaopp\",\"alertsCount\":5543596082951034644,\"lastOccurrence\":\"xolzdahzx\"}]}")
- .toObject(IoTSecurityAggregatedAlertProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedAlertProperties model = new IoTSecurityAggregatedAlertProperties();
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedAlertProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertPropertiesTopDevicesListItemTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertPropertiesTopDevicesListItemTests.java
deleted file mode 100644
index bd0e8b85ac1cc..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedAlertPropertiesTopDevicesListItemTests.java
+++ /dev/null
@@ -1,26 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedAlertPropertiesTopDevicesListItem;
-
-public final class IoTSecurityAggregatedAlertPropertiesTopDevicesListItemTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedAlertPropertiesTopDevicesListItem model =
- BinaryData
- .fromString(
- "{\"deviceId\":\"obgbkdmoizp\",\"alertsCount\":753837388632017239,\"lastOccurrence\":\"rcfbunrm\"}")
- .toObject(IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedAlertPropertiesTopDevicesListItem model =
- new IoTSecurityAggregatedAlertPropertiesTopDevicesListItem();
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedAlertPropertiesTopDevicesListItem.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationInnerTests.java
deleted file mode 100644
index c96292eadcbaa..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationInnerTests.java
+++ /dev/null
@@ -1,55 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecurityAggregatedRecommendationInner;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecurityAggregatedRecommendationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedRecommendationInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"recommendationName\":\"hhkxbp\",\"recommendationDisplayName\":\"ymjhxxjyngudivkr\",\"description\":\"wbxqzvszjfau\",\"recommendationTypeId\":\"fdxxivetvtcqaqtd\",\"detectedBy\":\"mcbxvwvxysl\",\"remediationSteps\":\"hsfxoblytkb\",\"reportedSeverity\":\"Informational\",\"healthyDevices\":7965235858819395640,\"unhealthyDeviceCount\":2233870853702293034,\"logAnalyticsQuery\":\"rvrnsvshqjohxc\"},\"tags\":{\"uvwbhsqfs\":\"fovasr\",\"bsrfbj\":\"bcgjbirxbp\",\"otftpvjzbexilz\":\"dtws\",\"qtaruoujmkcjhwq\":\"nfqqnvwp\"},\"id\":\"tjrybnwjewgdr\",\"name\":\"ervnaenqpehi\",\"type\":\"doy\"}")
- .toObject(IoTSecurityAggregatedRecommendationInner.class);
- Assertions.assertEquals("fovasr", model.tags().get("uvwbhsqfs"));
- Assertions.assertEquals("hhkxbp", model.recommendationName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedRecommendationInner model =
- new IoTSecurityAggregatedRecommendationInner()
- .withTags(
- mapOf(
- "uvwbhsqfs",
- "fovasr",
- "bsrfbj",
- "bcgjbirxbp",
- "otftpvjzbexilz",
- "dtws",
- "qtaruoujmkcjhwq",
- "nfqqnvwp"))
- .withRecommendationName("hhkxbp");
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedRecommendationInner.class);
- Assertions.assertEquals("fovasr", model.tags().get("uvwbhsqfs"));
- Assertions.assertEquals("hhkxbp", model.recommendationName());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationListTests.java
deleted file mode 100644
index a0132eb01140e..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationListTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecurityAggregatedRecommendationInner;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedRecommendationList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecurityAggregatedRecommendationListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedRecommendationList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"recommendationName\":\"sadbz\",\"recommendationDisplayName\":\"vdfznudaodvxzb\",\"description\":\"blylpstdbh\",\"recommendationTypeId\":\"srzdzucerscdn\",\"detectedBy\":\"evfiwjmygt\",\"remediationSteps\":\"slswtm\",\"reportedSeverity\":\"Medium\",\"healthyDevices\":3002295961372287593,\"unhealthyDeviceCount\":3838355662332369134,\"logAnalyticsQuery\":\"semwabnet\"},\"tags\":{\"wubmwmbesldn\":\"szhedplvw\",\"lcxog\":\"wwtppj\",\"qqkdltfzxmhhvhgu\":\"okonzmnsikvmkqz\",\"xtibqdxbxwakbog\":\"eodkwobda\"},\"id\":\"xndlkzgxhu\",\"name\":\"iplbpodxunkbebxm\",\"type\":\"byyntwlrbqt\"},{\"properties\":{\"recommendationName\":\"evseotgqrlltmuwl\",\"recommendationDisplayName\":\"wzizxbmpgcjefuzm\",\"description\":\"pbttdum\",\"recommendationTypeId\":\"p\",\"detectedBy\":\"ebmnzbtbhjpglk\",\"remediationSteps\":\"ohdneuel\",\"reportedSeverity\":\"Informational\",\"healthyDevices\":8674928390516574118,\"unhealthyDeviceCount\":250164414285445387,\"logAnalyticsQuery\":\"fikdowwqu\"},\"tags\":{\"lvithhqzonosgg\":\"zx\",\"ljuti\":\"hcohfwdsjnk\"},\"id\":\"swacffgdkzz\",\"name\":\"wkfvhqcrailvp\",\"type\":\"ppfufl\"},{\"properties\":{\"recommendationName\":\"mh\",\"recommendationDisplayName\":\"xyjrxsagafcnih\",\"description\":\"qapnedgfbcv\",\"recommendationTypeId\":\"vq\",\"detectedBy\":\"keqdcvdrhvoods\",\"remediationSteps\":\"bobzdopcjwvnhd\",\"reportedSeverity\":\"Medium\",\"healthyDevices\":2069944131022748416,\"unhealthyDeviceCount\":6392707975975047926,\"logAnalyticsQuery\":\"lpmutwuoegrpkhj\"},\"tags\":{\"dggkzzlvmbmpa\":\"yqsluic\"},\"id\":\"modfvuefywsbpfvm\",\"name\":\"yhrfouyftaakcpw\",\"type\":\"yzvqt\"}],\"nextLink\":\"ubex\"}")
- .toObject(IoTSecurityAggregatedRecommendationList.class);
- Assertions.assertEquals("szhedplvw", model.value().get(0).tags().get("wubmwmbesldn"));
- Assertions.assertEquals("sadbz", model.value().get(0).recommendationName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedRecommendationList model =
- new IoTSecurityAggregatedRecommendationList()
- .withValue(
- Arrays
- .asList(
- new IoTSecurityAggregatedRecommendationInner()
- .withTags(
- mapOf(
- "wubmwmbesldn",
- "szhedplvw",
- "lcxog",
- "wwtppj",
- "qqkdltfzxmhhvhgu",
- "okonzmnsikvmkqz",
- "xtibqdxbxwakbog",
- "eodkwobda"))
- .withRecommendationName("sadbz"),
- new IoTSecurityAggregatedRecommendationInner()
- .withTags(mapOf("lvithhqzonosgg", "zx", "ljuti", "hcohfwdsjnk"))
- .withRecommendationName("evseotgqrlltmuwl"),
- new IoTSecurityAggregatedRecommendationInner()
- .withTags(mapOf("dggkzzlvmbmpa", "yqsluic"))
- .withRecommendationName("mh")));
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedRecommendationList.class);
- Assertions.assertEquals("szhedplvw", model.value().get(0).tags().get("wubmwmbesldn"));
- Assertions.assertEquals("sadbz", model.value().get(0).recommendationName());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationPropertiesTests.java
deleted file mode 100644
index 965d77288d014..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAggregatedRecommendationPropertiesTests.java
+++ /dev/null
@@ -1,29 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecurityAggregatedRecommendationProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecurityAggregatedRecommendationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAggregatedRecommendationProperties model =
- BinaryData
- .fromString(
- "{\"recommendationName\":\"ifthnz\",\"recommendationDisplayName\":\"dslgnayqigynduh\",\"description\":\"hqlkthumaqo\",\"recommendationTypeId\":\"gycdu\",\"detectedBy\":\"r\",\"remediationSteps\":\"ccymvaolpsslql\",\"reportedSeverity\":\"High\",\"healthyDevices\":245140836582564523,\"unhealthyDeviceCount\":2285407320964329848,\"logAnalyticsQuery\":\"pswiydmcwyh\"}")
- .toObject(IoTSecurityAggregatedRecommendationProperties.class);
- Assertions.assertEquals("ifthnz", model.recommendationName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAggregatedRecommendationProperties model =
- new IoTSecurityAggregatedRecommendationProperties().withRecommendationName("ifthnz");
- model = BinaryData.fromObject(model).toObject(IoTSecurityAggregatedRecommendationProperties.class);
- Assertions.assertEquals("ifthnz", model.recommendationName());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAlertedDeviceTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAlertedDeviceTests.java
deleted file mode 100644
index ad5edc1d2a5b4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityAlertedDeviceTests.java
+++ /dev/null
@@ -1,24 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IoTSecurityAlertedDevice;
-
-public final class IoTSecurityAlertedDeviceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityAlertedDevice model =
- BinaryData
- .fromString("{\"deviceId\":\"laexqp\",\"alertsCount\":3403871146459803360}")
- .toObject(IoTSecurityAlertedDevice.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityAlertedDevice model = new IoTSecurityAlertedDevice();
- model = BinaryData.fromObject(model).toObject(IoTSecurityAlertedDevice.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityDeviceAlertTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityDeviceAlertTests.java
deleted file mode 100644
index 54c7ac6939644..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityDeviceAlertTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IoTSecurityDeviceAlert;
-
-public final class IoTSecurityDeviceAlertTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityDeviceAlert model =
- BinaryData
- .fromString(
- "{\"alertDisplayName\":\"ws\",\"reportedSeverity\":\"Informational\",\"alertsCount\":8220008823832302214}")
- .toObject(IoTSecurityDeviceAlert.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityDeviceAlert model = new IoTSecurityDeviceAlert();
- model = BinaryData.fromObject(model).toObject(IoTSecurityDeviceAlert.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityDeviceRecommendationTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityDeviceRecommendationTests.java
deleted file mode 100644
index 643cce2df7a3d..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecurityDeviceRecommendationTests.java
+++ /dev/null
@@ -1,25 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IoTSecurityDeviceRecommendation;
-
-public final class IoTSecurityDeviceRecommendationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecurityDeviceRecommendation model =
- BinaryData
- .fromString(
- "{\"recommendationDisplayName\":\"vgomz\",\"reportedSeverity\":\"Low\",\"devicesCount\":2110052424631332756}")
- .toObject(IoTSecurityDeviceRecommendation.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecurityDeviceRecommendation model = new IoTSecurityDeviceRecommendation();
- model = BinaryData.fromObject(model).toObject(IoTSecurityDeviceRecommendation.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelInnerTests.java
deleted file mode 100644
index d54e2f52dd4c3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelInnerTests.java
+++ /dev/null
@@ -1,44 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionAnalyticsModelInner;
-import com.azure.resourcemanager.security.models.IoTSecurityAlertedDevice;
-import com.azure.resourcemanager.security.models.IoTSecurityDeviceAlert;
-import com.azure.resourcemanager.security.models.IoTSecurityDeviceRecommendation;
-import java.util.Arrays;
-
-public final class IoTSecuritySolutionAnalyticsModelInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"metrics\":{\"high\":4021445942662392747,\"medium\":4294667967107007677,\"low\":7036117632331754318},\"unhealthyDeviceCount\":2795086805451114111,\"devicesMetrics\":[{\"date\":\"2021-06-07T11:11Z\"}],\"topAlertedDevices\":[{\"deviceId\":\"lbbovplw\",\"alertsCount\":3734794049628665607},{\"deviceId\":\"yuguosvmkfssx\",\"alertsCount\":5126500575476383860},{\"deviceId\":\"plgmgsxnk\",\"alertsCount\":2541322280404196409}],\"mostPrevalentDeviceAlerts\":[{\"alertDisplayName\":\"pvlopwiyighxpkd\",\"reportedSeverity\":\"Medium\",\"alertsCount\":1775218219583343661},{\"alertDisplayName\":\"bbaumnyquped\",\"reportedSeverity\":\"Informational\",\"alertsCount\":533974290165093237}],\"mostPrevalentDeviceRecommendations\":[{\"recommendationDisplayName\":\"smtxpsieb\",\"reportedSeverity\":\"High\",\"devicesCount\":6627631118472357246},{\"recommendationDisplayName\":\"apskrdqm\",\"reportedSeverity\":\"Medium\",\"devicesCount\":6206046747227637327},{\"recommendationDisplayName\":\"dwkyzxuu\",\"reportedSeverity\":\"High\",\"devicesCount\":1186103723197260996}]},\"id\":\"cwsvlxotog\",\"name\":\"wrupqsxvnmicykvc\",\"type\":\"o\"}")
- .toObject(IoTSecuritySolutionAnalyticsModelInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelInner model =
- new IoTSecuritySolutionAnalyticsModelInner()
- .withTopAlertedDevices(
- Arrays
- .asList(
- new IoTSecurityAlertedDevice(),
- new IoTSecurityAlertedDevice(),
- new IoTSecurityAlertedDevice()))
- .withMostPrevalentDeviceAlerts(
- Arrays.asList(new IoTSecurityDeviceAlert(), new IoTSecurityDeviceAlert()))
- .withMostPrevalentDeviceRecommendations(
- Arrays
- .asList(
- new IoTSecurityDeviceRecommendation(),
- new IoTSecurityDeviceRecommendation(),
- new IoTSecurityDeviceRecommendation()));
- model = BinaryData.fromObject(model).toObject(IoTSecuritySolutionAnalyticsModelInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelListInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelListInnerTests.java
deleted file mode 100644
index f129646abccbd..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelListInnerTests.java
+++ /dev/null
@@ -1,39 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionAnalyticsModelInner;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionAnalyticsModelListInner;
-import java.util.Arrays;
-
-public final class IoTSecuritySolutionAnalyticsModelListInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelListInner model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"unhealthyDeviceCount\":623670055928945506,\"devicesMetrics\":[],\"topAlertedDevices\":[],\"mostPrevalentDeviceAlerts\":[],\"mostPrevalentDeviceRecommendations\":[]},\"id\":\"eyueaxibxujwb\",\"name\":\"qwalmuzyoxaepd\",\"type\":\"zjancuxr\"},{\"properties\":{\"unhealthyDeviceCount\":8073615781533611484,\"devicesMetrics\":[],\"topAlertedDevices\":[],\"mostPrevalentDeviceAlerts\":[],\"mostPrevalentDeviceRecommendations\":[]},\"id\":\"wd\",\"name\":\"swzts\",\"type\":\"bpg\"}],\"nextLink\":\"ytxhp\"}")
- .toObject(IoTSecuritySolutionAnalyticsModelListInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelListInner model =
- new IoTSecuritySolutionAnalyticsModelListInner()
- .withValue(
- Arrays
- .asList(
- new IoTSecuritySolutionAnalyticsModelInner()
- .withTopAlertedDevices(Arrays.asList())
- .withMostPrevalentDeviceAlerts(Arrays.asList())
- .withMostPrevalentDeviceRecommendations(Arrays.asList()),
- new IoTSecuritySolutionAnalyticsModelInner()
- .withTopAlertedDevices(Arrays.asList())
- .withMostPrevalentDeviceAlerts(Arrays.asList())
- .withMostPrevalentDeviceRecommendations(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(IoTSecuritySolutionAnalyticsModelListInner.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItemTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItemTests.java
deleted file mode 100644
index 9af4402ea31f7..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItemTests.java
+++ /dev/null
@@ -1,44 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem;
-import com.azure.resourcemanager.security.models.IoTSeverityMetrics;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItemTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem model =
- BinaryData
- .fromString(
- "{\"date\":\"2021-08-28T04:10:12Z\",\"devicesMetrics\":{\"high\":6531016586304771464,\"medium\":6112562014909407139,\"low\":4716171323603349027}}")
- .toObject(IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-28T04:10:12Z"), model.date());
- Assertions.assertEquals(6531016586304771464L, model.devicesMetrics().high());
- Assertions.assertEquals(6112562014909407139L, model.devicesMetrics().medium());
- Assertions.assertEquals(4716171323603349027L, model.devicesMetrics().low());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem model =
- new IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem()
- .withDate(OffsetDateTime.parse("2021-08-28T04:10:12Z"))
- .withDevicesMetrics(
- new IoTSeverityMetrics()
- .withHigh(6531016586304771464L)
- .withMedium(6112562014909407139L)
- .withLow(4716171323603349027L));
- model =
- BinaryData.fromObject(model).toObject(IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.class);
- Assertions.assertEquals(OffsetDateTime.parse("2021-08-28T04:10:12Z"), model.date());
- Assertions.assertEquals(6531016586304771464L, model.devicesMetrics().high());
- Assertions.assertEquals(6112562014909407139L, model.devicesMetrics().medium());
- Assertions.assertEquals(4716171323603349027L, model.devicesMetrics().low());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelPropertiesTests.java
deleted file mode 100644
index 805e5e37424ac..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionAnalyticsModelPropertiesTests.java
+++ /dev/null
@@ -1,46 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionAnalyticsModelProperties;
-import com.azure.resourcemanager.security.models.IoTSecurityAlertedDevice;
-import com.azure.resourcemanager.security.models.IoTSecurityDeviceAlert;
-import com.azure.resourcemanager.security.models.IoTSecurityDeviceRecommendation;
-import java.util.Arrays;
-
-public final class IoTSecuritySolutionAnalyticsModelPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelProperties model =
- BinaryData
- .fromString(
- "{\"metrics\":{\"high\":2202893815567667311,\"medium\":5776325152256074523,\"low\":2732685754264877829},\"unhealthyDeviceCount\":3928242933963476014,\"devicesMetrics\":[{\"date\":\"2021-03-07T15:05:13Z\",\"devicesMetrics\":{\"high\":319665118186558655,\"medium\":3857673152007757003,\"low\":2825151831912713640}},{\"date\":\"2021-06-24T08:22:45Z\",\"devicesMetrics\":{\"high\":2116320352279967667,\"medium\":962291776216015099,\"low\":6718667665096544770}},{\"date\":\"2021-09-22T11:52:27Z\",\"devicesMetrics\":{\"high\":2840285264321299730,\"medium\":6255558235157330938,\"low\":3221959502351885450}},{\"date\":\"2021-10-09T14:43:40Z\",\"devicesMetrics\":{\"high\":4392160629829565824,\"medium\":1781523879629973808,\"low\":3301208873451353508}}],\"topAlertedDevices\":[{\"deviceId\":\"zq\",\"alertsCount\":8605356393131124323},{\"deviceId\":\"pmueefjzwfqk\",\"alertsCount\":7502146387336972702},{\"deviceId\":\"suyonobglaocq\",\"alertsCount\":2903733515306491145},{\"deviceId\":\"g\",\"alertsCount\":4531156159452032810}],\"mostPrevalentDeviceAlerts\":[{\"alertDisplayName\":\"moyrxvwfudwpz\",\"reportedSeverity\":\"High\",\"alertsCount\":6087131419458323367},{\"alertDisplayName\":\"lrqjbhckfr\",\"reportedSeverity\":\"Low\",\"alertsCount\":6356911616351908297}],\"mostPrevalentDeviceRecommendations\":[{\"recommendationDisplayName\":\"pycanuzbpz\",\"reportedSeverity\":\"High\",\"devicesCount\":3708510664132188472},{\"recommendationDisplayName\":\"crnwbmeh\",\"reportedSeverity\":\"High\",\"devicesCount\":455506710783591694},{\"recommendationDisplayName\":\"srtslhspkdeem\",\"reportedSeverity\":\"Informational\",\"devicesCount\":5804956821269941754},{\"recommendationDisplayName\":\"kv\",\"reportedSeverity\":\"Low\",\"devicesCount\":8799257187575805529}]}")
- .toObject(IoTSecuritySolutionAnalyticsModelProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionAnalyticsModelProperties model =
- new IoTSecuritySolutionAnalyticsModelProperties()
- .withTopAlertedDevices(
- Arrays
- .asList(
- new IoTSecurityAlertedDevice(),
- new IoTSecurityAlertedDevice(),
- new IoTSecurityAlertedDevice(),
- new IoTSecurityAlertedDevice()))
- .withMostPrevalentDeviceAlerts(
- Arrays.asList(new IoTSecurityDeviceAlert(), new IoTSecurityDeviceAlert()))
- .withMostPrevalentDeviceRecommendations(
- Arrays
- .asList(
- new IoTSecurityDeviceRecommendation(),
- new IoTSecurityDeviceRecommendation(),
- new IoTSecurityDeviceRecommendation(),
- new IoTSecurityDeviceRecommendation()));
- model = BinaryData.fromObject(model).toObject(IoTSecuritySolutionAnalyticsModelProperties.class);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionModelInnerTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionModelInnerTests.java
deleted file mode 100644
index 6d1733cdce9b4..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionModelInnerTests.java
+++ /dev/null
@@ -1,134 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionModelInner;
-import com.azure.resourcemanager.security.models.AdditionalWorkspaceType;
-import com.azure.resourcemanager.security.models.AdditionalWorkspacesProperties;
-import com.azure.resourcemanager.security.models.DataSource;
-import com.azure.resourcemanager.security.models.ExportData;
-import com.azure.resourcemanager.security.models.RecommendationConfigStatus;
-import com.azure.resourcemanager.security.models.RecommendationConfigurationProperties;
-import com.azure.resourcemanager.security.models.RecommendationType;
-import com.azure.resourcemanager.security.models.SecuritySolutionStatus;
-import com.azure.resourcemanager.security.models.UnmaskedIpLoggingStatus;
-import com.azure.resourcemanager.security.models.UserDefinedResourcesProperties;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecuritySolutionModelInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionModelInner model =
- BinaryData
- .fromString(
- "{\"location\":\"yocf\",\"properties\":{\"workspace\":\"s\",\"displayName\":\"mddystkiiux\",\"status\":\"Disabled\",\"export\":[\"RawEvents\",\"RawEvents\",\"RawEvents\",\"RawEvents\"],\"disabledDataSources\":[\"TwinData\",\"TwinData\",\"TwinData\",\"TwinData\"],\"iotHubs\":[\"vyifqrvkdvjsl\",\"rm\",\"vdfwatkpn\"],\"userDefinedResources\":{\"query\":\"lexxbczwtru\",\"querySubscriptions\":[\"qzbqjvsov\",\"yokacspkw\"]},\"autoDiscoveredResources\":[\"dobpxjmflbvvn\",\"hrk\",\"ciwwzjuqkhr\",\"ajiwkuo\"],\"recommendationsConfiguration\":[{\"recommendationType\":\"IoT_AgentSendsUnutilizedMessages\",\"name\":\"hsauuimjmvxied\",\"status\":\"Disabled\"},{\"recommendationType\":\"IoT_IPFilter_DenyAll\",\"name\":\"dyjrrfbyaosv\",\"status\":\"Disabled\"},{\"recommendationType\":\"IoT_PermissiveFirewallPolicy\",\"name\":\"onpc\",\"status\":\"Enabled\"}],\"unmaskedIpLoggingStatus\":\"Disabled\",\"additionalWorkspaces\":[{\"workspace\":\"lkevle\",\"type\":\"Sentinel\",\"dataTypes\":[]},{\"workspace\":\"u\",\"type\":\"Sentinel\",\"dataTypes\":[]},{\"workspace\":\"axkffei\",\"type\":\"Sentinel\",\"dataTypes\":[]}]},\"tags\":{\"shxmzsbbzoggigrx\":\"zy\"},\"id\":\"burvjxxjnspy\",\"name\":\"ptkoenkoukn\",\"type\":\"udwtiukbl\"}")
- .toObject(IoTSecuritySolutionModelInner.class);
- Assertions.assertEquals("yocf", model.location());
- Assertions.assertEquals("zy", model.tags().get("shxmzsbbzoggigrx"));
- Assertions.assertEquals("s", model.workspace());
- Assertions.assertEquals("mddystkiiux", model.displayName());
- Assertions.assertEquals(SecuritySolutionStatus.DISABLED, model.status());
- Assertions.assertEquals(ExportData.RAW_EVENTS, model.export().get(0));
- Assertions.assertEquals(DataSource.TWIN_DATA, model.disabledDataSources().get(0));
- Assertions.assertEquals("vyifqrvkdvjsl", model.iotHubs().get(0));
- Assertions.assertEquals("lexxbczwtru", model.userDefinedResources().query());
- Assertions.assertEquals("qzbqjvsov", model.userDefinedResources().querySubscriptions().get(0));
- Assertions
- .assertEquals(
- RecommendationType.IO_T_AGENT_SENDS_UNUTILIZED_MESSAGES,
- model.recommendationsConfiguration().get(0).recommendationType());
- Assertions
- .assertEquals(RecommendationConfigStatus.DISABLED, model.recommendationsConfiguration().get(0).status());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.DISABLED, model.unmaskedIpLoggingStatus());
- Assertions.assertEquals("lkevle", model.additionalWorkspaces().get(0).workspace());
- Assertions.assertEquals(AdditionalWorkspaceType.SENTINEL, model.additionalWorkspaces().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionModelInner model =
- new IoTSecuritySolutionModelInner()
- .withLocation("yocf")
- .withTags(mapOf("shxmzsbbzoggigrx", "zy"))
- .withWorkspace("s")
- .withDisplayName("mddystkiiux")
- .withStatus(SecuritySolutionStatus.DISABLED)
- .withExport(
- Arrays
- .asList(
- ExportData.RAW_EVENTS, ExportData.RAW_EVENTS, ExportData.RAW_EVENTS, ExportData.RAW_EVENTS))
- .withDisabledDataSources(
- Arrays
- .asList(DataSource.TWIN_DATA, DataSource.TWIN_DATA, DataSource.TWIN_DATA, DataSource.TWIN_DATA))
- .withIotHubs(Arrays.asList("vyifqrvkdvjsl", "rm", "vdfwatkpn"))
- .withUserDefinedResources(
- new UserDefinedResourcesProperties()
- .withQuery("lexxbczwtru")
- .withQuerySubscriptions(Arrays.asList("qzbqjvsov", "yokacspkw")))
- .withRecommendationsConfiguration(
- Arrays
- .asList(
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_AGENT_SENDS_UNUTILIZED_MESSAGES)
- .withStatus(RecommendationConfigStatus.DISABLED),
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_IPFILTER_DENY_ALL)
- .withStatus(RecommendationConfigStatus.DISABLED),
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_PERMISSIVE_FIREWALL_POLICY)
- .withStatus(RecommendationConfigStatus.ENABLED)))
- .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.DISABLED)
- .withAdditionalWorkspaces(
- Arrays
- .asList(
- new AdditionalWorkspacesProperties()
- .withWorkspace("lkevle")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(Arrays.asList()),
- new AdditionalWorkspacesProperties()
- .withWorkspace("u")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(Arrays.asList()),
- new AdditionalWorkspacesProperties()
- .withWorkspace("axkffei")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(IoTSecuritySolutionModelInner.class);
- Assertions.assertEquals("yocf", model.location());
- Assertions.assertEquals("zy", model.tags().get("shxmzsbbzoggigrx"));
- Assertions.assertEquals("s", model.workspace());
- Assertions.assertEquals("mddystkiiux", model.displayName());
- Assertions.assertEquals(SecuritySolutionStatus.DISABLED, model.status());
- Assertions.assertEquals(ExportData.RAW_EVENTS, model.export().get(0));
- Assertions.assertEquals(DataSource.TWIN_DATA, model.disabledDataSources().get(0));
- Assertions.assertEquals("vyifqrvkdvjsl", model.iotHubs().get(0));
- Assertions.assertEquals("lexxbczwtru", model.userDefinedResources().query());
- Assertions.assertEquals("qzbqjvsov", model.userDefinedResources().querySubscriptions().get(0));
- Assertions
- .assertEquals(
- RecommendationType.IO_T_AGENT_SENDS_UNUTILIZED_MESSAGES,
- model.recommendationsConfiguration().get(0).recommendationType());
- Assertions
- .assertEquals(RecommendationConfigStatus.DISABLED, model.recommendationsConfiguration().get(0).status());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.DISABLED, model.unmaskedIpLoggingStatus());
- Assertions.assertEquals("lkevle", model.additionalWorkspaces().get(0).workspace());
- Assertions.assertEquals(AdditionalWorkspaceType.SENTINEL, model.additionalWorkspaces().get(0).type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionPropertiesTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionPropertiesTests.java
deleted file mode 100644
index 61a6ccee5b0a1..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionPropertiesTests.java
+++ /dev/null
@@ -1,144 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionProperties;
-import com.azure.resourcemanager.security.models.AdditionalWorkspaceDataType;
-import com.azure.resourcemanager.security.models.AdditionalWorkspaceType;
-import com.azure.resourcemanager.security.models.AdditionalWorkspacesProperties;
-import com.azure.resourcemanager.security.models.DataSource;
-import com.azure.resourcemanager.security.models.ExportData;
-import com.azure.resourcemanager.security.models.RecommendationConfigStatus;
-import com.azure.resourcemanager.security.models.RecommendationConfigurationProperties;
-import com.azure.resourcemanager.security.models.RecommendationType;
-import com.azure.resourcemanager.security.models.SecuritySolutionStatus;
-import com.azure.resourcemanager.security.models.UnmaskedIpLoggingStatus;
-import com.azure.resourcemanager.security.models.UserDefinedResourcesProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecuritySolutionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionProperties model =
- BinaryData
- .fromString(
- "{\"workspace\":\"gkpocipazyxoe\",\"displayName\":\"ukgjnpiucgygevq\",\"status\":\"Disabled\",\"export\":[\"RawEvents\"],\"disabledDataSources\":[\"TwinData\",\"TwinData\",\"TwinData\",\"TwinData\"],\"iotHubs\":[\"r\",\"j\"],\"userDefinedResources\":{\"query\":\"pyd\",\"querySubscriptions\":[\"yhxdeoejzicwi\",\"sjttgzfbish\"]},\"autoDiscoveredResources\":[\"hajdeyeamdpha\"],\"recommendationsConfiguration\":[{\"recommendationType\":\"IoT_PermissiveInputFirewallRules\",\"name\":\"uxwgipwho\",\"status\":\"Disabled\"},{\"recommendationType\":\"IoT_InstallAgent\",\"name\":\"gshwankixz\",\"status\":\"Disabled\"},{\"recommendationType\":\"IoT_PermissiveInputFirewallRules\",\"name\":\"eputtmrywnuzoqf\",\"status\":\"Disabled\"},{\"recommendationType\":\"IoT_PermissiveOutputFirewallRules\",\"name\":\"zrnkcqvyxlwh\",\"status\":\"Enabled\"}],\"unmaskedIpLoggingStatus\":\"Enabled\",\"additionalWorkspaces\":[{\"workspace\":\"oqqnwvlryav\",\"type\":\"Sentinel\",\"dataTypes\":[\"RawEvents\",\"RawEvents\"]},{\"workspace\":\"qhgyxzkonocukok\",\"type\":\"Sentinel\",\"dataTypes\":[\"RawEvents\",\"Alerts\",\"RawEvents\",\"Alerts\"]},{\"workspace\":\"szfkbe\",\"type\":\"Sentinel\",\"dataTypes\":[\"RawEvents\",\"Alerts\",\"RawEvents\"]},{\"workspace\":\"vvjektcxsenhwlrs\",\"type\":\"Sentinel\",\"dataTypes\":[\"Alerts\",\"Alerts\"]}]}")
- .toObject(IoTSecuritySolutionProperties.class);
- Assertions.assertEquals("gkpocipazyxoe", model.workspace());
- Assertions.assertEquals("ukgjnpiucgygevq", model.displayName());
- Assertions.assertEquals(SecuritySolutionStatus.DISABLED, model.status());
- Assertions.assertEquals(ExportData.RAW_EVENTS, model.export().get(0));
- Assertions.assertEquals(DataSource.TWIN_DATA, model.disabledDataSources().get(0));
- Assertions.assertEquals("r", model.iotHubs().get(0));
- Assertions.assertEquals("pyd", model.userDefinedResources().query());
- Assertions.assertEquals("yhxdeoejzicwi", model.userDefinedResources().querySubscriptions().get(0));
- Assertions
- .assertEquals(
- RecommendationType.IO_T_PERMISSIVE_INPUT_FIREWALL_RULES,
- model.recommendationsConfiguration().get(0).recommendationType());
- Assertions
- .assertEquals(RecommendationConfigStatus.DISABLED, model.recommendationsConfiguration().get(0).status());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.ENABLED, model.unmaskedIpLoggingStatus());
- Assertions.assertEquals("oqqnwvlryav", model.additionalWorkspaces().get(0).workspace());
- Assertions.assertEquals(AdditionalWorkspaceType.SENTINEL, model.additionalWorkspaces().get(0).type());
- Assertions
- .assertEquals(
- AdditionalWorkspaceDataType.RAW_EVENTS, model.additionalWorkspaces().get(0).dataTypes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionProperties model =
- new IoTSecuritySolutionProperties()
- .withWorkspace("gkpocipazyxoe")
- .withDisplayName("ukgjnpiucgygevq")
- .withStatus(SecuritySolutionStatus.DISABLED)
- .withExport(Arrays.asList(ExportData.RAW_EVENTS))
- .withDisabledDataSources(
- Arrays
- .asList(DataSource.TWIN_DATA, DataSource.TWIN_DATA, DataSource.TWIN_DATA, DataSource.TWIN_DATA))
- .withIotHubs(Arrays.asList("r", "j"))
- .withUserDefinedResources(
- new UserDefinedResourcesProperties()
- .withQuery("pyd")
- .withQuerySubscriptions(Arrays.asList("yhxdeoejzicwi", "sjttgzfbish")))
- .withRecommendationsConfiguration(
- Arrays
- .asList(
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_PERMISSIVE_INPUT_FIREWALL_RULES)
- .withStatus(RecommendationConfigStatus.DISABLED),
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_INSTALL_AGENT)
- .withStatus(RecommendationConfigStatus.DISABLED),
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_PERMISSIVE_INPUT_FIREWALL_RULES)
- .withStatus(RecommendationConfigStatus.DISABLED),
- new RecommendationConfigurationProperties()
- .withRecommendationType(RecommendationType.IO_T_PERMISSIVE_OUTPUT_FIREWALL_RULES)
- .withStatus(RecommendationConfigStatus.ENABLED)))
- .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.ENABLED)
- .withAdditionalWorkspaces(
- Arrays
- .asList(
- new AdditionalWorkspacesProperties()
- .withWorkspace("oqqnwvlryav")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(
- Arrays
- .asList(
- AdditionalWorkspaceDataType.RAW_EVENTS,
- AdditionalWorkspaceDataType.RAW_EVENTS)),
- new AdditionalWorkspacesProperties()
- .withWorkspace("qhgyxzkonocukok")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(
- Arrays
- .asList(
- AdditionalWorkspaceDataType.RAW_EVENTS,
- AdditionalWorkspaceDataType.ALERTS,
- AdditionalWorkspaceDataType.RAW_EVENTS,
- AdditionalWorkspaceDataType.ALERTS)),
- new AdditionalWorkspacesProperties()
- .withWorkspace("szfkbe")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(
- Arrays
- .asList(
- AdditionalWorkspaceDataType.RAW_EVENTS,
- AdditionalWorkspaceDataType.ALERTS,
- AdditionalWorkspaceDataType.RAW_EVENTS)),
- new AdditionalWorkspacesProperties()
- .withWorkspace("vvjektcxsenhwlrs")
- .withType(AdditionalWorkspaceType.SENTINEL)
- .withDataTypes(
- Arrays
- .asList(
- AdditionalWorkspaceDataType.ALERTS, AdditionalWorkspaceDataType.ALERTS))));
- model = BinaryData.fromObject(model).toObject(IoTSecuritySolutionProperties.class);
- Assertions.assertEquals("gkpocipazyxoe", model.workspace());
- Assertions.assertEquals("ukgjnpiucgygevq", model.displayName());
- Assertions.assertEquals(SecuritySolutionStatus.DISABLED, model.status());
- Assertions.assertEquals(ExportData.RAW_EVENTS, model.export().get(0));
- Assertions.assertEquals(DataSource.TWIN_DATA, model.disabledDataSources().get(0));
- Assertions.assertEquals("r", model.iotHubs().get(0));
- Assertions.assertEquals("pyd", model.userDefinedResources().query());
- Assertions.assertEquals("yhxdeoejzicwi", model.userDefinedResources().querySubscriptions().get(0));
- Assertions
- .assertEquals(
- RecommendationType.IO_T_PERMISSIVE_INPUT_FIREWALL_RULES,
- model.recommendationsConfiguration().get(0).recommendationType());
- Assertions
- .assertEquals(RecommendationConfigStatus.DISABLED, model.recommendationsConfiguration().get(0).status());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.ENABLED, model.unmaskedIpLoggingStatus());
- Assertions.assertEquals("oqqnwvlryav", model.additionalWorkspaces().get(0).workspace());
- Assertions.assertEquals(AdditionalWorkspaceType.SENTINEL, model.additionalWorkspaces().get(0).type());
- Assertions
- .assertEquals(
- AdditionalWorkspaceDataType.RAW_EVENTS, model.additionalWorkspaces().get(0).dataTypes().get(0));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionsListTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionsListTests.java
deleted file mode 100644
index cb1dbc83eeb1b..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSecuritySolutionsListTests.java
+++ /dev/null
@@ -1,95 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.fluent.models.IoTSecuritySolutionModelInner;
-import com.azure.resourcemanager.security.models.IoTSecuritySolutionsList;
-import com.azure.resourcemanager.security.models.SecuritySolutionStatus;
-import com.azure.resourcemanager.security.models.UnmaskedIpLoggingStatus;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSecuritySolutionsListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSecuritySolutionsList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"location\":\"dgwdslfhot\",\"properties\":{\"workspace\":\"ynpwlbj\",\"displayName\":\"pgacftadehxnlty\",\"status\":\"Disabled\",\"export\":[],\"disabledDataSources\":[],\"iotHubs\":[],\"autoDiscoveredResources\":[],\"recommendationsConfiguration\":[],\"unmaskedIpLoggingStatus\":\"Disabled\",\"additionalWorkspaces\":[]},\"tags\":{\"avo\":\"ej\",\"vudwx\":\"xzdmohctb\"},\"id\":\"ndnvo\",\"name\":\"gujjugwdkcglh\",\"type\":\"lazjdyggdtjixhbk\"},{\"location\":\"fqweykhmene\",\"properties\":{\"workspace\":\"exfwhy\",\"displayName\":\"cibvyvdcsitynn\",\"status\":\"Disabled\",\"export\":[],\"disabledDataSources\":[],\"iotHubs\":[],\"autoDiscoveredResources\":[],\"recommendationsConfiguration\":[],\"unmaskedIpLoggingStatus\":\"Disabled\",\"additionalWorkspaces\":[]},\"tags\":{\"hezrkgq\":\"jeyp\"},\"id\":\"c\",\"name\":\"refovgmkqsleyyvx\",\"type\":\"qjpkcattpngjcrc\"},{\"location\":\"sqpjhvmdajvn\",\"properties\":{\"workspace\":\"unqecanoae\",\"displayName\":\"pfhyhl\",\"status\":\"Enabled\",\"export\":[],\"disabledDataSources\":[],\"iotHubs\":[],\"autoDiscoveredResources\":[],\"recommendationsConfiguration\":[],\"unmaskedIpLoggingStatus\":\"Disabled\",\"additionalWorkspaces\":[]},\"tags\":{\"aodsfcpkv\":\"kthfui\"},\"id\":\"odpuozmyzydag\",\"name\":\"uaxbezyiuokkt\",\"type\":\"hrdxwzywqsmbs\"}],\"nextLink\":\"exim\"}")
- .toObject(IoTSecuritySolutionsList.class);
- Assertions.assertEquals("dgwdslfhot", model.value().get(0).location());
- Assertions.assertEquals("ej", model.value().get(0).tags().get("avo"));
- Assertions.assertEquals("ynpwlbj", model.value().get(0).workspace());
- Assertions.assertEquals("pgacftadehxnlty", model.value().get(0).displayName());
- Assertions.assertEquals(SecuritySolutionStatus.DISABLED, model.value().get(0).status());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.DISABLED, model.value().get(0).unmaskedIpLoggingStatus());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSecuritySolutionsList model =
- new IoTSecuritySolutionsList()
- .withValue(
- Arrays
- .asList(
- new IoTSecuritySolutionModelInner()
- .withLocation("dgwdslfhot")
- .withTags(mapOf("avo", "ej", "vudwx", "xzdmohctb"))
- .withWorkspace("ynpwlbj")
- .withDisplayName("pgacftadehxnlty")
- .withStatus(SecuritySolutionStatus.DISABLED)
- .withExport(Arrays.asList())
- .withDisabledDataSources(Arrays.asList())
- .withIotHubs(Arrays.asList())
- .withRecommendationsConfiguration(Arrays.asList())
- .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.DISABLED)
- .withAdditionalWorkspaces(Arrays.asList()),
- new IoTSecuritySolutionModelInner()
- .withLocation("fqweykhmene")
- .withTags(mapOf("hezrkgq", "jeyp"))
- .withWorkspace("exfwhy")
- .withDisplayName("cibvyvdcsitynn")
- .withStatus(SecuritySolutionStatus.DISABLED)
- .withExport(Arrays.asList())
- .withDisabledDataSources(Arrays.asList())
- .withIotHubs(Arrays.asList())
- .withRecommendationsConfiguration(Arrays.asList())
- .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.DISABLED)
- .withAdditionalWorkspaces(Arrays.asList()),
- new IoTSecuritySolutionModelInner()
- .withLocation("sqpjhvmdajvn")
- .withTags(mapOf("aodsfcpkv", "kthfui"))
- .withWorkspace("unqecanoae")
- .withDisplayName("pfhyhl")
- .withStatus(SecuritySolutionStatus.ENABLED)
- .withExport(Arrays.asList())
- .withDisabledDataSources(Arrays.asList())
- .withIotHubs(Arrays.asList())
- .withRecommendationsConfiguration(Arrays.asList())
- .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.DISABLED)
- .withAdditionalWorkspaces(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(IoTSecuritySolutionsList.class);
- Assertions.assertEquals("dgwdslfhot", model.value().get(0).location());
- Assertions.assertEquals("ej", model.value().get(0).tags().get("avo"));
- Assertions.assertEquals("ynpwlbj", model.value().get(0).workspace());
- Assertions.assertEquals("pgacftadehxnlty", model.value().get(0).displayName());
- Assertions.assertEquals(SecuritySolutionStatus.DISABLED, model.value().get(0).status());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.DISABLED, model.value().get(0).unmaskedIpLoggingStatus());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSeverityMetricsTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSeverityMetricsTests.java
deleted file mode 100644
index 17e411e565741..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IoTSeverityMetricsTests.java
+++ /dev/null
@@ -1,35 +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.security.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.security.models.IoTSeverityMetrics;
-import org.junit.jupiter.api.Assertions;
-
-public final class IoTSeverityMetricsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IoTSeverityMetrics model =
- BinaryData
- .fromString("{\"high\":9028045602986691631,\"medium\":2874780118088744582,\"low\":9144697658006681867}")
- .toObject(IoTSeverityMetrics.class);
- Assertions.assertEquals(9028045602986691631L, model.high());
- Assertions.assertEquals(2874780118088744582L, model.medium());
- Assertions.assertEquals(9144697658006681867L, model.low());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IoTSeverityMetrics model =
- new IoTSeverityMetrics()
- .withHigh(9028045602986691631L)
- .withMedium(2874780118088744582L)
- .withLow(9144697658006681867L);
- model = BinaryData.fromObject(model).toObject(IoTSeverityMetrics.class);
- Assertions.assertEquals(9028045602986691631L, model.high());
- Assertions.assertEquals(2874780118088744582L, model.medium());
- Assertions.assertEquals(9144697658006681867L, model.low());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionAnalyticsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionAnalyticsGetWithResponseMockTests.java
deleted file mode 100644
index 0457202989af2..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionAnalyticsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IoTSecuritySolutionAnalyticsModel;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionAnalyticsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"metrics\":{\"high\":5542611774329052681,\"medium\":6661372100363486743,\"low\":3710990785713505162},\"unhealthyDeviceCount\":7761016592414796563,\"devicesMetrics\":[],\"topAlertedDevices\":[],\"mostPrevalentDeviceAlerts\":[],\"mostPrevalentDeviceRecommendations\":[]},\"id\":\"tjoxztfw\",\"name\":\"qchvczevjn\",\"type\":\"cta\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IoTSecuritySolutionAnalyticsModel response =
- manager
- .iotSecuritySolutionAnalytics()
- .getWithResponse("u", "t", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionAnalyticsListWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionAnalyticsListWithResponseMockTests.java
deleted file mode 100644
index 12ef01040d971..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionAnalyticsListWithResponseMockTests.java
+++ /dev/null
@@ -1,67 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IoTSecuritySolutionAnalyticsModelList;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionAnalyticsListWithResponseMockTests {
- @Test
- public void testListWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"id\":\"bjgmnzj\",\"name\":\"t\",\"type\":\"mrxkhlobvv\"},{\"id\":\"hvhd\",\"name\":\"qayfl\",\"type\":\"iyu\"}],\"nextLink\":\"n\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IoTSecuritySolutionAnalyticsModelList response =
- manager
- .iotSecuritySolutionAnalytics()
- .listWithResponse("aaqgzeka", "clyzgs", com.azure.core.util.Context.NONE)
- .getValue();
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsDismissWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsDismissWithResponseMockTests.java
deleted file mode 100644
index 40c910b36ec48..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsDismissWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionsAnalyticsAggregatedAlertsDismissWithResponseMockTests {
- @Test
- public void testDismissWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .iotSecuritySolutionsAnalyticsAggregatedAlerts()
- .dismissWithResponse("z", "xlujkhnjcm", "nkfm", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsGetWithResponseMockTests.java
deleted file mode 100644
index 51be7ab6a50ef..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedAlert;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionsAnalyticsAggregatedAlertsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"alertType\":\"psimioy\",\"alertDisplayName\":\"glkmiqwnnr\",\"vendorName\":\"ibb\",\"reportedSeverity\":\"High\",\"remediationSteps\":\"pkl\",\"description\":\"ydgnha\",\"count\":3154276649040417156,\"effectedResourceType\":\"exzgpmnmabedd\",\"systemSource\":\"lwgdfpfqfpcvs\",\"actionTaken\":\"l\",\"logAnalyticsQuery\":\"rvwerfwxbsmtb\",\"topDevicesList\":[]},\"tags\":{\"kwdvbtb\":\"hci\"},\"id\":\"ekqhs\",\"name\":\"htfpwpqb\",\"type\":\"ejuwyqwdqigmghgi\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IoTSecurityAggregatedAlert response =
- manager
- .iotSecuritySolutionsAnalyticsAggregatedAlerts()
- .getWithResponse("tdavuqmcbymsfobj", "quvjez", "j", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("hci", response.tags().get("kwdvbtb"));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsListMockTests.java
deleted file mode 100644
index 611fe6f5a2242..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsAggregatedAlertsListMockTests.java
+++ /dev/null
@@ -1,70 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedAlert;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionsAnalyticsAggregatedAlertsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"alertType\":\"xqabckmzeoxi\",\"alertDisplayName\":\"greohtwhlpuzjp\",\"vendorName\":\"znzangprbfaxy\",\"reportedSeverity\":\"Medium\",\"remediationSteps\":\"ciphmsexr\",\"description\":\"rndktx\",\"count\":8107112782048178404,\"effectedResourceType\":\"eeqgpkri\",\"systemSource\":\"bgnixxoww\",\"actionTaken\":\"yfwnw\",\"logAnalyticsQuery\":\"wxeiicrmpepk\",\"topDevicesList\":[]},\"tags\":{\"rasek\":\"xijvskwsdgkjgyac\"},\"id\":\"efcvo\",\"name\":\"nwoqartwy\",\"type\":\"qicladv\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .iotSecuritySolutionsAnalyticsAggregatedAlerts()
- .list("fyvrtpqpemhzcgk", "epdqhqyhwq", 252630032, com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("xijvskwsdgkjgyac", response.iterator().next().tags().get("rasek"));
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsRecommendationsGetWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsRecommendationsGetWithResponseMockTests.java
deleted file mode 100644
index e4f5c8c4df4af..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsRecommendationsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedRecommendation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionsAnalyticsRecommendationsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"recommendationName\":\"uavt\",\"recommendationDisplayName\":\"bkew\",\"description\":\"yn\",\"recommendationTypeId\":\"gbvoffbkk\",\"detectedBy\":\"dxaexqokmyrljia\",\"remediationSteps\":\"bn\",\"reportedSeverity\":\"Medium\",\"healthyDevices\":565720864272399930,\"unhealthyDeviceCount\":7735327142708488909,\"logAnalyticsQuery\":\"rpzuyudivbx\"},\"tags\":{\"nqelwgdhuru\":\"qeae\",\"za\":\"y\",\"mpinmzvfkneerzzt\":\"ogatmoljiy\"},\"id\":\"knsjulugd\",\"name\":\"bnhrxlelfjhkeiz\",\"type\":\"pihtdmiwjekpt\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IoTSecurityAggregatedRecommendation response =
- manager
- .iotSecuritySolutionsAnalyticsRecommendations()
- .getWithResponse("h", "qtwmlmhjnqtqeahj", "dvragpokddxejhh", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("qeae", response.tags().get("nqelwgdhuru"));
- Assertions.assertEquals("uavt", response.recommendationName());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsRecommendationsListMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsRecommendationsListMockTests.java
deleted file mode 100644
index f2b7c7fd6e645..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsAnalyticsRecommendationsListMockTests.java
+++ /dev/null
@@ -1,71 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.IoTSecurityAggregatedRecommendation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionsAnalyticsRecommendationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"recommendationName\":\"auolawiu\",\"recommendationDisplayName\":\"oms\",\"description\":\"vjhvvlr\",\"recommendationTypeId\":\"hewjjmajnkdflqio\",\"detectedBy\":\"waeqkzfzqxjosho\",\"remediationSteps\":\"otryegp\",\"reportedSeverity\":\"Medium\",\"healthyDevices\":341577657952902216,\"unhealthyDeviceCount\":4595206481574403678,\"logAnalyticsQuery\":\"wkbfokxkhupzer\"},\"tags\":{\"yykyalu\":\"jblcdrmyfcemftz\"},\"id\":\"ekdfqnhttwd\",\"name\":\"wrczfjjnnuxxrk\",\"type\":\"mhmnulwemp\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .iotSecuritySolutionsAnalyticsRecommendations()
- .list("caydbjzcqymlcfnz", "mhsurlgwqkpmm", 1745325763, com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("jblcdrmyfcemftz", response.iterator().next().tags().get("yykyalu"));
- Assertions.assertEquals("auolawiu", response.iterator().next().recommendationName());
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsCreateOrUpdateWithResponseMockTests.java b/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsCreateOrUpdateWithResponseMockTests.java
deleted file mode 100644
index d379b4a647bc6..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/test/java/com/azure/resourcemanager/security/generated/IotSecuritySolutionsCreateOrUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,117 +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.security.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.security.SecurityManager;
-import com.azure.resourcemanager.security.models.DataSource;
-import com.azure.resourcemanager.security.models.ExportData;
-import com.azure.resourcemanager.security.models.IoTSecuritySolutionModel;
-import com.azure.resourcemanager.security.models.SecuritySolutionStatus;
-import com.azure.resourcemanager.security.models.UnmaskedIpLoggingStatus;
-import com.azure.resourcemanager.security.models.UserDefinedResourcesProperties;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class IotSecuritySolutionsCreateOrUpdateWithResponseMockTests {
- @Test
- public void testCreateOrUpdateWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"location\":\"vmtumxpym\",\"properties\":{\"workspace\":\"uaxroqvqpilrgu\",\"displayName\":\"canlduwzorxs\",\"status\":\"Enabled\",\"export\":[\"RawEvents\"],\"disabledDataSources\":[\"TwinData\"],\"iotHubs\":[\"x\",\"qvfqepdxc\"],\"userDefinedResources\":{\"query\":\"uubwyvpjb\",\"querySubscriptions\":[]},\"autoDiscoveredResources\":[\"pjqduqgix\"],\"recommendationsConfiguration\":[],\"unmaskedIpLoggingStatus\":\"Disabled\",\"additionalWorkspaces\":[]},\"tags\":{\"ftcvbii\":\"avhuerkjddvrglie\"},\"id\":\"tksdwgdnkefgmw\",\"name\":\"hcebuvczldbglzo\",\"type\":\"t\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- SecurityManager manager =
- SecurityManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- IoTSecuritySolutionModel response =
- manager
- .iotSecuritySolutions()
- .define("rulfuct")
- .withExistingResourceGroup("aqgvto")
- .withRegion("rthcfjzh")
- .withTags(mapOf("iibelwcerw", "quwzp", "pjxljtxb", "w", "sdzhgbdgzpagsec", "sqtbxxniu"))
- .withWorkspace("ubqjro")
- .withDisplayName("tvrjeqmtz")
- .withStatus(SecuritySolutionStatus.DISABLED)
- .withExport(
- Arrays
- .asList(
- ExportData.RAW_EVENTS, ExportData.RAW_EVENTS, ExportData.RAW_EVENTS, ExportData.RAW_EVENTS))
- .withDisabledDataSources(
- Arrays
- .asList(DataSource.TWIN_DATA, DataSource.TWIN_DATA, DataSource.TWIN_DATA, DataSource.TWIN_DATA))
- .withIotHubs(Arrays.asList("bsrwrsnrhpqat"))
- .withUserDefinedResources(
- new UserDefinedResourcesProperties().withQuery("kkvyanxk").withQuerySubscriptions(Arrays.asList()))
- .withRecommendationsConfiguration(Arrays.asList())
- .withUnmaskedIpLoggingStatus(UnmaskedIpLoggingStatus.DISABLED)
- .withAdditionalWorkspaces(Arrays.asList())
- .create();
-
- Assertions.assertEquals("vmtumxpym", response.location());
- Assertions.assertEquals("avhuerkjddvrglie", response.tags().get("ftcvbii"));
- Assertions.assertEquals("uaxroqvqpilrgu", response.workspace());
- Assertions.assertEquals("canlduwzorxs", response.displayName());
- Assertions.assertEquals(SecuritySolutionStatus.ENABLED, response.status());
- Assertions.assertEquals(ExportData.RAW_EVENTS, response.export().get(0));
- Assertions.assertEquals(DataSource.TWIN_DATA, response.disabledDataSources().get(0));
- Assertions.assertEquals("x", response.iotHubs().get(0));
- Assertions.assertEquals("uubwyvpjb", response.userDefinedResources().query());
- Assertions.assertEquals(UnmaskedIpLoggingStatus.DISABLED, response.unmaskedIpLoggingStatus());
- }
-
- @SuppressWarnings("unchecked")
- private static