diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 33b7843e8f5e..b5f5bf996079 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2021-08-10)
+- 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).
## 1.0.0-beta.1 (2021-07-14)
diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md
index dae5056f7c71..538f15f09116 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.resourcemanagerazure-resourcemanager-security
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
-[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/SAMPLE.md)
## Troubleshooting
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 cdcf2fc45d00..5fd5fd3641db 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
@@ -35,27 +35,16 @@
import com.azure.resourcemanager.security.implementation.CompliancesImpl;
import com.azure.resourcemanager.security.implementation.ConnectorsImpl;
import com.azure.resourcemanager.security.implementation.DeviceSecurityGroupsImpl;
-import com.azure.resourcemanager.security.implementation.DevicesForHubsImpl;
-import com.azure.resourcemanager.security.implementation.DevicesForSubscriptionsImpl;
-import com.azure.resourcemanager.security.implementation.DevicesImpl;
import com.azure.resourcemanager.security.implementation.DiscoveredSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
import com.azure.resourcemanager.security.implementation.IngestionSettingsImpl;
-import com.azure.resourcemanager.security.implementation.IotAlertTypesImpl;
-import com.azure.resourcemanager.security.implementation.IotAlertsImpl;
-import com.azure.resourcemanager.security.implementation.IotDefenderSettingsImpl;
-import com.azure.resourcemanager.security.implementation.IotRecommendationTypesImpl;
-import com.azure.resourcemanager.security.implementation.IotRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionAnalyticsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsAggregatedAlertsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsImpl;
-import com.azure.resourcemanager.security.implementation.IotSensorsImpl;
-import com.azure.resourcemanager.security.implementation.IotSitesImpl;
import com.azure.resourcemanager.security.implementation.JitNetworkAccessPoliciesImpl;
import com.azure.resourcemanager.security.implementation.LocationsImpl;
-import com.azure.resourcemanager.security.implementation.OnPremiseIotSensorsImpl;
import com.azure.resourcemanager.security.implementation.OperationsImpl;
import com.azure.resourcemanager.security.implementation.PricingsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
@@ -92,27 +81,16 @@
import com.azure.resourcemanager.security.models.Compliances;
import com.azure.resourcemanager.security.models.Connectors;
import com.azure.resourcemanager.security.models.DeviceSecurityGroups;
-import com.azure.resourcemanager.security.models.Devices;
-import com.azure.resourcemanager.security.models.DevicesForHubs;
-import com.azure.resourcemanager.security.models.DevicesForSubscriptions;
import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutions;
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
import com.azure.resourcemanager.security.models.IngestionSettings;
-import com.azure.resourcemanager.security.models.IotAlertTypes;
-import com.azure.resourcemanager.security.models.IotAlerts;
-import com.azure.resourcemanager.security.models.IotDefenderSettings;
-import com.azure.resourcemanager.security.models.IotRecommendationTypes;
-import com.azure.resourcemanager.security.models.IotRecommendations;
import com.azure.resourcemanager.security.models.IotSecuritySolutionAnalytics;
import com.azure.resourcemanager.security.models.IotSecuritySolutions;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsAggregatedAlerts;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsRecommendations;
-import com.azure.resourcemanager.security.models.IotSensors;
-import com.azure.resourcemanager.security.models.IotSites;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicies;
import com.azure.resourcemanager.security.models.Locations;
-import com.azure.resourcemanager.security.models.OnPremiseIotSensors;
import com.azure.resourcemanager.security.models.Operations;
import com.azure.resourcemanager.security.models.Pricings;
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
@@ -224,28 +202,6 @@ public final class SecurityManager {
private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
- private IotDefenderSettings iotDefenderSettings;
-
- private IotSensors iotSensors;
-
- private DevicesForSubscriptions devicesForSubscriptions;
-
- private DevicesForHubs devicesForHubs;
-
- private Devices devices;
-
- private OnPremiseIotSensors onPremiseIotSensors;
-
- private IotSites iotSites;
-
- private IotAlerts iotAlerts;
-
- private IotAlertTypes iotAlertTypes;
-
- private IotRecommendations iotRecommendations;
-
- private IotRecommendationTypes iotRecommendationTypes;
-
private Alerts alerts;
private Settings settings;
@@ -782,96 +738,6 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
return sqlVulnerabilityAssessmentBaselineRules;
}
- /** @return Resource collection API of IotDefenderSettings. */
- public IotDefenderSettings iotDefenderSettings() {
- if (this.iotDefenderSettings == null) {
- this.iotDefenderSettings = new IotDefenderSettingsImpl(clientObject.getIotDefenderSettings(), this);
- }
- return iotDefenderSettings;
- }
-
- /** @return Resource collection API of IotSensors. */
- public IotSensors iotSensors() {
- if (this.iotSensors == null) {
- this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
- }
- return iotSensors;
- }
-
- /** @return Resource collection API of DevicesForSubscriptions. */
- public DevicesForSubscriptions devicesForSubscriptions() {
- if (this.devicesForSubscriptions == null) {
- this.devicesForSubscriptions =
- new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
- }
- return devicesForSubscriptions;
- }
-
- /** @return Resource collection API of DevicesForHubs. */
- public DevicesForHubs devicesForHubs() {
- if (this.devicesForHubs == null) {
- this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
- }
- return devicesForHubs;
- }
-
- /** @return Resource collection API of Devices. */
- public Devices devices() {
- if (this.devices == null) {
- this.devices = new DevicesImpl(clientObject.getDevices(), this);
- }
- return devices;
- }
-
- /** @return Resource collection API of OnPremiseIotSensors. */
- public OnPremiseIotSensors onPremiseIotSensors() {
- if (this.onPremiseIotSensors == null) {
- this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
- }
- return onPremiseIotSensors;
- }
-
- /** @return Resource collection API of IotSites. */
- public IotSites iotSites() {
- if (this.iotSites == null) {
- this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
- }
- return iotSites;
- }
-
- /** @return Resource collection API of IotAlerts. */
- public IotAlerts iotAlerts() {
- if (this.iotAlerts == null) {
- this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
- }
- return iotAlerts;
- }
-
- /** @return Resource collection API of IotAlertTypes. */
- public IotAlertTypes iotAlertTypes() {
- if (this.iotAlertTypes == null) {
- this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
- }
- return iotAlertTypes;
- }
-
- /** @return Resource collection API of IotRecommendations. */
- public IotRecommendations iotRecommendations() {
- if (this.iotRecommendations == null) {
- this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
- }
- return iotRecommendations;
- }
-
- /** @return Resource collection API of IotRecommendationTypes. */
- public IotRecommendationTypes iotRecommendationTypes() {
- if (this.iotRecommendationTypes == null) {
- this.iotRecommendationTypes =
- new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
- }
- return iotRecommendationTypes;
- }
-
/** @return Resource collection API of Alerts. */
public Alerts alerts() {
if (this.alerts == null) {
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.java
deleted file mode 100644
index 90532443f9ff..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesClient.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.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.DeviceInner;
-
-/** An instance of this class provides access to all the operations defined in DevicesClient. */
-public interface DevicesClient {
- /**
- * Get device.
- *
- * @param resourceId The identifier of the resource.
- * @param deviceId Identifier of the device.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner get(String resourceId, String deviceId);
-
- /**
- * Get device.
- *
- * @param resourceId The identifier of the resource.
- * @param deviceId Identifier of the device.
- * @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 device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String deviceId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.java
deleted file mode 100644
index 69f002544a43..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForHubsClient.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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in DevicesForHubsClient. */
-public interface DevicesForHubsClient {
- /**
- * Get list of the devices for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices for the specified IoT Hub resource.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceId);
-
- /**
- * Get list of the devices for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @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 list of the devices for the specified IoT Hub resource.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceId, Integer limit, String skipToken, ManagementState deviceManagementType, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.java
deleted file mode 100644
index 155c79771103..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DevicesForSubscriptionsClient.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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.DeviceInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in DevicesForSubscriptionsClient. */
-public interface DevicesForSubscriptionsClient {
- /**
- * Get list of the devices by their subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of the devices by their subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Get list of the devices by their subscription.
- *
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @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 list of the devices by their subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- Integer limit, String skipToken, ManagementState deviceManagementType, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertTypesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertTypesClient.java
deleted file mode 100644
index c61e6ae4bc96..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertTypesClient.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.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.IotAlertTypeInner;
-import com.azure.resourcemanager.security.fluent.models.IotAlertTypeListInner;
-
-/** An instance of this class provides access to all the operations defined in IotAlertTypesClient. */
-public interface IotAlertTypesClient {
- /**
- * List IoT alert types.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of alert types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertTypeListInner list();
-
- /**
- * List IoT alert types.
- *
- * @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 list of alert types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT alert type.
- *
- * @param iotAlertTypeName Name of the alert type.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertTypeInner get(String iotAlertTypeName);
-
- /**
- * Get IoT alert type.
- *
- * @param iotAlertTypeName Name of the alert type.
- * @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 ioT alert type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String iotAlertTypeName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.java
deleted file mode 100644
index add204e53a99..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotAlertsClient.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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotAlertModelInner;
-import com.azure.resourcemanager.security.models.ManagementState;
-
-/** An instance of this class provides access to all the operations defined in IotAlertsClient. */
-public interface IotAlertsClient {
- /**
- * List IoT alerts.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT alerts.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * List IoT alerts.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param minStartTimeUtc Filter by minimum startTimeUtc (ISO 8601 format).
- * @param maxStartTimeUtc Filter by maximum startTimeUtc (ISO 8601 format).
- * @param alertType Filter by alert type.
- * @param deviceManagementType Get devices only from specific type, Managed or Unmanaged.
- * @param compromisedEntity Filter by compromised device.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @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 list of IoT alerts.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String scope,
- String minStartTimeUtc,
- String maxStartTimeUtc,
- String alertType,
- ManagementState deviceManagementType,
- String compromisedEntity,
- Integer limit,
- String skipToken,
- Context context);
-
- /**
- * Get IoT alert.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotAlertId Id of the alert.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT alert.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotAlertModelInner get(String scope, String iotAlertId);
-
- /**
- * Get IoT alert.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotAlertId Id of the alert.
- * @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 ioT alert.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotAlertId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java
deleted file mode 100644
index 2fc29dca0093..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotDefenderSettingsClient.java
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright (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.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotDefenderSettingsListInner;
-import com.azure.resourcemanager.security.fluent.models.IotDefenderSettingsModelInner;
-import com.azure.resourcemanager.security.fluent.models.PackageDownloadsInner;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in IotDefenderSettingsClient. */
-public interface IotDefenderSettingsClient {
- /**
- * List IoT Defender Settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsListInner list();
-
- /**
- * List IoT Defender Settings.
- *
- * @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 list of IoT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT Defender Settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender Settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsModelInner get();
-
- /**
- * Get IoT Defender Settings.
- *
- * @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 ioT Defender Settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(Context context);
-
- /**
- * Create or update IoT Defender settings.
- *
- * @param iotDefenderSettingsModel The IoT defender settings model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotDefenderSettingsModelInner createOrUpdate(IotDefenderSettingsModelInner iotDefenderSettingsModel);
-
- /**
- * Create or update IoT Defender settings.
- *
- * @param iotDefenderSettingsModel The IoT defender settings model.
- * @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 ioT Defender settings.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- IotDefenderSettingsModelInner iotDefenderSettingsModel, Context context);
-
- /**
- * Delete IoT Defender settings.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete();
-
- /**
- * Delete IoT Defender settings.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(Context context);
-
- /**
- * Information about downloadable packages.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about package downloads.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PackageDownloadsInner packageDownloads();
-
- /**
- * Information about downloadable packages.
- *
- * @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 information about package downloads.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response packageDownloadsWithResponse(Context context);
-
- /**
- * Download manager activation data defined for this subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadManagerActivation();
-
- /**
- * Download manager activation data defined for this subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadManagerActivationWithResponse(Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.java
deleted file mode 100644
index 73ef2991f597..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationTypesClient.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.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.IotRecommendationTypeInner;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationTypeListInner;
-
-/** An instance of this class provides access to all the operations defined in IotRecommendationTypesClient. */
-public interface IotRecommendationTypesClient {
- /**
- * List IoT recommendation types.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of recommendation types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationTypeListInner list();
-
- /**
- * List IoT recommendation types.
- *
- * @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 list of recommendation types.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get IoT recommendation type.
- *
- * @param iotRecommendationTypeName Name of the recommendation type.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationTypeInner get(String iotRecommendationTypeName);
-
- /**
- * Get IoT recommendation type.
- *
- * @param iotRecommendationTypeName Name of the recommendation type.
- * @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 ioT recommendation type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String iotRecommendationTypeName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java
deleted file mode 100644
index 8d800d83f319..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotRecommendationsClient.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (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.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotRecommendationModelInner;
-
-/** An instance of this class provides access to all the operations defined in IotRecommendationsClient. */
-public interface IotRecommendationsClient {
- /**
- * List IoT recommendations.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT recommendations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String scope);
-
- /**
- * List IoT recommendations.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param recommendationType Filter by recommendation type.
- * @param deviceId Filter by device id.
- * @param limit Limit the number of items returned in a single page.
- * @param skipToken Skip token used for pagination.
- * @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 list of IoT recommendations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String scope, String recommendationType, String deviceId, Integer limit, String skipToken, Context context);
-
- /**
- * Get IoT recommendation.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotRecommendationId Id of the recommendation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT recommendation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotRecommendationModelInner get(String scope, String iotRecommendationId);
-
- /**
- * Get IoT recommendation.
- *
- * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e.
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- * @param iotRecommendationId Id of the recommendation.
- * @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 ioT recommendation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotRecommendationId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java
deleted file mode 100644
index 6ea5cb5022dc..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSensorsClient.java
+++ /dev/null
@@ -1,209 +0,0 @@
-// Copyright (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.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.IotSensorsListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSensorsModelInner;
-import com.azure.resourcemanager.security.models.ResetPasswordInput;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in IotSensorsClient. */
-public interface IotSensorsClient {
- /**
- * List IoT sensors.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsListInner list(String scope);
-
- /**
- * List IoT sensors.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @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 list of IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
-
- /**
- * Get IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsModelInner get(String scope, String iotSensorName);
-
- /**
- * Get IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @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 ioT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Create or update IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param iotSensorsModel The IoT sensor model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT sensor model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSensorsModelInner createOrUpdate(String scope, String iotSensorName, IotSensorsModelInner iotSensorsModel);
-
- /**
- * Create or update IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param iotSensorsModel The IoT sensor model.
- * @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 ioT sensor model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope, String iotSensorName, IotSensorsModelInner iotSensorsModel, Context context);
-
- /**
- * Delete IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope, String iotSensorName);
-
- /**
- * Delete IoT sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Download sensor activation file.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadActivation(String scope, String iotSensorName);
-
- /**
- * Download sensor activation file.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadActivationWithResponse(String scope, String iotSensorName, Context context);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param body The reset password input.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadResetPassword(String scope, String iotSensorName, ResetPasswordInput body);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param body The reset password input.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadResetPasswordWithResponse(
- String scope, String iotSensorName, ResetPasswordInput body, Context context);
-
- /**
- * Trigger threat intelligence package update.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void triggerTiPackageUpdate(String scope, String iotSensorName);
-
- /**
- * Trigger threat intelligence package update.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSensorName Name of the IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response triggerTiPackageUpdateWithResponse(String scope, String iotSensorName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.java
deleted file mode 100644
index 4945f8bc0f1d..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSitesClient.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.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.IotSitesListInner;
-import com.azure.resourcemanager.security.fluent.models.IotSitesModelInner;
-
-/** An instance of this class provides access to all the operations defined in IotSitesClient. */
-public interface IotSitesClient {
- /**
- * List IoT sites.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of IoT sites.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesListInner list(String scope);
-
- /**
- * List IoT sites.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @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 list of IoT sites.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String scope, Context context);
-
- /**
- * Get IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT site.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner get(String scope);
-
- /**
- * Get IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @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 ioT site.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, Context context);
-
- /**
- * Create or update IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT site model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IotSitesModelInner createOrUpdate(String scope, IotSitesModelInner iotSitesModel);
-
- /**
- * Create or update IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param iotSitesModel The IoT sites model.
- * @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 ioT site model.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope, IotSitesModelInner iotSitesModel, Context context);
-
- /**
- * Delete IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope);
-
- /**
- * Delete IoT site.
- *
- * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OnPremiseIotSensorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OnPremiseIotSensorsClient.java
deleted file mode 100644
index 726cda7fbdbd..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/OnPremiseIotSensorsClient.java
+++ /dev/null
@@ -1,167 +0,0 @@
-// Copyright (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.http.rest.StreamResponse;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.security.fluent.models.OnPremiseIotSensorInner;
-import com.azure.resourcemanager.security.fluent.models.OnPremiseIotSensorsListInner;
-import com.azure.resourcemanager.security.models.ResetPasswordInput;
-import java.io.InputStream;
-
-/** An instance of this class provides access to all the operations defined in OnPremiseIotSensorsClient. */
-public interface OnPremiseIotSensorsClient {
- /**
- * List on-premise IoT sensors.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of on-premise IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OnPremiseIotSensorsListInner list();
-
- /**
- * List on-premise IoT sensors.
- *
- * @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 list of on-premise IoT sensors.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
-
- /**
- * Get on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OnPremiseIotSensorInner get(String onPremiseIotSensorName);
-
- /**
- * Get on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @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 on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Create or update on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OnPremiseIotSensorInner createOrUpdate(String onPremiseIotSensorName);
-
- /**
- * Create or update on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @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 on-premise IoT sensor.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Delete on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String onPremiseIotSensorName);
-
- /**
- * Delete on-premise IoT sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Download sensor activation file.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadActivation(String onPremiseIotSensorName);
-
- /**
- * Download sensor activation file.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadActivationWithResponse(String onPremiseIotSensorName, Context context);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param body Input for reset password.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InputStream downloadResetPassword(String onPremiseIotSensorName, ResetPasswordInput body);
-
- /**
- * Download file for reset password of the sensor.
- *
- * @param onPremiseIotSensorName Name of the on-premise IoT sensor.
- * @param body Input for reset password.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- StreamResponse downloadResetPasswordWithResponse(
- String onPremiseIotSensorName, ResetPasswordInput body, Context context);
-}
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 ed8d21449d3a..e1752b9791bc 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,83 +324,6 @@ public interface SecurityCenter {
*/
SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules();
- /**
- * Gets the IotDefenderSettingsClient object to access its operations.
- *
- * @return the IotDefenderSettingsClient object.
- */
- IotDefenderSettingsClient getIotDefenderSettings();
-
- /**
- * Gets the IotSensorsClient object to access its operations.
- *
- * @return the IotSensorsClient object.
- */
- IotSensorsClient getIotSensors();
-
- /**
- * Gets the DevicesForSubscriptionsClient object to access its operations.
- *
- * @return the DevicesForSubscriptionsClient object.
- */
- DevicesForSubscriptionsClient getDevicesForSubscriptions();
-
- /**
- * Gets the DevicesForHubsClient object to access its operations.
- *
- * @return the DevicesForHubsClient object.
- */
- DevicesForHubsClient getDevicesForHubs();
-
- /**
- * Gets the DevicesClient object to access its operations.
- *
- * @return the DevicesClient object.
- */
- DevicesClient getDevices();
-
- /**
- * Gets the OnPremiseIotSensorsClient object to access its operations.
- *
- * @return the OnPremiseIotSensorsClient object.
- */
- OnPremiseIotSensorsClient getOnPremiseIotSensors();
-
- /**
- * Gets the IotSitesClient object to access its operations.
- *
- * @return the IotSitesClient object.
- */
- IotSitesClient getIotSites();
-
- /**
- * Gets the IotAlertsClient object to access its operations.
- *
- * @return the IotAlertsClient object.
- */
- IotAlertsClient getIotAlerts();
-
- /**
- * Gets the IotAlertTypesClient object to access its operations.
- *
- * @return the IotAlertTypesClient object.
- */
- IotAlertTypesClient getIotAlertTypes();
-
- /**
- * Gets the IotRecommendationsClient object to access its operations.
- *
- * @return the IotRecommendationsClient object.
- */
- IotRecommendationsClient getIotRecommendations();
-
- /**
- * Gets the IotRecommendationTypesClient object to access its operations.
- *
- * @return the IotRecommendationTypesClient object.
- */
- IotRecommendationTypesClient getIotRecommendationTypes();
-
/**
* Gets the AlertsClient object to access its operations.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java
index ad7e64021e14..21a9bb42db86 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertInner.java
@@ -14,6 +14,7 @@
import com.azure.resourcemanager.security.models.Intent;
import com.azure.resourcemanager.security.models.ResourceIdentifier;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -168,6 +169,7 @@ public class AlertInner extends ProxyResource {
* Custom properties for the alert.
*/
@JsonProperty(value = "properties.extendedProperties")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map extendedProperties;
/*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceInner.java
deleted file mode 100644
index 7c2676265df7..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/DeviceInner.java
+++ /dev/null
@@ -1,493 +0,0 @@
-// Copyright (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.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.security.models.AuthorizationState;
-import com.azure.resourcemanager.security.models.DeviceCriticality;
-import com.azure.resourcemanager.security.models.DeviceStatus;
-import com.azure.resourcemanager.security.models.Firmware;
-import com.azure.resourcemanager.security.models.ManagementState;
-import com.azure.resourcemanager.security.models.NetworkInterface;
-import com.azure.resourcemanager.security.models.ProgrammingState;
-import com.azure.resourcemanager.security.models.Protocol;
-import com.azure.resourcemanager.security.models.PurdueLevel;
-import com.azure.resourcemanager.security.models.ScanningFunctionality;
-import com.azure.resourcemanager.security.models.Sensor;
-import com.azure.resourcemanager.security.models.Site;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-
-/** Device model. */
-@JsonFlatten
-@Fluent
-public class DeviceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DeviceInner.class);
-
- /*
- * Device display name given by the collector
- */
- @JsonProperty(value = "properties.displayName")
- private String displayName;
-
- /*
- * Device type.
- */
- @JsonProperty(value = "properties.deviceType")
- private String deviceType;
-
- /*
- * The source that created the device
- */
- @JsonProperty(value = "properties.sourceName", access = JsonProperty.Access.WRITE_ONLY)
- private String sourceName;
-
- /*
- * List of network interfaces.
- */
- @JsonProperty(value = "properties.networkInterfaces", access = JsonProperty.Access.WRITE_ONLY)
- private List networkInterfaces;
-
- /*
- * Device vendor
- */
- @JsonProperty(value = "properties.vendor", access = JsonProperty.Access.WRITE_ONLY)
- private String vendor;
-
- /*
- * Device operating system name.
- */
- @JsonProperty(value = "properties.osName")
- private String osName;
-
- /*
- * List of protocols.
- */
- @JsonProperty(value = "properties.protocols", access = JsonProperty.Access.WRITE_ONLY)
- private List protocols;
-
- /*
- * last time the device was active in the network
- */
- @JsonProperty(value = "properties.lastActiveTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastActiveTime;
-
- /*
- * last time the device was updated
- */
- @JsonProperty(value = "properties.lastUpdateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastUpdateTime;
-
- /*
- * Managed state of the device.
- */
- @JsonProperty(value = "properties.managementState", access = JsonProperty.Access.WRITE_ONLY)
- private ManagementState managementState;
-
- /*
- * Authorized state of the device.
- */
- @JsonProperty(value = "properties.authorizationState")
- private AuthorizationState authorizationState;
-
- /*
- * Device criticality.
- */
- @JsonProperty(value = "properties.deviceCriticality")
- private DeviceCriticality deviceCriticality;
-
- /*
- * Purdue level of the device.
- */
- @JsonProperty(value = "properties.purdueLevel")
- private PurdueLevel purdueLevel;
-
- /*
- * user notes for the device, up to 300 characters.
- */
- @JsonProperty(value = "properties.notes")
- private String notes;
-
- /*
- * List of device firmwares.
- */
- @JsonProperty(value = "properties.firmwares", access = JsonProperty.Access.WRITE_ONLY)
- private List firmwares;
-
- /*
- * Discovered time of the device.
- */
- @JsonProperty(value = "properties.discoveryTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime discoveryTime;
-
- /*
- * Indicates whether this device is programming
- */
- @JsonProperty(value = "properties.programmingState", access = JsonProperty.Access.WRITE_ONLY)
- private ProgrammingState programmingState;
-
- /*
- * last time the device was programming or programed.
- */
- @JsonProperty(value = "properties.lastProgrammingTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastProgrammingTime;
-
- /*
- * Indicates whether the device is a scanner
- */
- @JsonProperty(value = "properties.scanningFunctionality", access = JsonProperty.Access.WRITE_ONLY)
- private ScanningFunctionality scanningFunctionality;
-
- /*
- * last time the device was scanning.
- */
- @JsonProperty(value = "properties.lastScanTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastScanTime;
-
- /*
- * risk score of the device.
- */
- @JsonProperty(value = "properties.riskScore", access = JsonProperty.Access.WRITE_ONLY)
- private Integer riskScore;
-
- /*
- * List of sensors that scanned this device.
- */
- @JsonProperty(value = "properties.sensors", access = JsonProperty.Access.WRITE_ONLY)
- private List sensors;
-
- /*
- * Site data
- */
- @JsonProperty(value = "properties.site", access = JsonProperty.Access.WRITE_ONLY)
- private Site site;
-
- /*
- * Device status.
- */
- @JsonProperty(value = "properties.deviceStatus", access = JsonProperty.Access.WRITE_ONLY)
- private DeviceStatus deviceStatus;
-
- /**
- * Get the displayName property: Device display name given by the collector.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.displayName;
- }
-
- /**
- * Set the displayName property: Device display name given by the collector.
- *
- * @param displayName the displayName value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withDisplayName(String displayName) {
- this.displayName = displayName;
- return this;
- }
-
- /**
- * Get the deviceType property: Device type.
- *
- * @return the deviceType value.
- */
- public String deviceType() {
- return this.deviceType;
- }
-
- /**
- * Set the deviceType property: Device type.
- *
- * @param deviceType the deviceType value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withDeviceType(String deviceType) {
- this.deviceType = deviceType;
- return this;
- }
-
- /**
- * Get the sourceName property: The source that created the device.
- *
- * @return the sourceName value.
- */
- public String sourceName() {
- return this.sourceName;
- }
-
- /**
- * Get the networkInterfaces property: List of network interfaces.
- *
- * @return the networkInterfaces value.
- */
- public List networkInterfaces() {
- return this.networkInterfaces;
- }
-
- /**
- * Get the vendor property: Device vendor.
- *
- * @return the vendor value.
- */
- public String vendor() {
- return this.vendor;
- }
-
- /**
- * Get the osName property: Device operating system name.
- *
- * @return the osName value.
- */
- public String osName() {
- return this.osName;
- }
-
- /**
- * Set the osName property: Device operating system name.
- *
- * @param osName the osName value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withOsName(String osName) {
- this.osName = osName;
- return this;
- }
-
- /**
- * Get the protocols property: List of protocols.
- *
- * @return the protocols value.
- */
- public List protocols() {
- return this.protocols;
- }
-
- /**
- * Get the lastActiveTime property: last time the device was active in the network.
- *
- * @return the lastActiveTime value.
- */
- public OffsetDateTime lastActiveTime() {
- return this.lastActiveTime;
- }
-
- /**
- * Get the lastUpdateTime property: last time the device was updated.
- *
- * @return the lastUpdateTime value.
- */
- public OffsetDateTime lastUpdateTime() {
- return this.lastUpdateTime;
- }
-
- /**
- * Get the managementState property: Managed state of the device.
- *
- * @return the managementState value.
- */
- public ManagementState managementState() {
- return this.managementState;
- }
-
- /**
- * Get the authorizationState property: Authorized state of the device.
- *
- * @return the authorizationState value.
- */
- public AuthorizationState authorizationState() {
- return this.authorizationState;
- }
-
- /**
- * Set the authorizationState property: Authorized state of the device.
- *
- * @param authorizationState the authorizationState value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withAuthorizationState(AuthorizationState authorizationState) {
- this.authorizationState = authorizationState;
- return this;
- }
-
- /**
- * Get the deviceCriticality property: Device criticality.
- *
- * @return the deviceCriticality value.
- */
- public DeviceCriticality deviceCriticality() {
- return this.deviceCriticality;
- }
-
- /**
- * Set the deviceCriticality property: Device criticality.
- *
- * @param deviceCriticality the deviceCriticality value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withDeviceCriticality(DeviceCriticality deviceCriticality) {
- this.deviceCriticality = deviceCriticality;
- return this;
- }
-
- /**
- * Get the purdueLevel property: Purdue level of the device.
- *
- * @return the purdueLevel value.
- */
- public PurdueLevel purdueLevel() {
- return this.purdueLevel;
- }
-
- /**
- * Set the purdueLevel property: Purdue level of the device.
- *
- * @param purdueLevel the purdueLevel value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withPurdueLevel(PurdueLevel purdueLevel) {
- this.purdueLevel = purdueLevel;
- return this;
- }
-
- /**
- * Get the notes property: user notes for the device, up to 300 characters.
- *
- * @return the notes value.
- */
- public String notes() {
- return this.notes;
- }
-
- /**
- * Set the notes property: user notes for the device, up to 300 characters.
- *
- * @param notes the notes value to set.
- * @return the DeviceInner object itself.
- */
- public DeviceInner withNotes(String notes) {
- this.notes = notes;
- return this;
- }
-
- /**
- * Get the firmwares property: List of device firmwares.
- *
- * @return the firmwares value.
- */
- public List firmwares() {
- return this.firmwares;
- }
-
- /**
- * Get the discoveryTime property: Discovered time of the device.
- *
- * @return the discoveryTime value.
- */
- public OffsetDateTime discoveryTime() {
- return this.discoveryTime;
- }
-
- /**
- * Get the programmingState property: Indicates whether this device is programming.
- *
- * @return the programmingState value.
- */
- public ProgrammingState programmingState() {
- return this.programmingState;
- }
-
- /**
- * Get the lastProgrammingTime property: last time the device was programming or programed.
- *
- * @return the lastProgrammingTime value.
- */
- public OffsetDateTime lastProgrammingTime() {
- return this.lastProgrammingTime;
- }
-
- /**
- * Get the scanningFunctionality property: Indicates whether the device is a scanner.
- *
- * @return the scanningFunctionality value.
- */
- public ScanningFunctionality scanningFunctionality() {
- return this.scanningFunctionality;
- }
-
- /**
- * Get the lastScanTime property: last time the device was scanning.
- *
- * @return the lastScanTime value.
- */
- public OffsetDateTime lastScanTime() {
- return this.lastScanTime;
- }
-
- /**
- * Get the riskScore property: risk score of the device.
- *
- * @return the riskScore value.
- */
- public Integer riskScore() {
- return this.riskScore;
- }
-
- /**
- * Get the sensors property: List of sensors that scanned this device.
- *
- * @return the sensors value.
- */
- public List sensors() {
- return this.sensors;
- }
-
- /**
- * Get the site property: Site data.
- *
- * @return the site value.
- */
- public Site site() {
- return this.site;
- }
-
- /**
- * Get the deviceStatus property: Device status.
- *
- * @return the deviceStatus value.
- */
- public DeviceStatus deviceStatus() {
- return this.deviceStatus;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (networkInterfaces() != null) {
- networkInterfaces().forEach(e -> e.validate());
- }
- if (protocols() != null) {
- protocols().forEach(e -> e.validate());
- }
- if (firmwares() != null) {
- firmwares().forEach(e -> e.validate());
- }
- if (sensors() != null) {
- sensors().forEach(e -> e.validate());
- }
- if (site() != null) {
- site().validate();
- }
- }
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java
index 58ffc98ba14f..bbe9867c2875 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/InformationProtectionPolicyInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.security.models.InformationType;
import com.azure.resourcemanager.security.models.SensitivityLabel;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
@@ -37,12 +38,14 @@ public class InformationProtectionPolicyInner extends ProxyResource {
* Dictionary of sensitivity labels.
*/
@JsonProperty(value = "properties.labels")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map labels;
/*
* The sensitivity information types.
*/
@JsonProperty(value = "properties.informationTypes")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map informationTypes;
/**
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java
index e63895b8af85..8255a4e1658f 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedAlertInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.security.models.IoTSecurityAggregatedAlertPropertiesTopDevicesListItem;
import com.azure.resourcemanager.security.models.ReportedSeverity;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
import java.util.List;
@@ -105,6 +106,7 @@ public class IoTSecurityAggregatedAlertInner extends ProxyResource {
* Resource tags
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java
index c75f4c6ded38..5e0b6d7b3388 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecurityAggregatedRecommendationInner.java
@@ -10,6 +10,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.ReportedSeverity;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -83,6 +84,7 @@ public class IoTSecurityAggregatedRecommendationInner extends ProxyResource {
* Resource tags
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java
index b4fba2e83a4b..35f4bc16dab7 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IoTSecuritySolutionModelInner.java
@@ -17,6 +17,7 @@
import com.azure.resourcemanager.security.models.UnmaskedIpLoggingStatus;
import com.azure.resourcemanager.security.models.UserDefinedResourcesProperties;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -112,6 +113,7 @@ public class IoTSecuritySolutionModelInner extends ProxyResource {
* Resource tags
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IotAlertModelInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IotAlertModelInner.java
deleted file mode 100644
index f6fe3964e991..000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/IotAlertModelInner.java
+++ /dev/null
@@ -1,161 +0,0 @@
-// Copyright (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.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** IoT alert. */
-@JsonFlatten
-@Fluent
-public class IotAlertModelInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(IotAlertModelInner.class);
-
- /*
- * Holds the product canonical identifier of the alert within the scope of
- * a product
- */
- @JsonProperty(value = "properties.systemAlertId", access = JsonProperty.Access.WRITE_ONLY)
- private String systemAlertId;
-
- /*
- * Display name of the main entity being reported on
- */
- @JsonProperty(value = "properties.compromisedEntity", access = JsonProperty.Access.WRITE_ONLY)
- private String compromisedEntity;
-
- /*
- * The type name of the alert
- */
- @JsonProperty(value = "properties.alertType", access = JsonProperty.Access.WRITE_ONLY)
- private String alertType;
-
- /*
- * The impact start time of the alert (the time of the first event or
- * activity included in the alert)
- */
- @JsonProperty(value = "properties.startTimeUtc", access = JsonProperty.Access.WRITE_ONLY)
- private String startTimeUtc;
-
- /*
- * The impact end time of the alert (the time of the last event or activity
- * included in the alert)
- */
- @JsonProperty(value = "properties.endTimeUtc", access = JsonProperty.Access.WRITE_ONLY)
- private String endTimeUtc;
-
- /*
- * A list of entities related to the alert
- */
- @JsonProperty(value = "properties.entities")
- private List