diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 94e033f5fe1d3..6192e1323f072 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.4 (Unreleased)
+## 1.0.0-beta.1 (2023-03-14)
+
+- 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 56feefc413ff4..d5a2f20c8a879 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.3
+ 1.0.0-beta.4
```
[//]: # ({x-version-update-end})
diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md
index 4a430c8205e50..8165f46c2faca 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -163,17 +163,22 @@
- [Get](#governanceassignments_get)
- [List](#governanceassignments_list)
-## GovernanceRule
+## GovernanceRules
-- [List](#governancerule_list)
+- [CreateOrUpdate](#governancerules_createorupdate)
+- [Delete](#governancerules_delete)
+- [Execute](#governancerules_execute)
+- [Get](#governancerules_get)
+- [List](#governancerules_list)
+- [OperationResults](#governancerules_operationresults)
-## GovernanceRulesOperation
+## HealthReportOperation
-- [CreateOrUpdate](#governancerulesoperation_createorupdate)
-- [Delete](#governancerulesoperation_delete)
-- [Get](#governancerulesoperation_get)
-- [RuleIdExecuteSingleSecurityConnector](#governancerulesoperation_ruleidexecutesinglesecurityconnector)
-- [RuleIdExecuteSingleSubscription](#governancerulesoperation_ruleidexecutesinglesubscription)
+- [Get](#healthreportoperation_get)
+
+## HealthReports
+
+- [List](#healthreports_list)
## InformationProtectionPolicies
@@ -282,20 +287,6 @@
- [List](#securityconnectorapplications_list)
-## SecurityConnectorGovernanceRule
-
-- [List](#securityconnectorgovernancerule_list)
-
-## SecurityConnectorGovernanceRulesExecuteStatus
-
-- [Get](#securityconnectorgovernancerulesexecutestatus_get)
-
-## SecurityConnectorGovernanceRulesOperation
-
-- [CreateOrUpdate](#securityconnectorgovernancerulesoperation_createorupdate)
-- [Delete](#securityconnectorgovernancerulesoperation_delete)
-- [Get](#securityconnectorgovernancerulesoperation_get)
-
## SecurityConnectors
- [CreateOrUpdate](#securityconnectors_createorupdate)
@@ -365,10 +356,6 @@
- [List](#subassessments_list)
- [ListAll](#subassessments_listall)
-## SubscriptionGovernanceRulesExecuteStatus
-
-- [Get](#subscriptiongovernancerulesexecutestatus_get)
-
## Tasks
- [GetResourceGroupLevelTask](#tasks_getresourcegroupleveltask)
@@ -395,8 +382,6 @@
### AdaptiveApplicationControls_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for AdaptiveApplicationControls Delete. */
public final class AdaptiveApplicationControlsDeleteSamples {
/*
@@ -409,7 +394,9 @@ public final class AdaptiveApplicationControlsDeleteSamples {
*/
public static void deleteAnApplicationControlMachineGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.adaptiveApplicationControls().deleteByResourceGroupWithResponse("centralus", "GROUP1", Context.NONE);
+ manager
+ .adaptiveApplicationControls()
+ .deleteByResourceGroupWithResponse("centralus", "GROUP1", com.azure.core.util.Context.NONE);
}
}
```
@@ -417,8 +404,6 @@ public final class AdaptiveApplicationControlsDeleteSamples {
### AdaptiveApplicationControls_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for AdaptiveApplicationControls Get. */
public final class AdaptiveApplicationControlsGetSamples {
/*
@@ -431,7 +416,9 @@ public final class AdaptiveApplicationControlsGetSamples {
*/
public static void getsAConfiguredApplicationControlVMServerGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.adaptiveApplicationControls().getWithResponse("centralus", "ERELGROUP1", Context.NONE);
+ manager
+ .adaptiveApplicationControls()
+ .getWithResponse("centralus", "ERELGROUP1", com.azure.core.util.Context.NONE);
}
}
```
@@ -439,8 +426,6 @@ public final class AdaptiveApplicationControlsGetSamples {
### AdaptiveApplicationControls_List
```java
-import com.azure.core.util.Context;
-
/** Samples for AdaptiveApplicationControls List. */
public final class AdaptiveApplicationControlsListSamples {
/*
@@ -453,7 +438,7 @@ public final class AdaptiveApplicationControlsListSamples {
*/
public static void getsAListOfApplicationControlGroupsOfMachinesForTheSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.adaptiveApplicationControls().listWithResponse(true, false, Context.NONE);
+ manager.adaptiveApplicationControls().listWithResponse(true, false, com.azure.core.util.Context.NONE);
}
}
```
@@ -461,7 +446,6 @@ public final class AdaptiveApplicationControlsListSamples {
### AdaptiveApplicationControls_Put
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.AdaptiveApplicationControlGroup;
import com.azure.resourcemanager.security.models.ConfigurationStatus;
import com.azure.resourcemanager.security.models.EnforcementMode;
@@ -489,7 +473,10 @@ public final class AdaptiveApplicationControlsPutSamples {
public static void updateAnApplicationControlMachineGroupByAddingANewApplication(
com.azure.resourcemanager.security.SecurityManager manager) {
AdaptiveApplicationControlGroup resource =
- manager.adaptiveApplicationControls().getWithResponse("centralus", "ERELGROUP1", Context.NONE).getValue();
+ manager
+ .adaptiveApplicationControls()
+ .getWithResponse("centralus", "ERELGROUP1", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withEnforcementMode(EnforcementMode.AUDIT)
@@ -589,7 +576,6 @@ public final class AdaptiveApplicationControlsPutSamples {
### AdaptiveNetworkHardenings_Enforce
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningEnforceRequest;
import com.azure.resourcemanager.security.models.Direction;
import com.azure.resourcemanager.security.models.Rule;
@@ -637,7 +623,7 @@ public final class AdaptiveNetworkHardeningsEnforceSamples {
.asList(
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg2")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -645,8 +631,6 @@ public final class AdaptiveNetworkHardeningsEnforceSamples {
### AdaptiveNetworkHardenings_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for AdaptiveNetworkHardenings Get. */
public final class AdaptiveNetworkHardeningsGetSamples {
/*
@@ -661,7 +645,8 @@ public final class AdaptiveNetworkHardeningsGetSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.adaptiveNetworkHardenings()
- .getWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", "default", Context.NONE);
+ .getWithResponse(
+ "rg1", "Microsoft.Compute", "virtualMachines", "vm1", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -669,8 +654,6 @@ public final class AdaptiveNetworkHardeningsGetSamples {
### AdaptiveNetworkHardenings_ListByExtendedResource
```java
-import com.azure.core.util.Context;
-
/** Samples for AdaptiveNetworkHardenings ListByExtendedResource. */
public final class AdaptiveNetworkHardeningsListByExtendedResourceSamples {
/*
@@ -685,7 +668,8 @@ public final class AdaptiveNetworkHardeningsListByExtendedResourceSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.adaptiveNetworkHardenings()
- .listByExtendedResource("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ .listByExtendedResource(
+ "rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
@@ -719,8 +703,6 @@ public final class AdvancedThreatProtectionCreateSamples {
### AdvancedThreatProtection_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for AdvancedThreatProtection Get. */
public final class AdvancedThreatProtectionGetSamples {
/*
@@ -737,7 +719,7 @@ public final class AdvancedThreatProtectionGetSamples {
.advancedThreatProtections()
.getWithResponse(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -745,8 +727,6 @@ public final class AdvancedThreatProtectionGetSamples {
### Alerts_GetResourceGroupLevel
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts GetResourceGroupLevel. */
public final class AlertsGetResourceGroupLevelSamples {
/*
@@ -762,7 +742,10 @@ public final class AlertsGetResourceGroupLevelSamples {
manager
.alerts()
.getResourceGroupLevelWithResponse(
- "myRg1", "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ "myRg1",
+ "westeurope",
+ "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -770,8 +753,6 @@ public final class AlertsGetResourceGroupLevelSamples {
### Alerts_GetSubscriptionLevel
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts GetSubscriptionLevel. */
public final class AlertsGetSubscriptionLevelSamples {
/*
@@ -787,7 +768,9 @@ public final class AlertsGetSubscriptionLevelSamples {
manager
.alerts()
.getSubscriptionLevelWithResponse(
- "westeurope", "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA", Context.NONE);
+ "westeurope",
+ "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -795,8 +778,6 @@ public final class AlertsGetSubscriptionLevelSamples {
### Alerts_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts List. */
public final class AlertsListSamples {
/*
@@ -808,7 +789,7 @@ public final class AlertsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityAlertsOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().list(Context.NONE);
+ manager.alerts().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -816,8 +797,6 @@ public final class AlertsListSamples {
### Alerts_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts ListByResourceGroup. */
public final class AlertsListByResourceGroupSamples {
/*
@@ -829,7 +808,7 @@ public final class AlertsListByResourceGroupSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityAlertsOnAResourceGroup(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().listByResourceGroup("myRg1", Context.NONE);
+ manager.alerts().listByResourceGroup("myRg1", com.azure.core.util.Context.NONE);
}
}
```
@@ -837,8 +816,6 @@ public final class AlertsListByResourceGroupSamples {
### Alerts_ListResourceGroupLevelByRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts ListResourceGroupLevelByRegion. */
public final class AlertsListResourceGroupLevelByRegionSamples {
/*
@@ -851,7 +828,7 @@ public final class AlertsListResourceGroupLevelByRegionSamples {
*/
public static void getSecurityAlertsOnAResourceGroupFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().listResourceGroupLevelByRegion("westeurope", "myRg1", Context.NONE);
+ manager.alerts().listResourceGroupLevelByRegion("westeurope", "myRg1", com.azure.core.util.Context.NONE);
}
}
```
@@ -859,8 +836,6 @@ public final class AlertsListResourceGroupLevelByRegionSamples {
### Alerts_ListSubscriptionLevelByRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts ListSubscriptionLevelByRegion. */
public final class AlertsListSubscriptionLevelByRegionSamples {
/*
@@ -873,7 +848,7 @@ public final class AlertsListSubscriptionLevelByRegionSamples {
*/
public static void getSecurityAlertsOnASubscriptionFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alerts().listSubscriptionLevelByRegion("westeurope", Context.NONE);
+ manager.alerts().listSubscriptionLevelByRegion("westeurope", com.azure.core.util.Context.NONE);
}
}
```
@@ -881,7 +856,6 @@ public final class AlertsListSubscriptionLevelByRegionSamples {
### Alerts_Simulate
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.AlertSimulatorBundlesRequestProperties;
import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
import com.azure.resourcemanager.security.models.BundleType;
@@ -918,7 +892,7 @@ public final class AlertsSimulateSamples {
BundleType.STORAGE_ACCOUNTS,
BundleType.VIRTUAL_MACHINES,
BundleType.COSMOS_DBS))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -926,8 +900,6 @@ public final class AlertsSimulateSamples {
### Alerts_UpdateResourceGroupLevelStateToActivate
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateResourceGroupLevelStateToActivate. */
public final class AlertsUpdateResourceGroupLevelStateToActivateSamples {
/*
@@ -943,7 +915,10 @@ public final class AlertsUpdateResourceGroupLevelStateToActivateSamples {
manager
.alerts()
.updateResourceGroupLevelStateToActivateWithResponse(
- "myRg2", "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", Context.NONE);
+ "myRg2",
+ "westeurope",
+ "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -951,8 +926,6 @@ public final class AlertsUpdateResourceGroupLevelStateToActivateSamples {
### Alerts_UpdateResourceGroupLevelStateToDismiss
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateResourceGroupLevelStateToDismiss. */
public final class AlertsUpdateResourceGroupLevelStateToDismissSamples {
/*
@@ -968,7 +941,10 @@ public final class AlertsUpdateResourceGroupLevelStateToDismissSamples {
manager
.alerts()
.updateResourceGroupLevelStateToDismissWithResponse(
- "myRg2", "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", Context.NONE);
+ "myRg2",
+ "westeurope",
+ "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -976,8 +952,6 @@ public final class AlertsUpdateResourceGroupLevelStateToDismissSamples {
### Alerts_UpdateResourceGroupLevelStateToInProgress
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateResourceGroupLevelStateToInProgress. */
public final class AlertsUpdateResourceGroupLevelStateToInProgressSamples {
/*
@@ -993,7 +967,10 @@ public final class AlertsUpdateResourceGroupLevelStateToInProgressSamples {
manager
.alerts()
.updateResourceGroupLevelStateToInProgressWithResponse(
- "myRg2", "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", Context.NONE);
+ "myRg2",
+ "westeurope",
+ "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1001,8 +978,6 @@ public final class AlertsUpdateResourceGroupLevelStateToInProgressSamples {
### Alerts_UpdateResourceGroupLevelStateToResolve
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateResourceGroupLevelStateToResolve. */
public final class AlertsUpdateResourceGroupLevelStateToResolveSamples {
/*
@@ -1018,7 +993,10 @@ public final class AlertsUpdateResourceGroupLevelStateToResolveSamples {
manager
.alerts()
.updateResourceGroupLevelStateToResolveWithResponse(
- "myRg2", "westeurope", "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22", Context.NONE);
+ "myRg2",
+ "westeurope",
+ "2518765996949954086_2325cf9e-42a2-4f72-ae7f-9b863cba2d22",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1026,8 +1004,6 @@ public final class AlertsUpdateResourceGroupLevelStateToResolveSamples {
### Alerts_UpdateSubscriptionLevelStateToActivate
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateSubscriptionLevelStateToActivate. */
public final class AlertsUpdateSubscriptionLevelStateToActivateSamples {
/*
@@ -1043,7 +1019,9 @@ public final class AlertsUpdateSubscriptionLevelStateToActivateSamples {
manager
.alerts()
.updateSubscriptionLevelStateToActivateWithResponse(
- "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ "westeurope",
+ "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1051,8 +1029,6 @@ public final class AlertsUpdateSubscriptionLevelStateToActivateSamples {
### Alerts_UpdateSubscriptionLevelStateToDismiss
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateSubscriptionLevelStateToDismiss. */
public final class AlertsUpdateSubscriptionLevelStateToDismissSamples {
/*
@@ -1068,7 +1044,9 @@ public final class AlertsUpdateSubscriptionLevelStateToDismissSamples {
manager
.alerts()
.updateSubscriptionLevelStateToDismissWithResponse(
- "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ "westeurope",
+ "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1076,8 +1054,6 @@ public final class AlertsUpdateSubscriptionLevelStateToDismissSamples {
### Alerts_UpdateSubscriptionLevelStateToInProgress
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateSubscriptionLevelStateToInProgress. */
public final class AlertsUpdateSubscriptionLevelStateToInProgressSamples {
/*
@@ -1093,7 +1069,9 @@ public final class AlertsUpdateSubscriptionLevelStateToInProgressSamples {
manager
.alerts()
.updateSubscriptionLevelStateToInProgressWithResponse(
- "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ "westeurope",
+ "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1101,8 +1079,6 @@ public final class AlertsUpdateSubscriptionLevelStateToInProgressSamples {
### Alerts_UpdateSubscriptionLevelStateToResolve
```java
-import com.azure.core.util.Context;
-
/** Samples for Alerts UpdateSubscriptionLevelStateToResolve. */
public final class AlertsUpdateSubscriptionLevelStateToResolveSamples {
/*
@@ -1118,7 +1094,9 @@ public final class AlertsUpdateSubscriptionLevelStateToResolveSamples {
manager
.alerts()
.updateSubscriptionLevelStateToResolveWithResponse(
- "westeurope", "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a", Context.NONE);
+ "westeurope",
+ "2518298467986649999_4d25bfef-2d77-4a08-adc0-3e35715cc92a",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1126,8 +1104,6 @@ public final class AlertsUpdateSubscriptionLevelStateToResolveSamples {
### AlertsSuppressionRules_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for AlertsSuppressionRules Delete. */
public final class AlertsSuppressionRulesDeleteSamples {
/*
@@ -1140,7 +1116,7 @@ public final class AlertsSuppressionRulesDeleteSamples {
*/
public static void deleteSuppressionRuleDataForASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alertsSuppressionRules().deleteWithResponse("dismissIpAnomalyAlerts", Context.NONE);
+ manager.alertsSuppressionRules().deleteWithResponse("dismissIpAnomalyAlerts", com.azure.core.util.Context.NONE);
}
}
```
@@ -1148,8 +1124,6 @@ public final class AlertsSuppressionRulesDeleteSamples {
### AlertsSuppressionRules_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for AlertsSuppressionRules Get. */
public final class AlertsSuppressionRulesGetSamples {
/*
@@ -1162,7 +1136,7 @@ public final class AlertsSuppressionRulesGetSamples {
*/
public static void getSuppressionAlertRuleForSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alertsSuppressionRules().getWithResponse("dismissIpAnomalyAlerts", Context.NONE);
+ manager.alertsSuppressionRules().getWithResponse("dismissIpAnomalyAlerts", com.azure.core.util.Context.NONE);
}
}
```
@@ -1170,8 +1144,6 @@ public final class AlertsSuppressionRulesGetSamples {
### AlertsSuppressionRules_List
```java
-import com.azure.core.util.Context;
-
/** Samples for AlertsSuppressionRules List. */
public final class AlertsSuppressionRulesListSamples {
/*
@@ -1183,7 +1155,7 @@ public final class AlertsSuppressionRulesListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSuppressionRulesForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alertsSuppressionRules().list(null, Context.NONE);
+ manager.alertsSuppressionRules().list(null, com.azure.core.util.Context.NONE);
}
/*
@@ -1196,7 +1168,7 @@ public final class AlertsSuppressionRulesListSamples {
*/
public static void getSuppressionAlertRuleForSubscriptionFilteredByAlertType(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.alertsSuppressionRules().list("IpAnomaly", Context.NONE);
+ manager.alertsSuppressionRules().list("IpAnomaly", com.azure.core.util.Context.NONE);
}
}
```
@@ -1205,7 +1177,6 @@ public final class AlertsSuppressionRulesListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleInner;
import com.azure.resourcemanager.security.models.RuleState;
@@ -1258,7 +1229,7 @@ public final class AlertsSuppressionRulesUpdateSamples {
new ScopeElement()
.withField("entities.process.commandline")
.withAdditionalProperties(mapOf("contains", "POWERSHELL.EXE"))))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -1277,7 +1248,6 @@ public final class AlertsSuppressionRulesUpdateSamples {
### AllowedConnections_Get
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.ConnectionType;
/** Samples for AllowedConnections Get. */
@@ -1293,7 +1263,7 @@ public final class AllowedConnectionsGetSamples {
public static void getAllowedConnections(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.allowedConnections()
- .getWithResponse("myResourceGroup", "centralus", ConnectionType.INTERNAL, Context.NONE);
+ .getWithResponse("myResourceGroup", "centralus", ConnectionType.INTERNAL, com.azure.core.util.Context.NONE);
}
}
```
@@ -1301,8 +1271,6 @@ public final class AllowedConnectionsGetSamples {
### AllowedConnections_List
```java
-import com.azure.core.util.Context;
-
/** Samples for AllowedConnections List. */
public final class AllowedConnectionsListSamples {
/*
@@ -1315,7 +1283,7 @@ public final class AllowedConnectionsListSamples {
*/
public static void getAllowedConnectionsOnASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.allowedConnections().list(Context.NONE);
+ manager.allowedConnections().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -1323,8 +1291,6 @@ public final class AllowedConnectionsListSamples {
### AllowedConnections_ListByHomeRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for AllowedConnections ListByHomeRegion. */
public final class AllowedConnectionsListByHomeRegionSamples {
/*
@@ -1337,7 +1303,7 @@ public final class AllowedConnectionsListByHomeRegionSamples {
*/
public static void getAllowedConnectionsOnASubscriptionFromSecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.allowedConnections().listByHomeRegion("centralus", Context.NONE);
+ manager.allowedConnections().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
@@ -1345,8 +1311,6 @@ public final class AllowedConnectionsListByHomeRegionSamples {
### ApiCollection_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for ApiCollection Get. */
public final class ApiCollectionGetSamples {
/*
@@ -1359,7 +1323,7 @@ public final class ApiCollectionGetSamples {
*/
public static void getsAnAzureAPIManagementAPIIfItHasBeenOnboardedToDefenderForAPIs(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections().getWithResponse("rg1", "apimService1", "echo-api", Context.NONE);
+ manager.apiCollections().getWithResponse("rg1", "apimService1", "echo-api", com.azure.core.util.Context.NONE);
}
}
```
@@ -1367,8 +1331,6 @@ public final class ApiCollectionGetSamples {
### ApiCollection_List
```java
-import com.azure.core.util.Context;
-
/** Samples for ApiCollection List. */
public final class ApiCollectionListSamples {
/*
@@ -1381,7 +1343,7 @@ public final class ApiCollectionListSamples {
*/
public static void getsAListOfAzureAPIManagementAPIsThatHaveBeenOnboardedToDefenderForAPIs(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollections().list("rg1", "apimService1", Context.NONE);
+ manager.apiCollections().list("rg1", "apimService1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1389,8 +1351,6 @@ public final class ApiCollectionListSamples {
### ApiCollectionOffboarding_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for ApiCollectionOffboarding Delete. */
public final class ApiCollectionOffboardingDeleteSamples {
/*
@@ -1403,7 +1363,9 @@ public final class ApiCollectionOffboardingDeleteSamples {
*/
public static void deleteASecurityRecommendationTaskOnAResource(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollectionOffboardings().deleteWithResponse("rg1", "apimService1", "echo-api", Context.NONE);
+ manager
+ .apiCollectionOffboardings()
+ .deleteWithResponse("rg1", "apimService1", "echo-api", com.azure.core.util.Context.NONE);
}
}
```
@@ -1411,8 +1373,6 @@ public final class ApiCollectionOffboardingDeleteSamples {
### ApiCollectionOnboarding_Create
```java
-import com.azure.core.util.Context;
-
/** Samples for ApiCollectionOnboarding Create. */
public final class ApiCollectionOnboardingCreateSamples {
/*
@@ -1425,7 +1385,9 @@ public final class ApiCollectionOnboardingCreateSamples {
*/
public static void onboardAnAzureAPIManagementAPIToDefenderForAPIs(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.apiCollectionOnboardings().createWithResponse("rg1", "apimService1", "echo-api", Context.NONE);
+ manager
+ .apiCollectionOnboardings()
+ .createWithResponse("rg1", "apimService1", "echo-api", com.azure.core.util.Context.NONE);
}
}
```
@@ -1474,8 +1436,6 @@ public final class ApplicationOperationCreateOrUpdateSamples {
### ApplicationOperation_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for ApplicationOperation Delete. */
public final class ApplicationOperationDeleteSamples {
/*
@@ -1487,7 +1447,9 @@ public final class ApplicationOperationDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteSecurityApplication(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.applicationOperations().deleteWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ manager
+ .applicationOperations()
+ .deleteWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
}
```
@@ -1495,8 +1457,6 @@ public final class ApplicationOperationDeleteSamples {
### ApplicationOperation_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for ApplicationOperation Get. */
public final class ApplicationOperationGetSamples {
/*
@@ -1509,7 +1469,9 @@ public final class ApplicationOperationGetSamples {
*/
public static void getSecurityApplicationBySpecificApplicationId(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.applicationOperations().getWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ manager
+ .applicationOperations()
+ .getWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", com.azure.core.util.Context.NONE);
}
}
```
@@ -1517,8 +1479,6 @@ public final class ApplicationOperationGetSamples {
### Applications_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Applications List. */
public final class ApplicationsListSamples {
/*
@@ -1531,7 +1491,7 @@ public final class ApplicationsListSamples {
*/
public static void listApplicationsSecurityBySubscriptionLevelScope(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.applications().list(Context.NONE);
+ manager.applications().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -1570,8 +1530,6 @@ public final class AssessmentsCreateOrUpdateSamples {
### Assessments_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for Assessments Delete. */
public final class AssessmentsDeleteSamples {
/*
@@ -1589,7 +1547,7 @@ public final class AssessmentsDeleteSamples {
.deleteByResourceGroupWithResponse(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
"8bb8be0a-6010-4789-812f-e4d661c4ed0e",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1597,7 +1555,6 @@ public final class AssessmentsDeleteSamples {
### Assessments_Get
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.ExpandEnum;
/** Samples for Assessments Get. */
@@ -1618,7 +1575,7 @@ public final class AssessmentsGetSamples {
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
"21300918-b2e3-0346-785f-c77ff57d243b",
ExpandEnum.LINKS,
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
@@ -1637,7 +1594,7 @@ public final class AssessmentsGetSamples {
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
"21300918-b2e3-0346-785f-c77ff57d243b",
null,
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1645,8 +1602,6 @@ public final class AssessmentsGetSamples {
### Assessments_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Assessments List. */
public final class AssessmentsListSamples {
/*
@@ -1658,7 +1613,9 @@ public final class AssessmentsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecurityAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessments().list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ manager
+ .assessments()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
}
```
@@ -1711,8 +1668,6 @@ public final class AssessmentsMetadataCreateInSubscriptionSamples {
### AssessmentsMetadata_DeleteInSubscription
```java
-import com.azure.core.util.Context;
-
/** Samples for AssessmentsMetadata DeleteInSubscription. */
public final class AssessmentsMetadataDeleteInSubscriptionSamples {
/*
@@ -1727,7 +1682,7 @@ public final class AssessmentsMetadataDeleteInSubscriptionSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.assessmentsMetadatas()
- .deleteInSubscriptionWithResponse("ca039e75-a276-4175-aebc-bcd41e4b14b7", Context.NONE);
+ .deleteInSubscriptionWithResponse("ca039e75-a276-4175-aebc-bcd41e4b14b7", com.azure.core.util.Context.NONE);
}
}
```
@@ -1735,8 +1690,6 @@ public final class AssessmentsMetadataDeleteInSubscriptionSamples {
### AssessmentsMetadata_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for AssessmentsMetadata Get. */
public final class AssessmentsMetadataGetSamples {
/*
@@ -1748,7 +1701,9 @@ public final class AssessmentsMetadataGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityAssessmentMetadata(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas().getWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", Context.NONE);
+ manager
+ .assessmentsMetadatas()
+ .getWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", com.azure.core.util.Context.NONE);
}
}
```
@@ -1756,8 +1711,6 @@ public final class AssessmentsMetadataGetSamples {
### AssessmentsMetadata_GetInSubscription
```java
-import com.azure.core.util.Context;
-
/** Samples for AssessmentsMetadata GetInSubscription. */
public final class AssessmentsMetadataGetInSubscriptionSamples {
/*
@@ -1772,7 +1725,7 @@ public final class AssessmentsMetadataGetInSubscriptionSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.assessmentsMetadatas()
- .getInSubscriptionWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", Context.NONE);
+ .getInSubscriptionWithResponse("21300918-b2e3-0346-785f-c77ff57d243b", com.azure.core.util.Context.NONE);
}
}
```
@@ -1780,8 +1733,6 @@ public final class AssessmentsMetadataGetInSubscriptionSamples {
### AssessmentsMetadata_List
```java
-import com.azure.core.util.Context;
-
/** Samples for AssessmentsMetadata List. */
public final class AssessmentsMetadataListSamples {
/*
@@ -1793,7 +1744,7 @@ public final class AssessmentsMetadataListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecurityAssessmentMetadata(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas().list(Context.NONE);
+ manager.assessmentsMetadatas().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -1801,8 +1752,6 @@ public final class AssessmentsMetadataListSamples {
### AssessmentsMetadata_ListBySubscription
```java
-import com.azure.core.util.Context;
-
/** Samples for AssessmentsMetadata ListBySubscription. */
public final class AssessmentsMetadataListBySubscriptionSamples {
/*
@@ -1815,7 +1764,7 @@ public final class AssessmentsMetadataListBySubscriptionSamples {
*/
public static void listSecurityAssessmentMetadataForSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.assessmentsMetadatas().listBySubscription(Context.NONE);
+ manager.assessmentsMetadatas().listBySubscription(com.azure.core.util.Context.NONE);
}
}
```
@@ -1845,8 +1794,6 @@ public final class AutoProvisioningSettingsCreateSamples {
### AutoProvisioningSettings_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for AutoProvisioningSettings Get. */
public final class AutoProvisioningSettingsGetSamples {
/*
@@ -1859,7 +1806,7 @@ public final class AutoProvisioningSettingsGetSamples {
*/
public static void getAnAutoProvisioningSettingForSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.autoProvisioningSettings().getWithResponse("default", Context.NONE);
+ manager.autoProvisioningSettings().getWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -1867,8 +1814,6 @@ public final class AutoProvisioningSettingsGetSamples {
### AutoProvisioningSettings_List
```java
-import com.azure.core.util.Context;
-
/** Samples for AutoProvisioningSettings List. */
public final class AutoProvisioningSettingsListSamples {
/*
@@ -1881,7 +1826,7 @@ public final class AutoProvisioningSettingsListSamples {
*/
public static void getAutoProvisioningSettingsForSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.autoProvisioningSettings().list(Context.NONE);
+ manager.autoProvisioningSettings().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -1897,8 +1842,6 @@ import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
import com.azure.resourcemanager.security.models.EventSource;
import com.azure.resourcemanager.security.models.Operator;
import com.azure.resourcemanager.security.models.PropertyType;
-import java.io.IOException;
-import java.net.URL;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -1914,7 +1857,7 @@ public final class AutomationsCreateOrUpdateSamples {
* @param manager Entry point to SecurityManager.
*/
public static void createOrUpdateASecurityAutomationForAllAssessmentsIncludingAllSeverities(
- com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
+ com.azure.resourcemanager.security.SecurityManager manager) {
manager
.automations()
.define("exampleAutomation")
@@ -1942,7 +1885,7 @@ public final class AutomationsCreateOrUpdateSamples {
new AutomationActionLogicApp()
.withLogicAppResourceId(
"/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
- .withUri(new URL("https://exampleTriggerUri1.com"))))
+ .withUri("https://exampleTriggerUri1.com")))
.create();
}
@@ -1954,8 +1897,7 @@ public final class AutomationsCreateOrUpdateSamples {
*
* @param manager Entry point to SecurityManager.
*/
- public static void disableOrEnableASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager)
- throws IOException {
+ public static void disableOrEnableASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.automations()
.define("exampleAutomation")
@@ -1999,7 +1941,7 @@ public final class AutomationsCreateOrUpdateSamples {
new AutomationActionLogicApp()
.withLogicAppResourceId(
"/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
- .withUri(new URL("https://exampleTriggerUri1.com"))))
+ .withUri("https://exampleTriggerUri1.com")))
.create();
}
@@ -2012,7 +1954,7 @@ public final class AutomationsCreateOrUpdateSamples {
* @param manager Entry point to SecurityManager.
*/
public static void createOrUpdateASecurityAutomationForAllHighSeverityAssessments(
- com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
+ com.azure.resourcemanager.security.SecurityManager manager) {
manager
.automations()
.define("exampleAutomation")
@@ -2056,7 +1998,7 @@ public final class AutomationsCreateOrUpdateSamples {
new AutomationActionLogicApp()
.withLogicAppResourceId(
"/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
- .withUri(new URL("https://exampleTriggerUri1.com"))))
+ .withUri("https://exampleTriggerUri1.com")))
.create();
}
@@ -2076,8 +2018,6 @@ public final class AutomationsCreateOrUpdateSamples {
### Automations_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for Automations Delete. */
public final class AutomationsDeleteSamples {
/*
@@ -2089,7 +2029,9 @@ public final class AutomationsDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().deleteByResourceGroupWithResponse("myRg", "myAutomationName", Context.NONE);
+ manager
+ .automations()
+ .deleteByResourceGroupWithResponse("myRg", "myAutomationName", com.azure.core.util.Context.NONE);
}
}
```
@@ -2097,8 +2039,6 @@ public final class AutomationsDeleteSamples {
### Automations_GetByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for Automations GetByResourceGroup. */
public final class AutomationsGetByResourceGroupSamples {
/*
@@ -2110,7 +2050,10 @@ public final class AutomationsGetByResourceGroupSamples {
* @param manager Entry point to SecurityManager.
*/
public static void retrieveASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().getByResourceGroupWithResponse("exampleResourceGroup", "exampleAutomation", Context.NONE);
+ manager
+ .automations()
+ .getByResourceGroupWithResponse(
+ "exampleResourceGroup", "exampleAutomation", com.azure.core.util.Context.NONE);
}
}
```
@@ -2118,8 +2061,6 @@ public final class AutomationsGetByResourceGroupSamples {
### Automations_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Automations List. */
public final class AutomationsListSamples {
/*
@@ -2132,7 +2073,7 @@ public final class AutomationsListSamples {
*/
public static void listAllSecurityAutomationsOfASpecifiedSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().list(Context.NONE);
+ manager.automations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -2140,8 +2081,6 @@ public final class AutomationsListSamples {
### Automations_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for Automations ListByResourceGroup. */
public final class AutomationsListByResourceGroupSamples {
/*
@@ -2154,7 +2093,7 @@ public final class AutomationsListByResourceGroupSamples {
*/
public static void listAllSecurityAutomationsOfASpecifiedResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().listByResourceGroup("exampleResourceGroup", Context.NONE);
+ manager.automations().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
@@ -2162,7 +2101,6 @@ public final class AutomationsListByResourceGroupSamples {
### Automations_Validate
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.AutomationInner;
import com.azure.resourcemanager.security.models.AutomationActionLogicApp;
import com.azure.resourcemanager.security.models.AutomationRuleSet;
@@ -2172,8 +2110,6 @@ import com.azure.resourcemanager.security.models.AutomationTriggeringRule;
import com.azure.resourcemanager.security.models.EventSource;
import com.azure.resourcemanager.security.models.Operator;
import com.azure.resourcemanager.security.models.PropertyType;
-import java.io.IOException;
-import java.net.URL;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -2189,7 +2125,7 @@ public final class AutomationsValidateSamples {
* @param manager Entry point to SecurityManager.
*/
public static void validateTheSecurityAutomationModelBeforeCreateOrUpdate(
- com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
+ com.azure.resourcemanager.security.SecurityManager manager) {
manager
.automations()
.validateWithResponse(
@@ -2235,8 +2171,8 @@ public final class AutomationsValidateSamples {
new AutomationActionLogicApp()
.withLogicAppResourceId(
"/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
- .withUri(new URL("https://exampleTriggerUri1.com")))),
- Context.NONE);
+ .withUri("https://exampleTriggerUri1.com"))),
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -2255,8 +2191,6 @@ public final class AutomationsValidateSamples {
### ComplianceResults_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for ComplianceResults Get. */
public final class ComplianceResultsGetSamples {
/*
@@ -2271,7 +2205,9 @@ public final class ComplianceResultsGetSamples {
manager
.complianceResults()
.getWithResponse(
- "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "DesignateMoreThanOneOwner", Context.NONE);
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "DesignateMoreThanOneOwner",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2279,8 +2215,6 @@ public final class ComplianceResultsGetSamples {
### ComplianceResults_List
```java
-import com.azure.core.util.Context;
-
/** Samples for ComplianceResults List. */
public final class ComplianceResultsListSamples {
/*
@@ -2292,7 +2226,9 @@ public final class ComplianceResultsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getComplianceResultsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.complianceResults().list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ manager
+ .complianceResults()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
}
```
@@ -2300,8 +2236,6 @@ public final class ComplianceResultsListSamples {
### Compliances_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for Compliances Get. */
public final class CompliancesGetSamples {
/*
@@ -2315,7 +2249,8 @@ public final class CompliancesGetSamples {
public static void getSecurityComplianceDataForADay(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.compliances()
- .getWithResponse("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "2018-01-01Z", Context.NONE);
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", "2018-01-01Z", com.azure.core.util.Context.NONE);
}
}
```
@@ -2323,8 +2258,6 @@ public final class CompliancesGetSamples {
### Compliances_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Compliances List. */
public final class CompliancesListSamples {
/*
@@ -2336,7 +2269,9 @@ public final class CompliancesListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityComplianceDataOverTime(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.compliances().list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
+ manager
+ .compliances()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
}
```
@@ -2450,8 +2385,6 @@ public final class ConnectorsCreateOrUpdateSamples {
### Connectors_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for Connectors Delete. */
public final class ConnectorsDeleteSamples {
/*
@@ -2464,7 +2397,7 @@ public final class ConnectorsDeleteSamples {
*/
public static void deleteACloudAccountConnectorFromASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.connectors().deleteWithResponse("aws_dev1", Context.NONE);
+ manager.connectors().deleteWithResponse("aws_dev1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2472,8 +2405,6 @@ public final class ConnectorsDeleteSamples {
### Connectors_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for Connectors Get. */
public final class ConnectorsGetSamples {
/*
@@ -2486,7 +2417,7 @@ public final class ConnectorsGetSamples {
*/
public static void detailsOfASpecificCloudAccountConnector(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.connectors().getWithResponse("aws_dev1", Context.NONE);
+ manager.connectors().getWithResponse("aws_dev1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2494,8 +2425,6 @@ public final class ConnectorsGetSamples {
### Connectors_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Connectors List. */
public final class ConnectorsListSamples {
/*
@@ -2508,7 +2437,7 @@ public final class ConnectorsListSamples {
*/
public static void getAllCloudAccountsConnectorsOfASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.connectors().list(Context.NONE);
+ manager.connectors().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -2549,8 +2478,6 @@ public final class CustomAssessmentAutomationsCreateSamples {
### CustomAssessmentAutomations_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomAssessmentAutomations Delete. */
public final class CustomAssessmentAutomationsDeleteSamples {
/*
@@ -2564,7 +2491,8 @@ public final class CustomAssessmentAutomationsDeleteSamples {
public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.customAssessmentAutomations()
- .deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
+ .deleteByResourceGroupWithResponse(
+ "TestResourceGroup", "MyCustomAssessmentAutomation", com.azure.core.util.Context.NONE);
}
}
```
@@ -2572,8 +2500,6 @@ public final class CustomAssessmentAutomationsDeleteSamples {
### CustomAssessmentAutomations_GetByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomAssessmentAutomations GetByResourceGroup. */
public final class CustomAssessmentAutomationsGetByResourceGroupSamples {
/*
@@ -2587,7 +2513,8 @@ public final class CustomAssessmentAutomationsGetByResourceGroupSamples {
public static void getACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.customAssessmentAutomations()
- .getByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
+ .getByResourceGroupWithResponse(
+ "TestResourceGroup", "MyCustomAssessmentAutomation", com.azure.core.util.Context.NONE);
}
}
```
@@ -2595,8 +2522,6 @@ public final class CustomAssessmentAutomationsGetByResourceGroupSamples {
### CustomAssessmentAutomations_List
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomAssessmentAutomations List. */
public final class CustomAssessmentAutomationsListSamples {
/*
@@ -2609,7 +2534,7 @@ public final class CustomAssessmentAutomationsListSamples {
*/
public static void listCustomAssessmentAutomationsInASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customAssessmentAutomations().list(Context.NONE);
+ manager.customAssessmentAutomations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -2617,8 +2542,6 @@ public final class CustomAssessmentAutomationsListSamples {
### CustomAssessmentAutomations_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomAssessmentAutomations ListByResourceGroup. */
public final class CustomAssessmentAutomationsListByResourceGroupSamples {
/*
@@ -2631,7 +2554,9 @@ public final class CustomAssessmentAutomationsListByResourceGroupSamples {
*/
public static void listCustomAssessmentAutomationsInASubscriptionAndAResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customAssessmentAutomations().listByResourceGroup("TestResourceGroup", Context.NONE);
+ manager
+ .customAssessmentAutomations()
+ .listByResourceGroup("TestResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
@@ -2663,8 +2588,6 @@ public final class CustomEntityStoreAssignmentsCreateSamples {
### CustomEntityStoreAssignments_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomEntityStoreAssignments Delete. */
public final class CustomEntityStoreAssignmentsDeleteSamples {
/*
@@ -2679,7 +2602,7 @@ public final class CustomEntityStoreAssignmentsDeleteSamples {
manager
.customEntityStoreAssignments()
.deleteByResourceGroupWithResponse(
- "TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
+ "TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", com.azure.core.util.Context.NONE);
}
}
```
@@ -2687,8 +2610,6 @@ public final class CustomEntityStoreAssignmentsDeleteSamples {
### CustomEntityStoreAssignments_GetByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomEntityStoreAssignments GetByResourceGroup. */
public final class CustomEntityStoreAssignmentsGetByResourceGroupSamples {
/*
@@ -2702,7 +2623,8 @@ public final class CustomEntityStoreAssignmentsGetByResourceGroupSamples {
public static void getACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.customEntityStoreAssignments()
- .getByResourceGroupWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
+ .getByResourceGroupWithResponse(
+ "TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", com.azure.core.util.Context.NONE);
}
}
```
@@ -2710,8 +2632,6 @@ public final class CustomEntityStoreAssignmentsGetByResourceGroupSamples {
### CustomEntityStoreAssignments_List
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomEntityStoreAssignments List. */
public final class CustomEntityStoreAssignmentsListSamples {
/*
@@ -2724,7 +2644,7 @@ public final class CustomEntityStoreAssignmentsListSamples {
*/
public static void listCustomEntityStoreAssignmentsInASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customEntityStoreAssignments().list(Context.NONE);
+ manager.customEntityStoreAssignments().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -2732,8 +2652,6 @@ public final class CustomEntityStoreAssignmentsListSamples {
### CustomEntityStoreAssignments_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for CustomEntityStoreAssignments ListByResourceGroup. */
public final class CustomEntityStoreAssignmentsListByResourceGroupSamples {
/*
@@ -2746,7 +2664,9 @@ public final class CustomEntityStoreAssignmentsListByResourceGroupSamples {
*/
public static void listCustomEntityStoreAssignmentsInASubscriptionAndAResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.customEntityStoreAssignments().listByResourceGroup("TestResourceGroup", Context.NONE);
+ manager
+ .customEntityStoreAssignments()
+ .listByResourceGroup("TestResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
@@ -2791,8 +2711,6 @@ public final class DeviceSecurityGroupsCreateOrUpdateSamples {
### DeviceSecurityGroups_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for DeviceSecurityGroups Delete. */
public final class DeviceSecurityGroupsDeleteSamples {
/*
@@ -2810,7 +2728,7 @@ public final class DeviceSecurityGroupsDeleteSamples {
.deleteByResourceGroupWithResponse(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
"samplesecuritygroup",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2818,8 +2736,6 @@ public final class DeviceSecurityGroupsDeleteSamples {
### DeviceSecurityGroups_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for DeviceSecurityGroups Get. */
public final class DeviceSecurityGroupsGetSamples {
/*
@@ -2837,7 +2753,7 @@ public final class DeviceSecurityGroupsGetSamples {
.getWithResponse(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
"samplesecuritygroup",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2845,8 +2761,6 @@ public final class DeviceSecurityGroupsGetSamples {
### DeviceSecurityGroups_List
```java
-import com.azure.core.util.Context;
-
/** Samples for DeviceSecurityGroups List. */
public final class DeviceSecurityGroupsListSamples {
/*
@@ -2863,7 +2777,7 @@ public final class DeviceSecurityGroupsListSamples {
.deviceSecurityGroups()
.list(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2871,8 +2785,6 @@ public final class DeviceSecurityGroupsListSamples {
### DiscoveredSecuritySolutions_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for DiscoveredSecuritySolutions Get. */
public final class DiscoveredSecuritySolutionsGetSamples {
/*
@@ -2885,7 +2797,9 @@ public final class DiscoveredSecuritySolutionsGetSamples {
*/
public static void getDiscoveredSecuritySolutionFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.discoveredSecuritySolutions().getWithResponse("myRg2", "centralus", "paloalto7", Context.NONE);
+ manager
+ .discoveredSecuritySolutions()
+ .getWithResponse("myRg2", "centralus", "paloalto7", com.azure.core.util.Context.NONE);
}
}
```
@@ -2893,8 +2807,6 @@ public final class DiscoveredSecuritySolutionsGetSamples {
### DiscoveredSecuritySolutions_List
```java
-import com.azure.core.util.Context;
-
/** Samples for DiscoveredSecuritySolutions List. */
public final class DiscoveredSecuritySolutionsListSamples {
/*
@@ -2906,7 +2818,7 @@ public final class DiscoveredSecuritySolutionsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getDiscoveredSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.discoveredSecuritySolutions().list(Context.NONE);
+ manager.discoveredSecuritySolutions().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -2914,8 +2826,6 @@ public final class DiscoveredSecuritySolutionsListSamples {
### DiscoveredSecuritySolutions_ListByHomeRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for DiscoveredSecuritySolutions ListByHomeRegion. */
public final class DiscoveredSecuritySolutionsListByHomeRegionSamples {
/*
@@ -2928,7 +2838,7 @@ public final class DiscoveredSecuritySolutionsListByHomeRegionSamples {
*/
public static void getDiscoveredSecuritySolutionsFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.discoveredSecuritySolutions().listByHomeRegion("centralus", Context.NONE);
+ manager.discoveredSecuritySolutions().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
@@ -2936,8 +2846,6 @@ public final class DiscoveredSecuritySolutionsListByHomeRegionSamples {
### ExternalSecuritySolutions_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for ExternalSecuritySolutions Get. */
public final class ExternalSecuritySolutionsGetSamples {
/*
@@ -2955,7 +2863,7 @@ public final class ExternalSecuritySolutionsGetSamples {
"defaultresourcegroup-eus",
"centralus",
"aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2963,8 +2871,6 @@ public final class ExternalSecuritySolutionsGetSamples {
### ExternalSecuritySolutions_List
```java
-import com.azure.core.util.Context;
-
/** Samples for ExternalSecuritySolutions List. */
public final class ExternalSecuritySolutionsListSamples {
/*
@@ -2977,7 +2883,7 @@ public final class ExternalSecuritySolutionsListSamples {
*/
public static void getExternalSecuritySolutionsOnASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.externalSecuritySolutions().list(Context.NONE);
+ manager.externalSecuritySolutions().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -2985,8 +2891,6 @@ public final class ExternalSecuritySolutionsListSamples {
### ExternalSecuritySolutions_ListByHomeRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for ExternalSecuritySolutions ListByHomeRegion. */
public final class ExternalSecuritySolutionsListByHomeRegionSamples {
/*
@@ -2999,7 +2903,7 @@ public final class ExternalSecuritySolutionsListByHomeRegionSamples {
*/
public static void getExternalSecuritySolutionsOnASubscriptionFromSecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.externalSecuritySolutions().listByHomeRegion("centralus", Context.NONE);
+ manager.externalSecuritySolutions().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
@@ -3053,8 +2957,6 @@ public final class GovernanceAssignmentsCreateOrUpdateSamples {
### GovernanceAssignments_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for GovernanceAssignments Delete. */
public final class GovernanceAssignmentsDeleteSamples {
/*
@@ -3072,7 +2974,7 @@ public final class GovernanceAssignmentsDeleteSamples {
"subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/resourceGroups/compute_servers/providers/Microsoft.Compute/virtualMachines/win2012",
"6b9421dd-5555-2251-9b3d-2be58e2f82cd",
"6634ff9f-127b-4bf2-8e6e-b1737f5e789c",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3080,19 +2982,17 @@ public final class GovernanceAssignmentsDeleteSamples {
### GovernanceAssignments_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for GovernanceAssignments Get. */
public final class GovernanceAssignmentsGetSamples {
/*
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceAssignments/GetGovernanceAssignment_example.json
*/
/**
- * Sample code: Get security governanceAssignment by specific governanceAssignmentKey.
+ * Sample code: Get governanceAssignment by specific governanceAssignmentKey.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getSecurityGovernanceAssignmentBySpecificGovernanceAssignmentKey(
+ public static void getGovernanceAssignmentBySpecificGovernanceAssignmentKey(
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.governanceAssignments()
@@ -3100,7 +3000,7 @@ public final class GovernanceAssignmentsGetSamples {
"subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/resourceGroups/compute_servers/providers/Microsoft.Compute/virtualMachines/win2012",
"6b9421dd-5555-2251-9b3d-2be58e2f82cd",
"6634ff9f-127b-4bf2-8e6e-b1737f5e789c",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3108,52 +3008,28 @@ public final class GovernanceAssignmentsGetSamples {
### GovernanceAssignments_List
```java
-import com.azure.core.util.Context;
-
/** Samples for GovernanceAssignments List. */
public final class GovernanceAssignmentsListSamples {
/*
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceAssignments/ListGovernanceAssignments_example.json
*/
/**
- * Sample code: List security governanceAssignments.
+ * Sample code: List governance assignments.
*
* @param manager Entry point to SecurityManager.
*/
- public static void listSecurityGovernanceAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
+ public static void listGovernanceAssignments(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.governanceAssignments()
.list(
"subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd",
"6b9421dd-5555-2251-9b3d-2be58e2f82cd",
- Context.NONE);
- }
-}
-```
-
-### GovernanceRule_List
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for GovernanceRule List. */
-public final class GovernanceRuleListSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListBySubscriptionGovernanceRules_example.json
- */
- /**
- * Sample code: List security governanceRules by subscription level scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityGovernanceRulesBySubscriptionLevelScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRules().list(Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
-### GovernanceRulesOperation_CreateOrUpdate
+### GovernanceRules_CreateOrUpdate
```java
import com.azure.core.management.serializer.SerializerFactory;
@@ -3166,23 +3042,112 @@ import com.azure.resourcemanager.security.models.GovernanceRuleType;
import java.io.IOException;
import java.util.Arrays;
-/** Samples for GovernanceRulesOperation CreateOrUpdate. */
-public final class GovernanceRulesOperationCreateOrUpdateSamples {
+/** Samples for GovernanceRules CreateOrUpdate. */
+public final class GovernanceRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PutManagementGroupGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Create or update governance rule over management group scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateGovernanceRuleOverManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
+ manager
+ .governanceRules()
+ .define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
+ .withExistingScope("providers/Microsoft.Management/managementGroups/contoso")
+ .withDisplayName("Management group rule")
+ .withDescription("A rule for a management group")
+ .withRemediationTimeframe("7.00:00:00")
+ .withIsGracePeriod(true)
+ .withRulePriority(200)
+ .withIsDisabled(false)
+ .withRuleType(GovernanceRuleType.INTEGRATED)
+ .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
+ .withExcludedScopes(Arrays.asList("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23"))
+ .withConditionSets(
+ Arrays
+ .asList(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"conditions\":[{\"operator\":\"In\",\"property\":\"$.AssessmentKey\",\"value\":\"[\\\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\\\","
+ + " \\\"fe83f80b-073d-4ccf-93d9-6797eb870201\\\"]\"}]}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withOwnerSource(
+ new GovernanceRuleOwnerSource()
+ .withType(GovernanceRuleOwnerSourceType.MANUALLY)
+ .withValue("user@contoso.com"))
+ .withGovernanceEmailNotification(
+ new GovernanceRuleEmailNotification()
+ .withDisableManagerEmailNotification(true)
+ .withDisableOwnerEmailNotification(false))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PutSecurityConnectorGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Create or update governance rule over security connector scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void createOrUpdateGovernanceRuleOverSecurityConnectorScope(
+ com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
+ manager
+ .governanceRules()
+ .define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
+ .withExistingScope(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector")
+ .withDisplayName("GCP Admin's rule")
+ .withDescription("A rule on critical GCP recommendations")
+ .withRemediationTimeframe("7.00:00:00")
+ .withIsGracePeriod(true)
+ .withRulePriority(200)
+ .withIsDisabled(false)
+ .withRuleType(GovernanceRuleType.INTEGRATED)
+ .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
+ .withConditionSets(
+ Arrays
+ .asList(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"conditions\":[{\"operator\":\"In\",\"property\":\"$.AssessmentKey\",\"value\":\"[\\\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\\\","
+ + " \\\"fe83f80b-073d-4ccf-93d9-6797eb870201\\\"]\"}]}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .withOwnerSource(
+ new GovernanceRuleOwnerSource()
+ .withType(GovernanceRuleOwnerSourceType.MANUALLY)
+ .withValue("user@contoso.com"))
+ .withGovernanceEmailNotification(
+ new GovernanceRuleEmailNotification()
+ .withDisableManagerEmailNotification(true)
+ .withDisableOwnerEmailNotification(false))
+ .create();
+ }
+
/*
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PutGovernanceRule_example.json
*/
/**
- * Sample code: Create Governance rule.
+ * Sample code: Create or update governance rule over subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void createGovernanceRule(com.azure.resourcemanager.security.SecurityManager manager)
- throws IOException {
+ public static void createOrUpdateGovernanceRuleOverSubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) throws IOException {
manager
- .governanceRulesOperations()
+ .governanceRules()
.define("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
+ .withExistingScope("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23")
.withDisplayName("Admin's rule")
- .withDescription("A rule on critical recommendations")
+ .withDescription("A rule for critical recommendations")
.withRemediationTimeframe("7.00:00:00")
.withIsGracePeriod(true)
.withRulePriority(200)
@@ -3212,94 +3177,353 @@ public final class GovernanceRulesOperationCreateOrUpdateSamples {
}
```
-### GovernanceRulesOperation_Delete
+### GovernanceRules_Delete
```java
-import com.azure.core.util.Context;
+/** Samples for GovernanceRules Delete. */
+public final class GovernanceRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/DeleteManagementGroupGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Delete a Governance rule over management group scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void deleteAGovernanceRuleOverManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .delete(
+ "providers/Microsoft.Management/managementGroups/contoso",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
+ }
-/** Samples for GovernanceRulesOperation Delete. */
-public final class GovernanceRulesOperationDeleteSamples {
/*
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/DeleteGovernanceRule_example.json
*/
/**
- * Sample code: Delete security GovernanceRule.
+ * Sample code: Delete a Governance rule over subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void deleteSecurityGovernanceRule(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRulesOperations().deleteWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ public static void deleteAGovernanceRuleOverSubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .delete(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### GovernanceRulesOperation_Get
-
-```java
-import com.azure.core.util.Context;
-/** Samples for GovernanceRulesOperation Get. */
-public final class GovernanceRulesOperationGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetGovernanceRule_example.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/DeleteSecurityConnectorGovernanceRule_example.json
*/
/**
- * Sample code: Get security governanceRules by specific governanceRuleId.
+ * Sample code: Delete a Governance rule over security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void getSecurityGovernanceRulesBySpecificGovernanceRuleId(
+ public static void deleteAGovernanceRuleOverSecurityConnectorScope(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.governanceRulesOperations().getWithResponse("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ manager
+ .governanceRules()
+ .delete(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
}
}
```
-### GovernanceRulesOperation_RuleIdExecuteSingleSecurityConnector
+### GovernanceRules_Execute
```java
-import com.azure.core.util.Context;
-
-/** Samples for GovernanceRulesOperation RuleIdExecuteSingleSecurityConnector. */
-public final class GovernanceRulesOperationRuleIdExecuteSingleSecurityConnectorSamples {
+/** Samples for GovernanceRules Execute. */
+public final class GovernanceRulesExecuteSamples {
/*
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PostSecurityConnectorGovernanceRule_example.json
*/
/**
- * Sample code: Execute Governance rule.
+ * Sample code: Execute governance rule over security connector scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void executeGovernanceRule(com.azure.resourcemanager.security.SecurityManager manager) {
+ public static void executeGovernanceRuleOverSecurityConnectorScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
manager
- .governanceRulesOperations()
- .ruleIdExecuteSingleSecurityConnector(
- "gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", null, Context.NONE);
+ .governanceRules()
+ .execute(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ null,
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### GovernanceRulesOperation_RuleIdExecuteSingleSubscription
-
-```java
-import com.azure.core.util.Context;
-/** Samples for GovernanceRulesOperation RuleIdExecuteSingleSubscription. */
-public final class GovernanceRulesOperationRuleIdExecuteSingleSubscriptionSamples {
/*
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PostGovernanceRule_example.json
*/
/**
- * Sample code: Execute Governance rule.
+ * Sample code: Execute Governance rule over subscription scope.
*
* @param manager Entry point to SecurityManager.
*/
- public static void executeGovernanceRule(com.azure.resourcemanager.security.SecurityManager manager) {
+ public static void executeGovernanceRuleOverSubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
manager
- .governanceRulesOperations()
- .ruleIdExecuteSingleSubscription("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", null, Context.NONE);
- }
-}
+ .governanceRules()
+ .execute(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PostManagementGroupGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Execute governance rule over management group scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void executeGovernanceRuleOverManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .execute(
+ "providers/Microsoft.Management/managementGroups/contoso",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### GovernanceRules_Get
+
+```java
+/** Samples for GovernanceRules Get. */
+public final class GovernanceRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetManagementGroupGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Get a governance rule over management group scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAGovernanceRuleOverManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .getWithResponse(
+ "providers/Microsoft.Management/managementGroups/contoso",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Get a governance rule over subscription scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAGovernanceRuleOverSubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetSecurityConnectorGovernanceRule_example.json
+ */
+ /**
+ * Sample code: Get a governance rule over security connector scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getAGovernanceRuleOverSecurityConnectorScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .getWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### GovernanceRules_List
+
+```java
+/** Samples for GovernanceRules List. */
+public final class GovernanceRulesListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListBySubscriptionGovernanceRules_example.json
+ */
+ /**
+ * Sample code: List governance rules by subscription scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listGovernanceRulesBySubscriptionScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .list("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListBySecurityConnectorGovernanceRules_example.json
+ */
+ /**
+ * Sample code: List governance rules by security connector scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listGovernanceRulesBySecurityConnectorScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .list(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListByManagementGroupGovernanceRules_example.json
+ */
+ /**
+ * Sample code: List governance rules by management group scope.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listGovernanceRulesByManagementGroupScope(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .list("providers/Microsoft.Management/managementGroups/contoso", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### GovernanceRules_OperationResults
+
+```java
+/** Samples for GovernanceRules OperationResults. */
+public final class GovernanceRulesOperationResultsSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetManagementGroupGovernanceRuleExecuteStatus_example.json
+ */
+ /**
+ * Sample code: Get governance rules long run operation result over management group.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getGovernanceRulesLongRunOperationResultOverManagementGroup(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .operationResultsWithResponse(
+ "providers/Microsoft.Management/managementGroups/contoso",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetSecurityConnectorGovernanceRuleExecuteStatus_example.json
+ */
+ /**
+ * Sample code: Get governance rules long run operation result over security connector.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getGovernanceRulesLongRunOperationResultOverSecurityConnector(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .operationResultsWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetGovernanceRuleExecuteStatus_example.json
+ */
+ /**
+ * Sample code: Get governance rules long run operation result over subscription.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getGovernanceRulesLongRunOperationResultOverSubscription(
+ com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .governanceRules()
+ .operationResultsWithResponse(
+ "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### HealthReportOperation_Get
+
+```java
+/** Samples for HealthReportOperation Get. */
+public final class HealthReportOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/HealthReports/GetHealthReport_example.json
+ */
+ /**
+ * Sample code: Get health report of resource.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void getHealthReportOfResource(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .healthReportOperations()
+ .getWithResponse(
+ "subscriptions/a1efb6ca-fbc5-4782-9aaa-5c7daded1ce2/resourcegroups/E2E-IBB0WX/providers/Microsoft.Security/securityconnectors/AwsConnectorAllOfferings",
+ "909c629a-bf39-4521-8e4f-10b443a0bc02",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### HealthReports_List
+
+```java
+/** Samples for HealthReports List. */
+public final class HealthReportsListSamples {
+ /*
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/HealthReports/ListHealthReports_example.json
+ */
+ /**
+ * Sample code: List health reports.
+ *
+ * @param manager Entry point to SecurityManager.
+ */
+ public static void listHealthReports(com.azure.resourcemanager.security.SecurityManager manager) {
+ manager
+ .healthReports()
+ .list("subscriptions/a1efb6ca-fbc5-4782-9aaa-5c7daded1ce2", com.azure.core.util.Context.NONE);
+ }
+}
```
### InformationProtectionPolicies_CreateOrUpdate
@@ -3387,7 +3611,6 @@ public final class InformationProtectionPoliciesCreateOrUpdateSamples {
### InformationProtectionPolicies_Get
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.InformationProtectionPolicyName;
/** Samples for InformationProtectionPolicies Get. */
@@ -3407,7 +3630,7 @@ public final class InformationProtectionPoliciesGetSamples {
.getWithResponse(
"providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e",
InformationProtectionPolicyName.CUSTOM,
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
@@ -3425,7 +3648,7 @@ public final class InformationProtectionPoliciesGetSamples {
.getWithResponse(
"providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e",
InformationProtectionPolicyName.EFFECTIVE,
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3433,8 +3656,6 @@ public final class InformationProtectionPoliciesGetSamples {
### InformationProtectionPolicies_List
```java
-import com.azure.core.util.Context;
-
/** Samples for InformationProtectionPolicies List. */
public final class InformationProtectionPoliciesListSamples {
/*
@@ -3448,7 +3669,9 @@ public final class InformationProtectionPoliciesListSamples {
public static void getInformationProtectionPolicies(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.informationProtectionPolicies()
- .list("providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e", Context.NONE);
+ .list(
+ "providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3476,8 +3699,6 @@ public final class IngestionSettingsCreateSamples {
### IngestionSettings_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for IngestionSettings Delete. */
public final class IngestionSettingsDeleteSamples {
/*
@@ -3490,7 +3711,7 @@ public final class IngestionSettingsDeleteSamples {
*/
public static void deleteAnIngestionSettingForTheSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.ingestionSettings().deleteWithResponse("default", Context.NONE);
+ manager.ingestionSettings().deleteWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3498,8 +3719,6 @@ public final class IngestionSettingsDeleteSamples {
### IngestionSettings_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for IngestionSettings Get. */
public final class IngestionSettingsGetSamples {
/*
@@ -3511,7 +3730,7 @@ public final class IngestionSettingsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getAIngestionSettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.ingestionSettings().getWithResponse("default", Context.NONE);
+ manager.ingestionSettings().getWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3519,8 +3738,6 @@ public final class IngestionSettingsGetSamples {
### IngestionSettings_List
```java
-import com.azure.core.util.Context;
-
/** Samples for IngestionSettings List. */
public final class IngestionSettingsListSamples {
/*
@@ -3532,7 +3749,7 @@ public final class IngestionSettingsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getIngestionSettingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.ingestionSettings().list(Context.NONE);
+ manager.ingestionSettings().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -3540,8 +3757,6 @@ public final class IngestionSettingsListSamples {
### IngestionSettings_ListConnectionStrings
```java
-import com.azure.core.util.Context;
-
/** Samples for IngestionSettings ListConnectionStrings. */
public final class IngestionSettingsListConnectionStringsSamples {
/*
@@ -3554,7 +3769,7 @@ public final class IngestionSettingsListConnectionStringsSamples {
*/
public static void listConnectionStringsForIngestingSecurityDataAndLogs(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.ingestionSettings().listConnectionStringsWithResponse("default", Context.NONE);
+ manager.ingestionSettings().listConnectionStringsWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3562,8 +3777,6 @@ public final class IngestionSettingsListConnectionStringsSamples {
### IngestionSettings_ListTokens
```java
-import com.azure.core.util.Context;
-
/** Samples for IngestionSettings ListTokens. */
public final class IngestionSettingsListTokensSamples {
/*
@@ -3575,7 +3788,7 @@ public final class IngestionSettingsListTokensSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listIngestionSettingTokens(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.ingestionSettings().listTokensWithResponse("default", Context.NONE);
+ manager.ingestionSettings().listTokensWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3653,8 +3866,6 @@ public final class IotSecuritySolutionCreateOrUpdateSamples {
### IotSecuritySolution_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolution Delete. */
public final class IotSecuritySolutionDeleteSamples {
/*
@@ -3666,7 +3877,9 @@ public final class IotSecuritySolutionDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutions().deleteByResourceGroupWithResponse("MyGroup", "default", Context.NONE);
+ manager
+ .iotSecuritySolutions()
+ .deleteByResourceGroupWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3674,8 +3887,6 @@ public final class IotSecuritySolutionDeleteSamples {
### IotSecuritySolution_GetByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolution GetByResourceGroup. */
public final class IotSecuritySolutionGetByResourceGroupSamples {
/*
@@ -3687,7 +3898,9 @@ public final class IotSecuritySolutionGetByResourceGroupSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getAIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutions().getByResourceGroupWithResponse("MyGroup", "default", Context.NONE);
+ manager
+ .iotSecuritySolutions()
+ .getByResourceGroupWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3695,8 +3908,6 @@ public final class IotSecuritySolutionGetByResourceGroupSamples {
### IotSecuritySolution_List
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolution List. */
public final class IotSecuritySolutionListSamples {
/*
@@ -3709,7 +3920,7 @@ public final class IotSecuritySolutionListSamples {
*/
public static void listIoTSecuritySolutionsBySubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutions().list(null, Context.NONE);
+ manager.iotSecuritySolutions().list(null, com.azure.core.util.Context.NONE);
}
/*
@@ -3726,7 +3937,7 @@ public final class IotSecuritySolutionListSamples {
.list(
"properties.iotHubs/any(i eq"
+ " \"/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub\")",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3734,8 +3945,6 @@ public final class IotSecuritySolutionListSamples {
### IotSecuritySolution_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolution ListByResourceGroup. */
public final class IotSecuritySolutionListByResourceGroupSamples {
/*
@@ -3754,7 +3963,7 @@ public final class IotSecuritySolutionListByResourceGroupSamples {
"MyRg",
"properties.iotHubs/any(i eq"
+ " \"/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub\")",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
@@ -3767,7 +3976,7 @@ public final class IotSecuritySolutionListByResourceGroupSamples {
*/
public static void listIoTSecuritySolutionsByResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutions().listByResourceGroup("MyGroup", null, Context.NONE);
+ manager.iotSecuritySolutions().listByResourceGroup("MyGroup", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -3775,7 +3984,6 @@ public final class IotSecuritySolutionListByResourceGroupSamples {
### IotSecuritySolution_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.IoTSecuritySolutionModel;
import com.azure.resourcemanager.security.models.RecommendationConfigStatus;
import com.azure.resourcemanager.security.models.RecommendationConfigurationProperties;
@@ -3798,7 +4006,10 @@ public final class IotSecuritySolutionUpdateSamples {
public static void useThisMethodToUpdateExistingIoTSecuritySolution(
com.azure.resourcemanager.security.SecurityManager manager) {
IoTSecuritySolutionModel resource =
- manager.iotSecuritySolutions().getByResourceGroupWithResponse("myRg", "default", Context.NONE).getValue();
+ manager
+ .iotSecuritySolutions()
+ .getByResourceGroupWithResponse("myRg", "default", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withTags(mapOf("foo", "bar"))
@@ -3834,8 +4045,6 @@ public final class IotSecuritySolutionUpdateSamples {
### IotSecuritySolutionAnalytics_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionAnalytics Get. */
public final class IotSecuritySolutionAnalyticsGetSamples {
/*
@@ -3847,7 +4056,7 @@ public final class IotSecuritySolutionAnalyticsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecuritySolutionAnalytics(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutionAnalytics().getWithResponse("MyGroup", "default", Context.NONE);
+ manager.iotSecuritySolutionAnalytics().getWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3855,8 +4064,6 @@ public final class IotSecuritySolutionAnalyticsGetSamples {
### IotSecuritySolutionAnalytics_List
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionAnalytics List. */
public final class IotSecuritySolutionAnalyticsListSamples {
/*
@@ -3868,7 +4075,7 @@ public final class IotSecuritySolutionAnalyticsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecuritySolutionAnalytics(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutionAnalytics().listWithResponse("MyGroup", "default", Context.NONE);
+ manager.iotSecuritySolutionAnalytics().listWithResponse("MyGroup", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -3876,8 +4083,6 @@ public final class IotSecuritySolutionAnalyticsListSamples {
### IotSecuritySolutionsAnalyticsAggregatedAlert_Dismiss
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Dismiss. */
public final class IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples {
/*
@@ -3892,7 +4097,11 @@ public final class IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.iotSecuritySolutionsAnalyticsAggregatedAlerts()
- .dismissWithResponse("IoTEdgeResources", "default", "IoT_Bruteforce_Fail/2019-02-02/dismiss", Context.NONE);
+ .dismissWithResponse(
+ "IoTEdgeResources",
+ "default",
+ "IoT_Bruteforce_Fail/2019-02-02/dismiss",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3900,8 +4109,6 @@ public final class IotSecuritySolutionsAnalyticsAggregatedAlertDismissSamples {
### IotSecuritySolutionsAnalyticsAggregatedAlert_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionsAnalyticsAggregatedAlert Get. */
public final class IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples {
/*
@@ -3918,7 +4125,7 @@ public final class IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.iotSecuritySolutionsAnalyticsAggregatedAlerts()
- .getWithResponse("MyGroup", "default", "IoT_Bruteforce_Fail/2019-02-02", Context.NONE);
+ .getWithResponse("MyGroup", "default", "IoT_Bruteforce_Fail/2019-02-02", com.azure.core.util.Context.NONE);
}
}
```
@@ -3926,8 +4133,6 @@ public final class IotSecuritySolutionsAnalyticsAggregatedAlertGetSamples {
### IotSecuritySolutionsAnalyticsAggregatedAlert_List
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionsAnalyticsAggregatedAlert List. */
public final class IotSecuritySolutionsAnalyticsAggregatedAlertListSamples {
/*
@@ -3940,7 +4145,9 @@ public final class IotSecuritySolutionsAnalyticsAggregatedAlertListSamples {
*/
public static void getTheAggregatedAlertListOfYoursIoTSecuritySolution(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutionsAnalyticsAggregatedAlerts().list("MyGroup", "default", null, Context.NONE);
+ manager
+ .iotSecuritySolutionsAnalyticsAggregatedAlerts()
+ .list("MyGroup", "default", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -3948,8 +4155,6 @@ public final class IotSecuritySolutionsAnalyticsAggregatedAlertListSamples {
### IotSecuritySolutionsAnalyticsRecommendation_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionsAnalyticsRecommendation Get. */
public final class IotSecuritySolutionsAnalyticsRecommendationGetSamples {
/*
@@ -3964,7 +4169,7 @@ public final class IotSecuritySolutionsAnalyticsRecommendationGetSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.iotSecuritySolutionsAnalyticsRecommendations()
- .getWithResponse("IoTEdgeResources", "default", "OpenPortsOnDevice", Context.NONE);
+ .getWithResponse("IoTEdgeResources", "default", "OpenPortsOnDevice", com.azure.core.util.Context.NONE);
}
}
```
@@ -3972,8 +4177,6 @@ public final class IotSecuritySolutionsAnalyticsRecommendationGetSamples {
### IotSecuritySolutionsAnalyticsRecommendation_List
```java
-import com.azure.core.util.Context;
-
/** Samples for IotSecuritySolutionsAnalyticsRecommendation List. */
public final class IotSecuritySolutionsAnalyticsRecommendationListSamples {
/*
@@ -3986,7 +4189,9 @@ public final class IotSecuritySolutionsAnalyticsRecommendationListSamples {
*/
public static void getTheListOfAggregatedSecurityAnalyticsRecommendationsOfYoursIoTSecuritySolution(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutionsAnalyticsRecommendations().list("IoTEdgeResources", "default", null, Context.NONE);
+ manager
+ .iotSecuritySolutionsAnalyticsRecommendations()
+ .list("IoTEdgeResources", "default", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4070,8 +4275,6 @@ public final class JitNetworkAccessPoliciesCreateOrUpdateSamples {
### JitNetworkAccessPolicies_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for JitNetworkAccessPolicies Delete. */
public final class JitNetworkAccessPoliciesDeleteSamples {
/*
@@ -4083,7 +4286,9 @@ public final class JitNetworkAccessPoliciesDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteAJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().deleteWithResponse("myRg1", "westeurope", "default", Context.NONE);
+ manager
+ .jitNetworkAccessPolicies()
+ .deleteWithResponse("myRg1", "westeurope", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -4091,8 +4296,6 @@ public final class JitNetworkAccessPoliciesDeleteSamples {
### JitNetworkAccessPolicies_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for JitNetworkAccessPolicies Get. */
public final class JitNetworkAccessPoliciesGetSamples {
/*
@@ -4104,7 +4307,9 @@ public final class JitNetworkAccessPoliciesGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getJITNetworkAccessPolicy(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().getWithResponse("myRg1", "westeurope", "default", Context.NONE);
+ manager
+ .jitNetworkAccessPolicies()
+ .getWithResponse("myRg1", "westeurope", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -4112,7 +4317,6 @@ public final class JitNetworkAccessPoliciesGetSamples {
### JitNetworkAccessPolicies_Initiate
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiatePort;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiateRequest;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiateVirtualMachine;
@@ -4150,7 +4354,7 @@ public final class JitNetworkAccessPoliciesInitiateSamples {
.withNumber(3389)
.withAllowedSourceAddressPrefix("192.127.0.2")))))
.withJustification("testing a new version of the product"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4158,8 +4362,6 @@ public final class JitNetworkAccessPoliciesInitiateSamples {
### JitNetworkAccessPolicies_List
```java
-import com.azure.core.util.Context;
-
/** Samples for JitNetworkAccessPolicies List. */
public final class JitNetworkAccessPoliciesListSamples {
/*
@@ -4172,7 +4374,7 @@ public final class JitNetworkAccessPoliciesListSamples {
*/
public static void getJITNetworkAccessPoliciesOnASubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().list(Context.NONE);
+ manager.jitNetworkAccessPolicies().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -4180,8 +4382,6 @@ public final class JitNetworkAccessPoliciesListSamples {
### JitNetworkAccessPolicies_ListByRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for JitNetworkAccessPolicies ListByRegion. */
public final class JitNetworkAccessPoliciesListByRegionSamples {
/*
@@ -4194,7 +4394,7 @@ public final class JitNetworkAccessPoliciesListByRegionSamples {
*/
public static void getJITNetworkAccessPoliciesOnASubscriptionFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().listByRegion("westeurope", Context.NONE);
+ manager.jitNetworkAccessPolicies().listByRegion("westeurope", com.azure.core.util.Context.NONE);
}
}
```
@@ -4202,8 +4402,6 @@ public final class JitNetworkAccessPoliciesListByRegionSamples {
### JitNetworkAccessPolicies_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for JitNetworkAccessPolicies ListByResourceGroup. */
public final class JitNetworkAccessPoliciesListByResourceGroupSamples {
/*
@@ -4216,7 +4414,7 @@ public final class JitNetworkAccessPoliciesListByResourceGroupSamples {
*/
public static void getJITNetworkAccessPoliciesOnAResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().listByResourceGroup("myRg1", Context.NONE);
+ manager.jitNetworkAccessPolicies().listByResourceGroup("myRg1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4224,8 +4422,6 @@ public final class JitNetworkAccessPoliciesListByResourceGroupSamples {
### JitNetworkAccessPolicies_ListByResourceGroupAndRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for JitNetworkAccessPolicies ListByResourceGroupAndRegion. */
public final class JitNetworkAccessPoliciesListByResourceGroupAndRegionSamples {
/*
@@ -4238,7 +4434,9 @@ public final class JitNetworkAccessPoliciesListByResourceGroupAndRegionSamples {
*/
public static void getJITNetworkAccessPoliciesOnAResourceGroupFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.jitNetworkAccessPolicies().listByResourceGroupAndRegion("myRg1", "westeurope", Context.NONE);
+ manager
+ .jitNetworkAccessPolicies()
+ .listByResourceGroupAndRegion("myRg1", "westeurope", com.azure.core.util.Context.NONE);
}
}
```
@@ -4246,8 +4444,6 @@ public final class JitNetworkAccessPoliciesListByResourceGroupAndRegionSamples {
### Locations_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for Locations Get. */
public final class LocationsGetSamples {
/*
@@ -4259,7 +4455,7 @@ public final class LocationsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityDataLocation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.locations().getWithResponse("centralus", Context.NONE);
+ manager.locations().getWithResponse("centralus", com.azure.core.util.Context.NONE);
}
}
```
@@ -4267,8 +4463,6 @@ public final class LocationsGetSamples {
### Locations_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Locations List. */
public final class LocationsListSamples {
/*
@@ -4280,7 +4474,7 @@ public final class LocationsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityDataLocations(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.locations().list(Context.NONE);
+ manager.locations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -4288,8 +4482,6 @@ public final class LocationsListSamples {
### MdeOnboardings_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for MdeOnboardings Get. */
public final class MdeOnboardingsGetSamples {
/*
@@ -4302,7 +4494,7 @@ public final class MdeOnboardingsGetSamples {
*/
public static void theDefaultConfigurationOrDataNeededToOnboardTheMachineToMDE(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.mdeOnboardings().getWithResponse(Context.NONE);
+ manager.mdeOnboardings().getWithResponse(com.azure.core.util.Context.NONE);
}
}
```
@@ -4310,8 +4502,6 @@ public final class MdeOnboardingsGetSamples {
### MdeOnboardings_List
```java
-import com.azure.core.util.Context;
-
/** Samples for MdeOnboardings List. */
public final class MdeOnboardingsListSamples {
/*
@@ -4324,7 +4514,7 @@ public final class MdeOnboardingsListSamples {
*/
public static void theConfigurationOrDataNeededToOnboardTheMachineToMDE(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.mdeOnboardings().listWithResponse(Context.NONE);
+ manager.mdeOnboardings().listWithResponse(com.azure.core.util.Context.NONE);
}
}
```
@@ -4332,8 +4522,6 @@ public final class MdeOnboardingsListSamples {
### Pricings_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for Pricings Get. */
public final class PricingsGetSamples {
/*
@@ -4345,7 +4533,7 @@ public final class PricingsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getPricingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings().getWithResponse("VirtualMachines", Context.NONE);
+ manager.pricings().getWithResponse("VirtualMachines", com.azure.core.util.Context.NONE);
}
}
```
@@ -4353,8 +4541,6 @@ public final class PricingsGetSamples {
### Pricings_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Pricings List. */
public final class PricingsListSamples {
/*
@@ -4366,7 +4552,7 @@ public final class PricingsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getPricingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.pricings().listWithResponse(Context.NONE);
+ manager.pricings().listWithResponse(com.azure.core.util.Context.NONE);
}
}
```
@@ -4374,7 +4560,6 @@ public final class PricingsListSamples {
### Pricings_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.PricingInner;
import com.azure.resourcemanager.security.models.PricingTier;
@@ -4394,7 +4579,7 @@ public final class PricingsUpdateSamples {
.updateWithResponse(
"VirtualMachines",
new PricingInner().withPricingTier(PricingTier.STANDARD).withSubPlan("P2"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4402,8 +4587,6 @@ public final class PricingsUpdateSamples {
### RegulatoryComplianceAssessments_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for RegulatoryComplianceAssessments Get. */
public final class RegulatoryComplianceAssessmentsGetSamples {
/*
@@ -4418,7 +4601,8 @@ public final class RegulatoryComplianceAssessmentsGetSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.regulatoryComplianceAssessments()
- .getWithResponse("PCI-DSS-3.2", "1.1", "968548cb-02b3-8cd2-11f8-0cf64ab1a347", Context.NONE);
+ .getWithResponse(
+ "PCI-DSS-3.2", "1.1", "968548cb-02b3-8cd2-11f8-0cf64ab1a347", com.azure.core.util.Context.NONE);
}
}
```
@@ -4426,8 +4610,6 @@ public final class RegulatoryComplianceAssessmentsGetSamples {
### RegulatoryComplianceAssessments_List
```java
-import com.azure.core.util.Context;
-
/** Samples for RegulatoryComplianceAssessments List. */
public final class RegulatoryComplianceAssessmentsListSamples {
/*
@@ -4440,7 +4622,7 @@ public final class RegulatoryComplianceAssessmentsListSamples {
*/
public static void getAllAssessmentsMappedToSelectedRegulatoryComplianceControl(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.regulatoryComplianceAssessments().list("PCI-DSS-3.2", "1.1", null, Context.NONE);
+ manager.regulatoryComplianceAssessments().list("PCI-DSS-3.2", "1.1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4448,8 +4630,6 @@ public final class RegulatoryComplianceAssessmentsListSamples {
### RegulatoryComplianceControls_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for RegulatoryComplianceControls Get. */
public final class RegulatoryComplianceControlsGetSamples {
/*
@@ -4462,7 +4642,7 @@ public final class RegulatoryComplianceControlsGetSamples {
*/
public static void getSelectedRegulatoryComplianceControlDetailsAndState(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.regulatoryComplianceControls().getWithResponse("PCI-DSS-3.2", "1.1", Context.NONE);
+ manager.regulatoryComplianceControls().getWithResponse("PCI-DSS-3.2", "1.1", com.azure.core.util.Context.NONE);
}
}
```
@@ -4470,8 +4650,6 @@ public final class RegulatoryComplianceControlsGetSamples {
### RegulatoryComplianceControls_List
```java
-import com.azure.core.util.Context;
-
/** Samples for RegulatoryComplianceControls List. */
public final class RegulatoryComplianceControlsListSamples {
/*
@@ -4484,7 +4662,7 @@ public final class RegulatoryComplianceControlsListSamples {
*/
public static void getAllRegulatoryComplianceControlsDetailsAndStateForSelectedStandard(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.regulatoryComplianceControls().list("PCI-DSS-3.2", null, Context.NONE);
+ manager.regulatoryComplianceControls().list("PCI-DSS-3.2", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4492,8 +4670,6 @@ public final class RegulatoryComplianceControlsListSamples {
### RegulatoryComplianceStandards_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for RegulatoryComplianceStandards Get. */
public final class RegulatoryComplianceStandardsGetSamples {
/*
@@ -4506,7 +4682,7 @@ public final class RegulatoryComplianceStandardsGetSamples {
*/
public static void getSelectedRegulatoryComplianceStandardDetailsAndState(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.regulatoryComplianceStandards().getWithResponse("PCI-DSS-3.2", Context.NONE);
+ manager.regulatoryComplianceStandards().getWithResponse("PCI-DSS-3.2", com.azure.core.util.Context.NONE);
}
}
```
@@ -4514,8 +4690,6 @@ public final class RegulatoryComplianceStandardsGetSamples {
### RegulatoryComplianceStandards_List
```java
-import com.azure.core.util.Context;
-
/** Samples for RegulatoryComplianceStandards List. */
public final class RegulatoryComplianceStandardsListSamples {
/*
@@ -4528,7 +4702,7 @@ public final class RegulatoryComplianceStandardsListSamples {
*/
public static void getAllSupportedRegulatoryComplianceStandardsDetailsAndState(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.regulatoryComplianceStandards().list(null, Context.NONE);
+ manager.regulatoryComplianceStandards().list(null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4536,8 +4710,6 @@ public final class RegulatoryComplianceStandardsListSamples {
### SecureScoreControlDefinitions_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecureScoreControlDefinitions List. */
public final class SecureScoreControlDefinitionsListSamples {
/*
@@ -4549,7 +4721,7 @@ public final class SecureScoreControlDefinitionsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecurityControlsDefinition(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScoreControlDefinitions().list(Context.NONE);
+ manager.secureScoreControlDefinitions().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -4557,8 +4729,6 @@ public final class SecureScoreControlDefinitionsListSamples {
### SecureScoreControlDefinitions_ListBySubscription
```java
-import com.azure.core.util.Context;
-
/** Samples for SecureScoreControlDefinitions ListBySubscription. */
public final class SecureScoreControlDefinitionsListBySubscriptionSamples {
/*
@@ -4571,7 +4741,7 @@ public final class SecureScoreControlDefinitionsListBySubscriptionSamples {
*/
public static void listSecurityControlsDefinitionBySubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScoreControlDefinitions().listBySubscription(Context.NONE);
+ manager.secureScoreControlDefinitions().listBySubscription(com.azure.core.util.Context.NONE);
}
}
```
@@ -4579,8 +4749,6 @@ public final class SecureScoreControlDefinitionsListBySubscriptionSamples {
### SecureScoreControls_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecureScoreControls List. */
public final class SecureScoreControlsListSamples {
/*
@@ -4592,7 +4760,7 @@ public final class SecureScoreControlsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listAllSecureScoresControls(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScoreControls().list(null, Context.NONE);
+ manager.secureScoreControls().list(null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4600,7 +4768,6 @@ public final class SecureScoreControlsListSamples {
### SecureScoreControls_ListBySecureScore
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.ExpandControlsEnum;
/** Samples for SecureScoreControls ListBySecureScore. */
@@ -4616,7 +4783,9 @@ public final class SecureScoreControlsListBySecureScoreSamples {
*/
public static void getSecurityControlsAndTheirCurrentScoreForTheSpecifiedInitiativeWithTheExpandParameter(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScoreControls().listBySecureScore("ascScore", ExpandControlsEnum.DEFINITION, Context.NONE);
+ manager
+ .secureScoreControls()
+ .listBySecureScore("ascScore", ExpandControlsEnum.DEFINITION, com.azure.core.util.Context.NONE);
}
/*
@@ -4629,7 +4798,7 @@ public final class SecureScoreControlsListBySecureScoreSamples {
*/
public static void getSecurityControlsAndTheirCurrentScoreForTheSpecifiedInitiative(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScoreControls().listBySecureScore("ascScore", null, Context.NONE);
+ manager.secureScoreControls().listBySecureScore("ascScore", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4637,8 +4806,6 @@ public final class SecureScoreControlsListBySecureScoreSamples {
### SecureScores_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SecureScores Get. */
public final class SecureScoresGetSamples {
/*
@@ -4650,7 +4817,7 @@ public final class SecureScoresGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSingleSecureScore(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScores().getWithResponse("ascScore", Context.NONE);
+ manager.secureScores().getWithResponse("ascScore", com.azure.core.util.Context.NONE);
}
}
```
@@ -4658,8 +4825,6 @@ public final class SecureScoresGetSamples {
### SecureScores_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecureScores List. */
public final class SecureScoresListSamples {
/*
@@ -4671,7 +4836,7 @@ public final class SecureScoresListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecureScores(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.secureScores().list(Context.NONE);
+ manager.secureScores().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -4680,7 +4845,6 @@ public final class SecureScoresListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.security.fluent.models.ApplicationInner;
import com.azure.resourcemanager.security.models.ApplicationSourceResourceType;
@@ -4718,7 +4882,7 @@ public final class SecurityConnectorApplicationOperationCreateOrUpdateSamples {
"{\"conditions\":[{\"operator\":\"contains\",\"property\":\"$.Id\",\"value\":\"-prod-\"}]}",
Object.class,
SerializerEncoding.JSON))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4726,8 +4890,6 @@ public final class SecurityConnectorApplicationOperationCreateOrUpdateSamples {
### SecurityConnectorApplicationOperation_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectorApplicationOperation Delete. */
public final class SecurityConnectorApplicationOperationDeleteSamples {
/*
@@ -4742,7 +4904,10 @@ public final class SecurityConnectorApplicationOperationDeleteSamples {
manager
.securityConnectorApplicationOperations()
.deleteWithResponse(
- "gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ "gcpResourceGroup",
+ "gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4750,8 +4915,6 @@ public final class SecurityConnectorApplicationOperationDeleteSamples {
### SecurityConnectorApplicationOperation_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectorApplicationOperation Get. */
public final class SecurityConnectorApplicationOperationGetSamples {
/*
@@ -4766,7 +4929,11 @@ public final class SecurityConnectorApplicationOperationGetSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.securityConnectorApplicationOperations()
- .getWithResponse("gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ .getWithResponse(
+ "gcpResourceGroup",
+ "gcpconnector",
+ "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4774,8 +4941,6 @@ public final class SecurityConnectorApplicationOperationGetSamples {
### SecurityConnectorApplications_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectorApplications List. */
public final class SecurityConnectorApplicationsListSamples {
/*
@@ -4787,172 +4952,10 @@ public final class SecurityConnectorApplicationsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecurityApplicationsBySecurityConnectorLevelScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectorApplications().list("gcpResourceGroup", "gcpconnector", Context.NONE);
- }
-}
-```
-
-### SecurityConnectorGovernanceRule_List
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for SecurityConnectorGovernanceRule List. */
-public final class SecurityConnectorGovernanceRuleListSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListBySecurityConnectorGovernanceRules_example.json
- */
- /**
- * Sample code: List security governanceRules by security connector level scope.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void listSecurityGovernanceRulesBySecurityConnectorLevelScope(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectorGovernanceRules().list("gcpResourceGroup", "gcpconnector", Context.NONE);
- }
-}
-```
-
-### SecurityConnectorGovernanceRulesExecuteStatus_Get
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for SecurityConnectorGovernanceRulesExecuteStatus Get. */
-public final class SecurityConnectorGovernanceRulesExecuteStatusGetSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetSecurityConnectorGovernanceRuleExecuteStatus_example.json
- */
- /**
- * Sample code: Get security governanceRules execution status by specific governanceRuleId.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityGovernanceRulesExecutionStatusBySpecificGovernanceRuleId(
- com.azure.resourcemanager.security.SecurityManager manager) {
- manager
- .securityConnectorGovernanceRulesExecuteStatus()
- .get(
- "gcpResourceGroup",
- "gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- "58b33f4f-c8c7-4b01-99cc-d437db4d40dd",
- Context.NONE);
- }
-}
-```
-
-### SecurityConnectorGovernanceRulesOperation_CreateOrUpdate
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.Context;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
-import com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification;
-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.io.IOException;
-import java.util.Arrays;
-
-/** Samples for SecurityConnectorGovernanceRulesOperation CreateOrUpdate. */
-public final class SecurityConnectorGovernanceRulesOperationCreateOrUpdateSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/PutSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Create Governance rule.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void createGovernanceRule(com.azure.resourcemanager.security.SecurityManager manager)
- throws IOException {
- manager
- .securityConnectorGovernanceRulesOperations()
- .createOrUpdateWithResponse(
- "gcpResourceGroup",
- "gcpconnector",
- "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
- new GovernanceRuleInner()
- .withDisplayName("GCP Admin's rule")
- .withDescription("A rule on critical GCP recommendations")
- .withRemediationTimeframe("7.00:00:00")
- .withIsGracePeriod(true)
- .withRulePriority(200)
- .withIsDisabled(false)
- .withRuleType(GovernanceRuleType.INTEGRATED)
- .withSourceResourceType(GovernanceRuleSourceResourceType.ASSESSMENTS)
- .withConditionSets(
- Arrays
- .asList(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"conditions\":[{\"operator\":\"In\",\"property\":\"$.AssessmentKey\",\"value\":\"[\\\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\\\","
- + " \\\"fe83f80b-073d-4ccf-93d9-6797eb870201\\\"]\"}]}",
- Object.class,
- SerializerEncoding.JSON)))
- .withOwnerSource(
- new GovernanceRuleOwnerSource()
- .withType(GovernanceRuleOwnerSourceType.MANUALLY)
- .withValue("user@contoso.com"))
- .withGovernanceEmailNotification(
- new GovernanceRuleEmailNotification()
- .withDisableManagerEmailNotification(true)
- .withDisableOwnerEmailNotification(false)),
- Context.NONE);
- }
-}
-```
-
-### SecurityConnectorGovernanceRulesOperation_Delete
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for SecurityConnectorGovernanceRulesOperation Delete. */
-public final class SecurityConnectorGovernanceRulesOperationDeleteSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/DeleteSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Delete security GovernanceRule.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void deleteSecurityGovernanceRule(com.azure.resourcemanager.security.SecurityManager manager) {
- manager
- .securityConnectorGovernanceRulesOperations()
- .deleteWithResponse(
- "gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
- }
-}
-```
-
-### SecurityConnectorGovernanceRulesOperation_Get
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for SecurityConnectorGovernanceRulesOperation Get. */
-public final class SecurityConnectorGovernanceRulesOperationGetSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetSecurityConnectorGovernanceRule_example.json
- */
- /**
- * Sample code: Get security governanceRules by specific governanceRuleId.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityGovernanceRulesBySpecificGovernanceRuleId(
com.azure.resourcemanager.security.SecurityManager manager) {
manager
- .securityConnectorGovernanceRulesOperations()
- .getWithResponse("gcpResourceGroup", "gcpconnector", "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", Context.NONE);
+ .securityConnectorApplications()
+ .list("gcpResourceGroup", "gcpconnector", com.azure.core.util.Context.NONE);
}
}
```
@@ -5014,8 +5017,6 @@ public final class SecurityConnectorsCreateOrUpdateSamples {
### SecurityConnectors_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectors Delete. */
public final class SecurityConnectorsDeleteSamples {
/*
@@ -5027,7 +5028,9 @@ public final class SecurityConnectorsDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectors().deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
+ manager
+ .securityConnectors()
+ .deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", com.azure.core.util.Context.NONE);
}
}
```
@@ -5035,8 +5038,6 @@ public final class SecurityConnectorsDeleteSamples {
### SecurityConnectors_GetByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectors GetByResourceGroup. */
public final class SecurityConnectorsGetByResourceGroupSamples {
/*
@@ -5050,7 +5051,8 @@ public final class SecurityConnectorsGetByResourceGroupSamples {
public static void retrieveASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.securityConnectors()
- .getByResourceGroupWithResponse("exampleResourceGroup", "exampleSecurityConnectorName", Context.NONE);
+ .getByResourceGroupWithResponse(
+ "exampleResourceGroup", "exampleSecurityConnectorName", com.azure.core.util.Context.NONE);
}
}
```
@@ -5058,8 +5060,6 @@ public final class SecurityConnectorsGetByResourceGroupSamples {
### SecurityConnectors_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectors List. */
public final class SecurityConnectorsListSamples {
/*
@@ -5072,7 +5072,7 @@ public final class SecurityConnectorsListSamples {
*/
public static void listAllSecurityConnectorsOfASpecifiedSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectors().list(Context.NONE);
+ manager.securityConnectors().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -5080,8 +5080,6 @@ public final class SecurityConnectorsListSamples {
### SecurityConnectors_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityConnectors ListByResourceGroup. */
public final class SecurityConnectorsListByResourceGroupSamples {
/*
@@ -5094,7 +5092,7 @@ public final class SecurityConnectorsListByResourceGroupSamples {
*/
public static void listAllSecurityConnectorsOfASpecifiedResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectors().listByResourceGroup("exampleResourceGroup", Context.NONE);
+ manager.securityConnectors().listByResourceGroup("exampleResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
@@ -5102,7 +5100,6 @@ public final class SecurityConnectorsListByResourceGroupSamples {
### SecurityConnectors_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.AwsEnvironmentData;
import com.azure.resourcemanager.security.models.CloudName;
import com.azure.resourcemanager.security.models.CspmMonitorAwsOffering;
@@ -5126,7 +5123,8 @@ public final class SecurityConnectorsUpdateSamples {
SecurityConnector resource =
manager
.securityConnectors()
- .getByResourceGroupWithResponse("exampleResourceGroup", "exampleSecurityConnectorName", Context.NONE)
+ .getByResourceGroupWithResponse(
+ "exampleResourceGroup", "exampleSecurityConnectorName", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
@@ -5199,8 +5197,6 @@ public final class SecurityContactsCreateSamples {
### SecurityContacts_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityContacts Delete. */
public final class SecurityContactsDeleteSamples {
/*
@@ -5212,7 +5208,7 @@ public final class SecurityContactsDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deletesASecurityContactData(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts().deleteWithResponse("default", Context.NONE);
+ manager.securityContacts().deleteWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -5220,8 +5216,6 @@ public final class SecurityContactsDeleteSamples {
### SecurityContacts_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityContacts Get. */
public final class SecurityContactsGetSamples {
/*
@@ -5233,7 +5227,7 @@ public final class SecurityContactsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getASecurityContact(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts().getWithResponse("default", Context.NONE);
+ manager.securityContacts().getWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -5241,8 +5235,6 @@ public final class SecurityContactsGetSamples {
### SecurityContacts_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecurityContacts List. */
public final class SecurityContactsListSamples {
/*
@@ -5254,7 +5246,7 @@ public final class SecurityContactsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecurityContactData(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityContacts().list(Context.NONE);
+ manager.securityContacts().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -5262,8 +5254,6 @@ public final class SecurityContactsListSamples {
### SecuritySolutions_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SecuritySolutions Get. */
public final class SecuritySolutionsGetSamples {
/*
@@ -5276,7 +5266,9 @@ public final class SecuritySolutionsGetSamples {
*/
public static void getASecuritySolutionFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securitySolutions().getWithResponse("myRg2", "centralus", "paloalto7", Context.NONE);
+ manager
+ .securitySolutions()
+ .getWithResponse("myRg2", "centralus", "paloalto7", com.azure.core.util.Context.NONE);
}
}
```
@@ -5284,8 +5276,6 @@ public final class SecuritySolutionsGetSamples {
### SecuritySolutions_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecuritySolutions List. */
public final class SecuritySolutionsListSamples {
/*
@@ -5297,7 +5287,7 @@ public final class SecuritySolutionsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securitySolutions().list(Context.NONE);
+ manager.securitySolutions().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -5305,8 +5295,6 @@ public final class SecuritySolutionsListSamples {
### SecuritySolutionsReferenceData_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SecuritySolutionsReferenceData List. */
public final class SecuritySolutionsReferenceDataListSamples {
/*
@@ -5318,7 +5306,7 @@ public final class SecuritySolutionsReferenceDataListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecuritySolutions(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securitySolutionsReferenceDatas().listWithResponse(Context.NONE);
+ manager.securitySolutionsReferenceDatas().listWithResponse(com.azure.core.util.Context.NONE);
}
}
```
@@ -5326,8 +5314,6 @@ public final class SecuritySolutionsReferenceDataListSamples {
### SecuritySolutionsReferenceData_ListByHomeRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for SecuritySolutionsReferenceData ListByHomeRegion. */
public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
/*
@@ -5340,7 +5326,9 @@ public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
*/
public static void getSecuritySolutionsFromASecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securitySolutionsReferenceDatas().listByHomeRegionWithResponse("westcentralus", Context.NONE);
+ manager
+ .securitySolutionsReferenceDatas()
+ .listByHomeRegionWithResponse("westcentralus", com.azure.core.util.Context.NONE);
}
}
```
@@ -5348,8 +5336,6 @@ public final class SecuritySolutionsReferenceDataListByHomeRegionSamples {
### ServerVulnerabilityAssessment_CreateOrUpdate
```java
-import com.azure.core.util.Context;
-
/** Samples for ServerVulnerabilityAssessment CreateOrUpdate. */
public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
/*
@@ -5366,7 +5352,8 @@ public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.serverVulnerabilityAssessments()
- .createOrUpdateWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ .createOrUpdateWithResponse(
+ "rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
@@ -5374,8 +5361,6 @@ public final class ServerVulnerabilityAssessmentCreateOrUpdateSamples {
### ServerVulnerabilityAssessment_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for ServerVulnerabilityAssessment Delete. */
public final class ServerVulnerabilityAssessmentDeleteSamples {
/*
@@ -5392,7 +5377,7 @@ public final class ServerVulnerabilityAssessmentDeleteSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.serverVulnerabilityAssessments()
- .delete("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ .delete("rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
@@ -5400,8 +5385,6 @@ public final class ServerVulnerabilityAssessmentDeleteSamples {
### ServerVulnerabilityAssessment_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for ServerVulnerabilityAssessment Get. */
public final class ServerVulnerabilityAssessmentGetSamples {
/*
@@ -5418,7 +5401,7 @@ public final class ServerVulnerabilityAssessmentGetSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.serverVulnerabilityAssessments()
- .getWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ .getWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
@@ -5426,8 +5409,6 @@ public final class ServerVulnerabilityAssessmentGetSamples {
### ServerVulnerabilityAssessment_ListByExtendedResource
```java
-import com.azure.core.util.Context;
-
/** Samples for ServerVulnerabilityAssessment ListByExtendedResource. */
public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
/*
@@ -5444,7 +5425,8 @@ public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.serverVulnerabilityAssessments()
- .listByExtendedResourceWithResponse("rg1", "Microsoft.Compute", "virtualMachines", "vm1", Context.NONE);
+ .listByExtendedResourceWithResponse(
+ "rg1", "Microsoft.Compute", "virtualMachines", "vm1", com.azure.core.util.Context.NONE);
}
}
```
@@ -5452,7 +5434,6 @@ public final class ServerVulnerabilityAssessmentListByExtendedResourceSamples {
### Settings_Get
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.SettingName;
/** Samples for Settings Get. */
@@ -5466,7 +5447,7 @@ public final class SettingsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getASettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().getWithResponse(SettingName.MCAS, Context.NONE);
+ manager.settings().getWithResponse(SettingName.WDATP, com.azure.core.util.Context.NONE);
}
}
```
@@ -5474,8 +5455,6 @@ public final class SettingsGetSamples {
### Settings_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Settings List. */
public final class SettingsListSamples {
/*
@@ -5487,7 +5466,7 @@ public final class SettingsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSettingsOfSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.settings().list(Context.NONE);
+ manager.settings().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -5495,7 +5474,6 @@ public final class SettingsListSamples {
### Settings_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.DataExportSettings;
import com.azure.resourcemanager.security.models.SettingName;
@@ -5512,7 +5490,8 @@ public final class SettingsUpdateSamples {
public static void updateASettingForSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.settings()
- .updateWithResponse(SettingName.MCAS, new DataExportSettings().withEnabled(true), Context.NONE);
+ .updateWithResponse(
+ SettingName.WDATP, new DataExportSettings().withEnabled(true), com.azure.core.util.Context.NONE);
}
}
```
@@ -5520,8 +5499,6 @@ public final class SettingsUpdateSamples {
### SoftwareInventories_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SoftwareInventories Get. */
public final class SoftwareInventoriesGetSamples {
/*
@@ -5542,7 +5519,7 @@ public final class SoftwareInventoriesGetSamples {
"virtualMachines",
"Eitan-Test1",
"outlook_16.0.10371.20060",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5550,8 +5527,6 @@ public final class SoftwareInventoriesGetSamples {
### SoftwareInventories_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SoftwareInventories List. */
public final class SoftwareInventoriesListSamples {
/*
@@ -5564,7 +5539,7 @@ public final class SoftwareInventoriesListSamples {
*/
public static void getsTheSoftwareInventoryOfAllVirtualMachinesInTheSubscriptions(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.softwareInventories().list(Context.NONE);
+ manager.softwareInventories().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -5572,8 +5547,6 @@ public final class SoftwareInventoriesListSamples {
### SoftwareInventories_ListByExtendedResource
```java
-import com.azure.core.util.Context;
-
/** Samples for SoftwareInventories ListByExtendedResource. */
public final class SoftwareInventoriesListByExtendedResourceSamples {
/*
@@ -5588,7 +5561,8 @@ public final class SoftwareInventoriesListByExtendedResourceSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.softwareInventories()
- .listByExtendedResource("EITAN-TESTS", "Microsoft.Compute", "virtualMachines", "Eitan-Test1", Context.NONE);
+ .listByExtendedResource(
+ "EITAN-TESTS", "Microsoft.Compute", "virtualMachines", "Eitan-Test1", com.azure.core.util.Context.NONE);
}
}
```
@@ -5596,7 +5570,6 @@ public final class SoftwareInventoriesListByExtendedResourceSamples {
### SqlVulnerabilityAssessmentBaselineRules_Add
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.RulesResultsInput;
import java.util.Arrays;
import java.util.HashMap;
@@ -5605,7 +5578,7 @@ import java.util.Map;
/** Samples for SqlVulnerabilityAssessmentBaselineRules Add. */
public final class SqlVulnerabilityAssessmentBaselineRulesAddSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Add.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Add.json
*/
/**
* Sample code: Create a baseline for all rules.
@@ -5626,11 +5599,11 @@ public final class SqlVulnerabilityAssessmentBaselineRulesAddSamples {
Arrays.asList(Arrays.asList("userA", "SELECT"), Arrays.asList("userB", "SELECT")),
"VA5678",
Arrays.asList(Arrays.asList("Test", "0.0.0.0", "125.125.125.125")))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_AddLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_AddLatest.json
*/
/**
* Sample code: Create a baseline for all rules using the latest scan results.
@@ -5645,7 +5618,7 @@ public final class SqlVulnerabilityAssessmentBaselineRulesAddSamples {
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
new RulesResultsInput().withLatestScan(true).withResults(mapOf()),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -5669,7 +5642,7 @@ import java.util.Arrays;
/** Samples for SqlVulnerabilityAssessmentBaselineRules CreateOrUpdate. */
public final class SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_PutLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_PutLatest.json
*/
/**
* Sample code: Create a baseline using the latest scan results.
@@ -5690,7 +5663,7 @@ public final class SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples
}
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Put.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Put.json
*/
/**
* Sample code: Create a baseline.
@@ -5714,12 +5687,10 @@ public final class SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateSamples
### SqlVulnerabilityAssessmentBaselineRules_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentBaselineRules Delete. */
public final class SqlVulnerabilityAssessmentBaselineRulesDeleteSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json
*/
/**
* Sample code: Delete the baseline.
@@ -5733,7 +5704,7 @@ public final class SqlVulnerabilityAssessmentBaselineRulesDeleteSamples {
"VA1234",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5741,12 +5712,10 @@ public final class SqlVulnerabilityAssessmentBaselineRulesDeleteSamples {
### SqlVulnerabilityAssessmentBaselineRules_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentBaselineRules Get. */
public final class SqlVulnerabilityAssessmentBaselineRulesGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Get.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Get.json
*/
/**
* Sample code: Get the baseline.
@@ -5760,7 +5729,7 @@ public final class SqlVulnerabilityAssessmentBaselineRulesGetSamples {
"VA1234",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5768,12 +5737,10 @@ public final class SqlVulnerabilityAssessmentBaselineRulesGetSamples {
### SqlVulnerabilityAssessmentBaselineRules_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentBaselineRules List. */
public final class SqlVulnerabilityAssessmentBaselineRulesListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json
*/
/**
* Sample code: List baseline for all rules.
@@ -5786,7 +5753,7 @@ public final class SqlVulnerabilityAssessmentBaselineRulesListSamples {
.listWithResponse(
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5794,12 +5761,10 @@ public final class SqlVulnerabilityAssessmentBaselineRulesListSamples {
### SqlVulnerabilityAssessmentScanResults_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentScanResults Get. */
public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_Get.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_Get.json
*/
/**
* Sample code: Get scan details of a scan record.
@@ -5814,11 +5779,11 @@ public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
"VA2063",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_GetLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_GetLatest.json
*/
/**
* Sample code: Get scan details of the latest scan record.
@@ -5833,7 +5798,7 @@ public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
"VA2063",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5841,12 +5806,10 @@ public final class SqlVulnerabilityAssessmentScanResultsGetSamples {
### SqlVulnerabilityAssessmentScanResults_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentScanResults List. */
public final class SqlVulnerabilityAssessmentScanResultsListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_ListLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_ListLatest.json
*/
/**
* Sample code: List scan results of the latest scan.
@@ -5860,11 +5823,11 @@ public final class SqlVulnerabilityAssessmentScanResultsListSamples {
"latest",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_List.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_List.json
*/
/**
* Sample code: List scan results.
@@ -5878,7 +5841,7 @@ public final class SqlVulnerabilityAssessmentScanResultsListSamples {
"Scheduled-20200623",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5886,12 +5849,10 @@ public final class SqlVulnerabilityAssessmentScanResultsListSamples {
### SqlVulnerabilityAssessmentScans_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentScans Get. */
public final class SqlVulnerabilityAssessmentScansGetSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_Get.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_Get.json
*/
/**
* Sample code: Get scan details of a scan record.
@@ -5905,11 +5866,11 @@ public final class SqlVulnerabilityAssessmentScansGetSamples {
"Scheduled-20200623",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_GetLatest.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_GetLatest.json
*/
/**
* Sample code: Get scan details of the latest scan record.
@@ -5923,7 +5884,7 @@ public final class SqlVulnerabilityAssessmentScansGetSamples {
"latest",
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5931,12 +5892,10 @@ public final class SqlVulnerabilityAssessmentScansGetSamples {
### SqlVulnerabilityAssessmentScans_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SqlVulnerabilityAssessmentScans List. */
public final class SqlVulnerabilityAssessmentScansListSamples {
/*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_List.json
+ * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-02-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_List.json
*/
/**
* Sample code: List scan details.
@@ -5949,7 +5908,7 @@ public final class SqlVulnerabilityAssessmentScansListSamples {
.listWithResponse(
"55555555-6666-7777-8888-999999999999",
"subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5957,8 +5916,6 @@ public final class SqlVulnerabilityAssessmentScansListSamples {
### SubAssessments_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for SubAssessments Get. */
public final class SubAssessmentsGetSamples {
/*
@@ -5977,7 +5934,7 @@ public final class SubAssessmentsGetSamples {
"subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/DEMORG/providers/Microsoft.Compute/virtualMachines/vm2",
"1195afff-c881-495e-9bc5-1486211ae03f",
"95f7da9c-a2a4-1322-0758-fcd24ef09b85",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5985,8 +5942,6 @@ public final class SubAssessmentsGetSamples {
### SubAssessments_List
```java
-import com.azure.core.util.Context;
-
/** Samples for SubAssessments List. */
public final class SubAssessmentsListSamples {
/*
@@ -6003,7 +5958,7 @@ public final class SubAssessmentsListSamples {
.list(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"82e20e14-edc5-4373-bfc4-f13121257c37",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -6011,8 +5966,6 @@ public final class SubAssessmentsListSamples {
### SubAssessments_ListAll
```java
-import com.azure.core.util.Context;
-
/** Samples for SubAssessments ListAll. */
public final class SubAssessmentsListAllSamples {
/*
@@ -6024,31 +5977,9 @@ public final class SubAssessmentsListAllSamples {
* @param manager Entry point to SecurityManager.
*/
public static void listSecuritySubAssessments(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.subAssessments().listAll("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", Context.NONE);
- }
-}
-```
-
-### SubscriptionGovernanceRulesExecuteStatus_Get
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for SubscriptionGovernanceRulesExecuteStatus Get. */
-public final class SubscriptionGovernanceRulesExecuteStatusGetSamples {
- /*
- * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetGovernanceRuleExecuteStatus_example.json
- */
- /**
- * Sample code: Get security governanceRules execution status by specific governanceRuleId.
- *
- * @param manager Entry point to SecurityManager.
- */
- public static void getSecurityGovernanceRulesExecutionStatusBySpecificGovernanceRuleId(
- com.azure.resourcemanager.security.SecurityManager manager) {
manager
- .subscriptionGovernanceRulesExecuteStatus()
- .get("ad9a8e26-29d9-4829-bb30-e597a58cdbb8", "58b33f4f-c8c7-4b01-99cc-d437db4d40dd", Context.NONE);
+ .subAssessments()
+ .listAll("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23", com.azure.core.util.Context.NONE);
}
}
```
@@ -6056,8 +5987,6 @@ public final class SubscriptionGovernanceRulesExecuteStatusGetSamples {
### Tasks_GetResourceGroupLevelTask
```java
-import com.azure.core.util.Context;
-
/** Samples for Tasks GetResourceGroupLevelTask. */
public final class TasksGetResourceGroupLevelTaskSamples {
/*
@@ -6073,7 +6002,7 @@ public final class TasksGetResourceGroupLevelTaskSamples {
manager
.tasks()
.getResourceGroupLevelTaskWithResponse(
- "myRg", "westeurope", "d55b4dc0-779c-c66c-33e5-d7bce24c4222", Context.NONE);
+ "myRg", "westeurope", "d55b4dc0-779c-c66c-33e5-d7bce24c4222", com.azure.core.util.Context.NONE);
}
}
```
@@ -6081,8 +6010,6 @@ public final class TasksGetResourceGroupLevelTaskSamples {
### Tasks_GetSubscriptionLevelTask
```java
-import com.azure.core.util.Context;
-
/** Samples for Tasks GetSubscriptionLevelTask. */
public final class TasksGetSubscriptionLevelTaskSamples {
/*
@@ -6097,7 +6024,8 @@ public final class TasksGetSubscriptionLevelTaskSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.tasks()
- .getSubscriptionLevelTaskWithResponse("westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d", Context.NONE);
+ .getSubscriptionLevelTaskWithResponse(
+ "westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d", com.azure.core.util.Context.NONE);
}
}
```
@@ -6105,8 +6033,6 @@ public final class TasksGetSubscriptionLevelTaskSamples {
### Tasks_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Tasks List. */
public final class TasksListSamples {
/*
@@ -6118,7 +6044,7 @@ public final class TasksListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getSecurityRecommendationsTasks(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks().list(null, Context.NONE);
+ manager.tasks().list(null, com.azure.core.util.Context.NONE);
}
}
```
@@ -6126,8 +6052,6 @@ public final class TasksListSamples {
### Tasks_ListByHomeRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for Tasks ListByHomeRegion. */
public final class TasksListByHomeRegionSamples {
/*
@@ -6140,7 +6064,7 @@ public final class TasksListByHomeRegionSamples {
*/
public static void getSecurityRecommendationsTasksFromSecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks().listByHomeRegion("westeurope", null, Context.NONE);
+ manager.tasks().listByHomeRegion("westeurope", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -6148,8 +6072,6 @@ public final class TasksListByHomeRegionSamples {
### Tasks_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for Tasks ListByResourceGroup. */
public final class TasksListByResourceGroupSamples {
/*
@@ -6162,7 +6084,7 @@ public final class TasksListByResourceGroupSamples {
*/
public static void getSecurityRecommendationTasksInAResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.tasks().listByResourceGroup("myRg", "westeurope", null, Context.NONE);
+ manager.tasks().listByResourceGroup("myRg", "westeurope", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -6170,7 +6092,6 @@ public final class TasksListByResourceGroupSamples {
### Tasks_UpdateResourceGroupLevelTaskState
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.TaskUpdateActionType;
/** Samples for Tasks UpdateResourceGroupLevelTaskState. */
@@ -6192,7 +6113,7 @@ public final class TasksUpdateResourceGroupLevelTaskStateSamples {
"westeurope",
"d55b4dc0-779c-c66c-33e5-d7bce24c4222",
TaskUpdateActionType.DISMISS,
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -6200,7 +6121,6 @@ public final class TasksUpdateResourceGroupLevelTaskStateSamples {
### Tasks_UpdateSubscriptionLevelTaskState
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.TaskUpdateActionType;
/** Samples for Tasks UpdateSubscriptionLevelTaskState. */
@@ -6218,7 +6138,10 @@ public final class TasksUpdateSubscriptionLevelTaskStateSamples {
manager
.tasks()
.updateSubscriptionLevelTaskStateWithResponse(
- "westeurope", "62609ee7-d0a5-8616-9fe4-1df5cca7758d", TaskUpdateActionType.DISMISS, Context.NONE);
+ "westeurope",
+ "62609ee7-d0a5-8616-9fe4-1df5cca7758d",
+ TaskUpdateActionType.DISMISS,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -6226,8 +6149,6 @@ public final class TasksUpdateSubscriptionLevelTaskStateSamples {
### Topology_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for Topology Get. */
public final class TopologyGetSamples {
/*
@@ -6239,7 +6160,7 @@ public final class TopologyGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getTopology(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().getWithResponse("myservers", "centralus", "vnets", Context.NONE);
+ manager.topologies().getWithResponse("myservers", "centralus", "vnets", com.azure.core.util.Context.NONE);
}
}
```
@@ -6247,8 +6168,6 @@ public final class TopologyGetSamples {
### Topology_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Topology List. */
public final class TopologyListSamples {
/*
@@ -6260,7 +6179,7 @@ public final class TopologyListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getTopologyOnASubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().list(Context.NONE);
+ manager.topologies().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -6268,8 +6187,6 @@ public final class TopologyListSamples {
### Topology_ListByHomeRegion
```java
-import com.azure.core.util.Context;
-
/** Samples for Topology ListByHomeRegion. */
public final class TopologyListByHomeRegionSamples {
/*
@@ -6282,7 +6199,7 @@ public final class TopologyListByHomeRegionSamples {
*/
public static void getTopologyOnASubscriptionFromSecurityDataLocation(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.topologies().listByHomeRegion("centralus", Context.NONE);
+ manager.topologies().listByHomeRegion("centralus", com.azure.core.util.Context.NONE);
}
}
```
@@ -6316,8 +6233,6 @@ public final class WorkspaceSettingsCreateSamples {
### WorkspaceSettings_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for WorkspaceSettings Delete. */
public final class WorkspaceSettingsDeleteSamples {
/*
@@ -6330,7 +6245,7 @@ public final class WorkspaceSettingsDeleteSamples {
*/
public static void deleteAWorkspaceSettingDataForResourceGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.workspaceSettings().deleteWithResponse("default", Context.NONE);
+ manager.workspaceSettings().deleteWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -6338,8 +6253,6 @@ public final class WorkspaceSettingsDeleteSamples {
### WorkspaceSettings_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for WorkspaceSettings Get. */
public final class WorkspaceSettingsGetSamples {
/*
@@ -6351,7 +6264,7 @@ public final class WorkspaceSettingsGetSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getAWorkspaceSettingOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.workspaceSettings().getWithResponse("default", Context.NONE);
+ manager.workspaceSettings().getWithResponse("default", com.azure.core.util.Context.NONE);
}
}
```
@@ -6359,8 +6272,6 @@ public final class WorkspaceSettingsGetSamples {
### WorkspaceSettings_List
```java
-import com.azure.core.util.Context;
-
/** Samples for WorkspaceSettings List. */
public final class WorkspaceSettingsListSamples {
/*
@@ -6372,7 +6283,7 @@ public final class WorkspaceSettingsListSamples {
* @param manager Entry point to SecurityManager.
*/
public static void getWorkspaceSettingsOnSubscription(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.workspaceSettings().list(Context.NONE);
+ manager.workspaceSettings().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -6380,7 +6291,6 @@ public final class WorkspaceSettingsListSamples {
### WorkspaceSettings_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.WorkspaceSetting;
/** Samples for WorkspaceSettings Update. */
@@ -6395,7 +6305,8 @@ public final class WorkspaceSettingsUpdateSamples {
*/
public static void updateAWorkspaceSettingDataForSubscription(
com.azure.resourcemanager.security.SecurityManager manager) {
- WorkspaceSetting resource = manager.workspaceSettings().getWithResponse("default", Context.NONE).getValue();
+ WorkspaceSetting resource =
+ manager.workspaceSettings().getWithResponse("default", com.azure.core.util.Context.NONE).getValue();
resource
.update()
.withWorkspaceId(
diff --git a/sdk/security/azure-resourcemanager-security/pom.xml b/sdk/security/azure-resourcemanager-security/pom.xml
index cf8c20c697a6d..59dba9b0279f2 100644
--- a/sdk/security/azure-resourcemanager-security/pom.xml
+++ b/sdk/security/azure-resourcemanager-security/pom.xml
@@ -1,3 +1,8 @@
+
4.0.0
@@ -38,7 +43,8 @@
UTF-8
- true
+ 0
+ 0
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 4da6685a18db2..c5b835d4af3ec 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
@@ -49,7 +49,8 @@
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.GovernanceAssignmentsImpl;
import com.azure.resourcemanager.security.implementation.GovernanceRulesImpl;
-import com.azure.resourcemanager.security.implementation.GovernanceRulesOperationsImpl;
+import com.azure.resourcemanager.security.implementation.HealthReportOperationsImpl;
+import com.azure.resourcemanager.security.implementation.HealthReportsImpl;
import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
import com.azure.resourcemanager.security.implementation.IngestionSettingsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionAnalyticsImpl;
@@ -70,9 +71,6 @@
import com.azure.resourcemanager.security.implementation.SecurityCenterBuilder;
import com.azure.resourcemanager.security.implementation.SecurityConnectorApplicationOperationsImpl;
import com.azure.resourcemanager.security.implementation.SecurityConnectorApplicationsImpl;
-import com.azure.resourcemanager.security.implementation.SecurityConnectorGovernanceRulesExecuteStatusImpl;
-import com.azure.resourcemanager.security.implementation.SecurityConnectorGovernanceRulesImpl;
-import com.azure.resourcemanager.security.implementation.SecurityConnectorGovernanceRulesOperationsImpl;
import com.azure.resourcemanager.security.implementation.SecurityConnectorsImpl;
import com.azure.resourcemanager.security.implementation.SecurityContactsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsImpl;
@@ -84,7 +82,6 @@
import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentScanResultsImpl;
import com.azure.resourcemanager.security.implementation.SqlVulnerabilityAssessmentScansImpl;
import com.azure.resourcemanager.security.implementation.SubAssessmentsImpl;
-import com.azure.resourcemanager.security.implementation.SubscriptionGovernanceRulesExecuteStatusImpl;
import com.azure.resourcemanager.security.implementation.TasksImpl;
import com.azure.resourcemanager.security.implementation.TopologiesImpl;
import com.azure.resourcemanager.security.implementation.WorkspaceSettingsImpl;
@@ -113,7 +110,8 @@
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
import com.azure.resourcemanager.security.models.GovernanceAssignments;
import com.azure.resourcemanager.security.models.GovernanceRules;
-import com.azure.resourcemanager.security.models.GovernanceRulesOperations;
+import com.azure.resourcemanager.security.models.HealthReportOperations;
+import com.azure.resourcemanager.security.models.HealthReports;
import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
import com.azure.resourcemanager.security.models.IngestionSettings;
import com.azure.resourcemanager.security.models.IotSecuritySolutionAnalytics;
@@ -133,9 +131,6 @@
import com.azure.resourcemanager.security.models.SecureScores;
import com.azure.resourcemanager.security.models.SecurityConnectorApplicationOperations;
import com.azure.resourcemanager.security.models.SecurityConnectorApplications;
-import com.azure.resourcemanager.security.models.SecurityConnectorGovernanceRules;
-import com.azure.resourcemanager.security.models.SecurityConnectorGovernanceRulesExecuteStatus;
-import com.azure.resourcemanager.security.models.SecurityConnectorGovernanceRulesOperations;
import com.azure.resourcemanager.security.models.SecurityConnectors;
import com.azure.resourcemanager.security.models.SecurityContacts;
import com.azure.resourcemanager.security.models.SecuritySolutions;
@@ -147,7 +142,6 @@
import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentScanResults;
import com.azure.resourcemanager.security.models.SqlVulnerabilityAssessmentScans;
import com.azure.resourcemanager.security.models.SubAssessments;
-import com.azure.resourcemanager.security.models.SubscriptionGovernanceRulesExecuteStatus;
import com.azure.resourcemanager.security.models.Tasks;
import com.azure.resourcemanager.security.models.Topologies;
import com.azure.resourcemanager.security.models.WorkspaceSettings;
@@ -242,12 +236,6 @@ public final class SecurityManager {
private Connectors connectors;
- private SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans;
-
- private SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults;
-
- private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
-
private Alerts alerts;
private Settings settings;
@@ -260,16 +248,6 @@ public final class SecurityManager {
private GovernanceRules governanceRules;
- private GovernanceRulesOperations governanceRulesOperations;
-
- private SecurityConnectorGovernanceRules securityConnectorGovernanceRules;
-
- private SecurityConnectorGovernanceRulesOperations securityConnectorGovernanceRulesOperations;
-
- private SubscriptionGovernanceRulesExecuteStatus subscriptionGovernanceRulesExecuteStatus;
-
- private SecurityConnectorGovernanceRulesExecuteStatus securityConnectorGovernanceRulesExecuteStatus;
-
private GovernanceAssignments governanceAssignments;
private Applications applications;
@@ -286,6 +264,16 @@ public final class SecurityManager {
private ApiCollectionOffboardings apiCollectionOffboardings;
+ private HealthReports healthReports;
+
+ private HealthReportOperations healthReportOperations;
+
+ private SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans;
+
+ private SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults;
+
+ private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
+
private final SecurityCenter clientObject;
private SecurityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -451,7 +439,7 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
.append("-")
.append("com.azure.resourcemanager.security")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -1022,47 +1010,6 @@ public Connectors connectors() {
return connectors;
}
- /**
- * Gets the resource collection API of SqlVulnerabilityAssessmentScans.
- *
- * @return Resource collection API of SqlVulnerabilityAssessmentScans.
- */
- public SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans() {
- if (this.sqlVulnerabilityAssessmentScans == null) {
- this.sqlVulnerabilityAssessmentScans =
- new SqlVulnerabilityAssessmentScansImpl(clientObject.getSqlVulnerabilityAssessmentScans(), this);
- }
- return sqlVulnerabilityAssessmentScans;
- }
-
- /**
- * Gets the resource collection API of SqlVulnerabilityAssessmentScanResults.
- *
- * @return Resource collection API of SqlVulnerabilityAssessmentScanResults.
- */
- public SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults() {
- if (this.sqlVulnerabilityAssessmentScanResults == null) {
- this.sqlVulnerabilityAssessmentScanResults =
- new SqlVulnerabilityAssessmentScanResultsImpl(
- clientObject.getSqlVulnerabilityAssessmentScanResults(), this);
- }
- return sqlVulnerabilityAssessmentScanResults;
- }
-
- /**
- * Gets the resource collection API of SqlVulnerabilityAssessmentBaselineRules. It manages RuleResults.
- *
- * @return Resource collection API of SqlVulnerabilityAssessmentBaselineRules.
- */
- public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules() {
- if (this.sqlVulnerabilityAssessmentBaselineRules == null) {
- this.sqlVulnerabilityAssessmentBaselineRules =
- new SqlVulnerabilityAssessmentBaselineRulesImpl(
- clientObject.getSqlVulnerabilityAssessmentBaselineRules(), this);
- }
- return sqlVulnerabilityAssessmentBaselineRules;
- }
-
/**
* Gets the resource collection API of Alerts.
*
@@ -1124,7 +1071,7 @@ public SecurityConnectors securityConnectors() {
}
/**
- * Gets the resource collection API of GovernanceRules.
+ * Gets the resource collection API of GovernanceRules. It manages GovernanceRule.
*
* @return Resource collection API of GovernanceRules.
*/
@@ -1135,74 +1082,6 @@ public GovernanceRules governanceRules() {
return governanceRules;
}
- /**
- * Gets the resource collection API of GovernanceRulesOperations. It manages GovernanceRule.
- *
- * @return Resource collection API of GovernanceRulesOperations.
- */
- public GovernanceRulesOperations governanceRulesOperations() {
- if (this.governanceRulesOperations == null) {
- this.governanceRulesOperations =
- new GovernanceRulesOperationsImpl(clientObject.getGovernanceRulesOperations(), this);
- }
- return governanceRulesOperations;
- }
-
- /**
- * Gets the resource collection API of SecurityConnectorGovernanceRules.
- *
- * @return Resource collection API of SecurityConnectorGovernanceRules.
- */
- public SecurityConnectorGovernanceRules securityConnectorGovernanceRules() {
- if (this.securityConnectorGovernanceRules == null) {
- this.securityConnectorGovernanceRules =
- new SecurityConnectorGovernanceRulesImpl(clientObject.getSecurityConnectorGovernanceRules(), this);
- }
- return securityConnectorGovernanceRules;
- }
-
- /**
- * Gets the resource collection API of SecurityConnectorGovernanceRulesOperations.
- *
- * @return Resource collection API of SecurityConnectorGovernanceRulesOperations.
- */
- public SecurityConnectorGovernanceRulesOperations securityConnectorGovernanceRulesOperations() {
- if (this.securityConnectorGovernanceRulesOperations == null) {
- this.securityConnectorGovernanceRulesOperations =
- new SecurityConnectorGovernanceRulesOperationsImpl(
- clientObject.getSecurityConnectorGovernanceRulesOperations(), this);
- }
- return securityConnectorGovernanceRulesOperations;
- }
-
- /**
- * Gets the resource collection API of SubscriptionGovernanceRulesExecuteStatus.
- *
- * @return Resource collection API of SubscriptionGovernanceRulesExecuteStatus.
- */
- public SubscriptionGovernanceRulesExecuteStatus subscriptionGovernanceRulesExecuteStatus() {
- if (this.subscriptionGovernanceRulesExecuteStatus == null) {
- this.subscriptionGovernanceRulesExecuteStatus =
- new SubscriptionGovernanceRulesExecuteStatusImpl(
- clientObject.getSubscriptionGovernanceRulesExecuteStatus(), this);
- }
- return subscriptionGovernanceRulesExecuteStatus;
- }
-
- /**
- * Gets the resource collection API of SecurityConnectorGovernanceRulesExecuteStatus.
- *
- * @return Resource collection API of SecurityConnectorGovernanceRulesExecuteStatus.
- */
- public SecurityConnectorGovernanceRulesExecuteStatus securityConnectorGovernanceRulesExecuteStatus() {
- if (this.securityConnectorGovernanceRulesExecuteStatus == null) {
- this.securityConnectorGovernanceRulesExecuteStatus =
- new SecurityConnectorGovernanceRulesExecuteStatusImpl(
- clientObject.getSecurityConnectorGovernanceRulesExecuteStatus(), this);
- }
- return securityConnectorGovernanceRulesExecuteStatus;
- }
-
/**
* Gets the resource collection API of GovernanceAssignments. It manages GovernanceAssignment.
*
@@ -1304,6 +1183,72 @@ public ApiCollectionOffboardings apiCollectionOffboardings() {
return apiCollectionOffboardings;
}
+ /**
+ * Gets the resource collection API of HealthReports.
+ *
+ * @return Resource collection API of HealthReports.
+ */
+ public HealthReports healthReports() {
+ if (this.healthReports == null) {
+ this.healthReports = new HealthReportsImpl(clientObject.getHealthReports(), this);
+ }
+ return healthReports;
+ }
+
+ /**
+ * Gets the resource collection API of HealthReportOperations.
+ *
+ * @return Resource collection API of HealthReportOperations.
+ */
+ public HealthReportOperations healthReportOperations() {
+ if (this.healthReportOperations == null) {
+ this.healthReportOperations =
+ new HealthReportOperationsImpl(clientObject.getHealthReportOperations(), this);
+ }
+ return healthReportOperations;
+ }
+
+ /**
+ * Gets the resource collection API of SqlVulnerabilityAssessmentScans.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentScans.
+ */
+ public SqlVulnerabilityAssessmentScans sqlVulnerabilityAssessmentScans() {
+ if (this.sqlVulnerabilityAssessmentScans == null) {
+ this.sqlVulnerabilityAssessmentScans =
+ new SqlVulnerabilityAssessmentScansImpl(clientObject.getSqlVulnerabilityAssessmentScans(), this);
+ }
+ return sqlVulnerabilityAssessmentScans;
+ }
+
+ /**
+ * Gets the resource collection API of SqlVulnerabilityAssessmentScanResults.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentScanResults.
+ */
+ public SqlVulnerabilityAssessmentScanResults sqlVulnerabilityAssessmentScanResults() {
+ if (this.sqlVulnerabilityAssessmentScanResults == null) {
+ this.sqlVulnerabilityAssessmentScanResults =
+ new SqlVulnerabilityAssessmentScanResultsImpl(
+ clientObject.getSqlVulnerabilityAssessmentScanResults(), this);
+ }
+ return sqlVulnerabilityAssessmentScanResults;
+ }
+
+ /**
+ * Gets the resource collection API of SqlVulnerabilityAssessmentBaselineRules. It manages RuleResults.
+ *
+ * @return Resource collection API of SqlVulnerabilityAssessmentBaselineRules.
+ */
+ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules() {
+ if (this.sqlVulnerabilityAssessmentBaselineRules == null) {
+ this.sqlVulnerabilityAssessmentBaselineRules =
+ new SqlVulnerabilityAssessmentBaselineRulesImpl(
+ clientObject.getSqlVulnerabilityAssessmentBaselineRules(), this);
+ }
+ return sqlVulnerabilityAssessmentBaselineRules;
+ }
+
/**
* @return Wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
index 611311e8ef0b1..ab8458ddf09cb 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
@@ -14,31 +14,33 @@
/** An instance of this class provides access to all the operations defined in GovernanceAssignmentsClient. */
public interface GovernanceAssignmentsClient {
/**
- * Get security governanceAssignments on all your resources inside a scope.
+ * Get governance assignments on all of your resources inside a scope.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment 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 security governanceAssignments on all your resources inside a scope as paginated response with {@link
+ * @return governance assignments on all of your resources inside a scope as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope, String assessmentName);
/**
- * Get security governanceAssignments on all your resources inside a scope.
+ * Get governance assignments on all of your resources inside a scope.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment 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 security governanceAssignments on all your resources inside a scope as paginated response with {@link
+ * @return governance assignments on all of your resources inside a scope as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@@ -47,11 +49,11 @@ public interface GovernanceAssignmentsClient {
/**
* Get a specific governanceAssignment for the requested scope by AssignmentKey.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param assignmentKey The security governance assignment key - the assessment key of the required governance
- * assignment.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment type.
+ * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
* @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.
@@ -65,11 +67,11 @@ Response getWithResponse(
/**
* Get a specific governanceAssignment for the requested scope by AssignmentKey.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param assignmentKey The security governance assignment key - the assessment key of the required governance
- * assignment.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment type.
+ * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -79,19 +81,19 @@ Response getWithResponse(
GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey);
/**
- * Creates or update a security GovernanceAssignment on the given subscription.
+ * Creates or updates a governance assignment on the given subscription.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param assignmentKey The security governance assignment key - the assessment key of the required governance
- * assignment.
- * @param governanceAssignment GovernanceAssignment over a subscription scope.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment type.
+ * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
+ * @param governanceAssignment Governance assignment over a subscription scope.
* @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 security GovernanceAssignment over a given scope along with {@link Response}.
+ * @return governance assignment over a given scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -102,18 +104,18 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Creates or update a security GovernanceAssignment on the given subscription.
+ * Creates or updates a governance assignment on the given subscription.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param assignmentKey The security governance assignment key - the assessment key of the required governance
- * assignment.
- * @param governanceAssignment GovernanceAssignment over a subscription scope.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment type.
+ * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
+ * @param governanceAssignment Governance assignment over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceAssignment over a given scope.
+ * @return governance assignment over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
GovernanceAssignmentInner createOrUpdate(
@@ -122,11 +124,11 @@ GovernanceAssignmentInner createOrUpdate(
/**
* Delete a GovernanceAssignment over a given scope.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param assignmentKey The security governance assignment key - the assessment key of the required governance
- * assignment.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment type.
+ * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
* @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.
@@ -139,11 +141,11 @@ GovernanceAssignmentInner createOrUpdate(
/**
* Delete a GovernanceAssignment over a given scope.
*
- * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
- * management group (/providers/Microsoft.Management/managementGroups/mgName).
- * @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param assignmentKey The security governance assignment key - the assessment key of the required governance
- * assignment.
+ * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param assessmentName The Assessment Key - A unique key for the assessment type.
+ * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
index 02a824e96f3f1..d6f4ace6458cf 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesClient.java
@@ -7,32 +7,281 @@
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.management.polling.PollResult;
import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
+import com.azure.resourcemanager.security.fluent.models.OperationResultAutoGeneratedInner;
+import com.azure.resourcemanager.security.models.ExecuteGovernanceRuleParams;
+import com.azure.resourcemanager.security.models.GovernanceRulesOperationResultsResponse;
/** An instance of this class provides access to all the operations defined in GovernanceRulesClient. */
public interface GovernanceRulesClient {
/**
- * Get a list of all relevant governanceRules over a subscription level scope.
+ * Get a list of all relevant governance rules over a scope.
*
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all relevant governanceRules over a subscription level scope as paginated response with {@link
- * PagedIterable}.
+ * @return a list of all relevant governance rules over a scope as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list(String scope);
/**
- * Get a list of all relevant governanceRules over a subscription level scope.
+ * Get a list of all relevant governance rules over a scope.
*
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @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 of all relevant governanceRules over a subscription level scope as paginated response with {@link
- * PagedIterable}.
+ * @return a list of all relevant governance rules over a scope as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable list(String scope, Context context);
+
+ /**
+ * Get a specific governance rule for the requested scope by ruleId.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @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 specific governance rule for the requested scope by ruleId along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String scope, String ruleId, Context context);
+
+ /**
+ * Get a specific governance rule for the requested scope by ruleId.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 specific governance rule for the requested scope by ruleId.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GovernanceRuleInner get(String scope, String ruleId);
+
+ /**
+ * Creates or updates a governance rule over a given scope.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param governanceRule Governance rule over a given scope.
+ * @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 governance rule over a given scope along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String scope, String ruleId, GovernanceRuleInner governanceRule, Context context);
+
+ /**
+ * Creates or updates a governance rule over a given scope.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param governanceRule Governance rule over a given scope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return governance rule over a given scope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GovernanceRuleInner createOrUpdate(String scope, String ruleId, GovernanceRuleInner governanceRule);
+
+ /**
+ * Delete a Governance rule over a given scope.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String scope, String ruleId);
+
+ /**
+ * Delete a Governance rule over a given scope.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String scope, String ruleId, Context context);
+
+ /**
+ * Delete a Governance rule over a given scope.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 ruleId);
+
+ /**
+ * Delete a Governance rule over a given scope.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String scope, String ruleId, Context context);
+
+ /**
+ * Execute a governance rule.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginExecute(String scope, String ruleId);
+
+ /**
+ * Execute a governance rule.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param executeGovernanceRuleParams Execute governance rule over a given scope.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginExecute(
+ String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
+
+ /**
+ * Execute a governance rule.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 execute(String scope, String ruleId);
+
+ /**
+ * Execute a governance rule.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param executeGovernanceRuleParams Execute governance rule over a given scope.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void execute(String scope, String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
+
+ /**
+ * Get governance rules long run operation result for the requested scope by ruleId and operationId.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param operationId The governance rule long running operation unique key.
+ * @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 governance rules long run operation result for the requested scope by ruleId and operationId.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GovernanceRulesOperationResultsResponse operationResultsWithResponse(
+ String scope, String ruleId, String operationId, Context context);
+
+ /**
+ * Get governance rules long run operation result for the requested scope by ruleId and operationId.
+ *
+ * @param scope The scope of the Governance rules. Valid scopes are: management group (format:
+ * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ * @param ruleId The governance rule key - unique key for the standard governance rule (GUID).
+ * @param operationId The governance rule long running operation unique key.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return governance rules long run operation result for the requested scope by ruleId and operationId.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResultAutoGeneratedInner operationResults(String scope, String ruleId, String operationId);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java
deleted file mode 100644
index e178e1f24eaf3..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java
+++ /dev/null
@@ -1,219 +0,0 @@
-// Copyright (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.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.GovernanceRuleInner;
-import com.azure.resourcemanager.security.models.ExecuteGovernanceRuleParams;
-
-/** An instance of this class provides access to all the operations defined in GovernanceRulesOperationsClient. */
-public interface GovernanceRulesOperationsClient {
- /**
- * Get a specific governanceRule for the requested scope by ruleId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @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 specific governanceRule for the requested scope by ruleId along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String ruleId, Context context);
-
- /**
- * Get a specific governanceRule for the requested scope by ruleId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 specific governanceRule for the requested scope by ruleId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner get(String ruleId);
-
- /**
- * Creates or update a security GovernanceRule on the given subscription.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param governanceRule GovernanceRule over a subscription scope.
- * @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 security GovernanceRule over a given scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String ruleId, GovernanceRuleInner governanceRule, Context context);
-
- /**
- * Creates or update a security GovernanceRule on the given subscription.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param governanceRule GovernanceRule over a subscription scope.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceRule over a given scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule);
-
- /**
- * Delete a GovernanceRule over a given scope.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String ruleId, Context context);
-
- /**
- * Delete a GovernanceRule over a given scope.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 ruleId);
-
- /**
- * Execute a security GovernanceRule on the given subscription.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRuleIdExecuteSingleSubscription(String ruleId);
-
- /**
- * Execute a security GovernanceRule on the given subscription.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRuleIdExecuteSingleSubscription(
- String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
-
- /**
- * Execute a security GovernanceRule on the given subscription.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 ruleIdExecuteSingleSubscription(String ruleId);
-
- /**
- * Execute a security GovernanceRule on the given subscription.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void ruleIdExecuteSingleSubscription(
- String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
-
- /**
- * Execute a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector(
- String resourceGroupName, String securityConnectorName, String ruleId);
-
- /**
- * Execute a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector(
- String resourceGroupName,
- String securityConnectorName,
- String ruleId,
- ExecuteGovernanceRuleParams executeGovernanceRuleParams,
- Context context);
-
- /**
- * Execute a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 ruleIdExecuteSingleSecurityConnector(String resourceGroupName, String securityConnectorName, String ruleId);
-
- /**
- * Execute a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void ruleIdExecuteSingleSecurityConnector(
- String resourceGroupName,
- String securityConnectorName,
- String ruleId,
- ExecuteGovernanceRuleParams executeGovernanceRuleParams,
- Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportOperationsClient.java
new file mode 100644
index 0000000000000..9127fc7b309b8
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportOperationsClient.java
@@ -0,0 +1,41 @@
+// Copyright (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.HealthReportInner;
+
+/** An instance of this class provides access to all the operations defined in HealthReportOperationsClient. */
+public interface HealthReportOperationsClient {
+ /**
+ * Get health report of resource.
+ *
+ * @param resourceId The identifier of the resource.
+ * @param healthReportName The health report Key - Unique key for the health report 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 health report of resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceId, String healthReportName, Context context);
+
+ /**
+ * Get health report of resource.
+ *
+ * @param resourceId The identifier of the resource.
+ * @param healthReportName The health report Key - Unique key for the health report 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 health report of resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HealthReportInner get(String resourceId, String healthReportName);
+}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java
new file mode 100644
index 0000000000000..57ee9785cfd2f
--- /dev/null
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/HealthReportsClient.java
@@ -0,0 +1,43 @@
+// Copyright (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.HealthReportInner;
+
+/** An instance of this class provides access to all the operations defined in HealthReportsClient. */
+public interface HealthReportsClient {
+ /**
+ * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ *
+ * @param scope The scope at which the operation is performed.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all health reports inside a scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
+
+ /**
+ * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:
+ * 'subscriptions/{subscriptionId}'), or security connector (format:
+ * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
+ *
+ * @param scope The scope at which the operation is performed.
+ * @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 of all health reports inside a scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope, 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 4067fa273c193..705fefe02cb51 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,27 +324,6 @@ public interface SecurityCenter {
*/
ConnectorsClient getConnectors();
- /**
- * Gets the SqlVulnerabilityAssessmentScansClient object to access its operations.
- *
- * @return the SqlVulnerabilityAssessmentScansClient object.
- */
- SqlVulnerabilityAssessmentScansClient getSqlVulnerabilityAssessmentScans();
-
- /**
- * Gets the SqlVulnerabilityAssessmentScanResultsClient object to access its operations.
- *
- * @return the SqlVulnerabilityAssessmentScanResultsClient object.
- */
- SqlVulnerabilityAssessmentScanResultsClient getSqlVulnerabilityAssessmentScanResults();
-
- /**
- * Gets the SqlVulnerabilityAssessmentBaselineRulesClient object to access its operations.
- *
- * @return the SqlVulnerabilityAssessmentBaselineRulesClient object.
- */
- SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules();
-
/**
* Gets the AlertsClient object to access its operations.
*
@@ -387,41 +366,6 @@ public interface SecurityCenter {
*/
GovernanceRulesClient getGovernanceRules();
- /**
- * Gets the GovernanceRulesOperationsClient object to access its operations.
- *
- * @return the GovernanceRulesOperationsClient object.
- */
- GovernanceRulesOperationsClient getGovernanceRulesOperations();
-
- /**
- * Gets the SecurityConnectorGovernanceRulesClient object to access its operations.
- *
- * @return the SecurityConnectorGovernanceRulesClient object.
- */
- SecurityConnectorGovernanceRulesClient getSecurityConnectorGovernanceRules();
-
- /**
- * Gets the SecurityConnectorGovernanceRulesOperationsClient object to access its operations.
- *
- * @return the SecurityConnectorGovernanceRulesOperationsClient object.
- */
- SecurityConnectorGovernanceRulesOperationsClient getSecurityConnectorGovernanceRulesOperations();
-
- /**
- * Gets the SubscriptionGovernanceRulesExecuteStatusClient object to access its operations.
- *
- * @return the SubscriptionGovernanceRulesExecuteStatusClient object.
- */
- SubscriptionGovernanceRulesExecuteStatusClient getSubscriptionGovernanceRulesExecuteStatus();
-
- /**
- * Gets the SecurityConnectorGovernanceRulesExecuteStatusClient object to access its operations.
- *
- * @return the SecurityConnectorGovernanceRulesExecuteStatusClient object.
- */
- SecurityConnectorGovernanceRulesExecuteStatusClient getSecurityConnectorGovernanceRulesExecuteStatus();
-
/**
* Gets the GovernanceAssignmentsClient object to access its operations.
*
@@ -477,4 +421,39 @@ public interface SecurityCenter {
* @return the ApiCollectionOffboardingsClient object.
*/
ApiCollectionOffboardingsClient getApiCollectionOffboardings();
+
+ /**
+ * Gets the HealthReportsClient object to access its operations.
+ *
+ * @return the HealthReportsClient object.
+ */
+ HealthReportsClient getHealthReports();
+
+ /**
+ * Gets the HealthReportOperationsClient object to access its operations.
+ *
+ * @return the HealthReportOperationsClient object.
+ */
+ HealthReportOperationsClient getHealthReportOperations();
+
+ /**
+ * Gets the SqlVulnerabilityAssessmentScansClient object to access its operations.
+ *
+ * @return the SqlVulnerabilityAssessmentScansClient object.
+ */
+ SqlVulnerabilityAssessmentScansClient getSqlVulnerabilityAssessmentScans();
+
+ /**
+ * Gets the SqlVulnerabilityAssessmentScanResultsClient object to access its operations.
+ *
+ * @return the SqlVulnerabilityAssessmentScanResultsClient object.
+ */
+ SqlVulnerabilityAssessmentScanResultsClient getSqlVulnerabilityAssessmentScanResults();
+
+ /**
+ * Gets the SqlVulnerabilityAssessmentBaselineRulesClient object to access its operations.
+ *
+ * @return the SqlVulnerabilityAssessmentBaselineRulesClient object.
+ */
+ SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules();
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesClient.java
deleted file mode 100644
index 9384a9cbf5d16..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesClient.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.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.GovernanceRuleInner;
-
-/**
- * An instance of this class provides access to all the operations defined in SecurityConnectorGovernanceRulesClient.
- */
-public interface SecurityConnectorGovernanceRulesClient {
- /**
- * Get a list of all relevant governanceRules over a security connector level scope.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all relevant governanceRules over a security connector level scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName);
-
- /**
- * Get a list of all relevant governanceRules over a security connector level scope.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all relevant governanceRules over a security connector level scope as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String securityConnectorName, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesExecuteStatusClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesExecuteStatusClient.java
deleted file mode 100644
index 99d21e3faec41..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesExecuteStatusClient.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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.ExecuteRuleStatusInner;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * SecurityConnectorGovernanceRulesExecuteStatusClient.
- */
-public interface SecurityConnectorGovernanceRulesExecuteStatusClient {
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of a specific governanceRule execution status for the requested scope
- * by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExecuteRuleStatusInner> beginGet(
- String resourceGroupName, String securityConnectorName, String ruleId, String operationId);
-
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of a specific governanceRule execution status for the requested scope
- * by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExecuteRuleStatusInner> beginGet(
- String resourceGroupName, String securityConnectorName, String ruleId, String operationId, Context context);
-
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 specific governanceRule execution status for the requested scope by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExecuteRuleStatusInner get(
- String resourceGroupName, String securityConnectorName, String ruleId, String operationId);
-
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @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 specific governanceRule execution status for the requested scope by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExecuteRuleStatusInner get(
- String resourceGroupName, String securityConnectorName, String ruleId, String operationId, Context context);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java
deleted file mode 100644
index f2963ac0d5842..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (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.GovernanceRuleInner;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * SecurityConnectorGovernanceRulesOperationsClient.
- */
-public interface SecurityConnectorGovernanceRulesOperationsClient {
- /**
- * Get a specific governanceRule for the requested scope by ruleId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @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 specific governanceRule for the requested scope by ruleId along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String securityConnectorName, String ruleId, Context context);
-
- /**
- * Get a specific governanceRule for the requested scope by ruleId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 specific governanceRule for the requested scope by ruleId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId);
-
- /**
- * Creates or update a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param governanceRule GovernanceRule over a subscription scope.
- * @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 security GovernanceRule over a given scope along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String securityConnectorName,
- String ruleId,
- GovernanceRuleInner governanceRule,
- Context context);
-
- /**
- * Creates or update a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param governanceRule GovernanceRule over a subscription scope.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceRule over a given scope.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner createOrUpdate(
- String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule);
-
- /**
- * Delete a GovernanceRule over a given scope.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String securityConnectorName, String ruleId, Context context);
-
- /**
- * Delete a GovernanceRule over a given scope.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 resourceGroupName, String securityConnectorName, String ruleId);
-}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubscriptionGovernanceRulesExecuteStatusClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubscriptionGovernanceRulesExecuteStatusClient.java
deleted file mode 100644
index 2c9577447c455..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SubscriptionGovernanceRulesExecuteStatusClient.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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.security.fluent.models.ExecuteRuleStatusInner;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * SubscriptionGovernanceRulesExecuteStatusClient.
- */
-public interface SubscriptionGovernanceRulesExecuteStatusClient {
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of a specific governanceRule execution status for the requested scope
- * by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExecuteRuleStatusInner> beginGet(String ruleId, String operationId);
-
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of a specific governanceRule execution status for the requested scope
- * by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExecuteRuleStatusInner> beginGet(
- String ruleId, String operationId, Context context);
-
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 specific governanceRule execution status for the requested scope by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExecuteRuleStatusInner get(String ruleId, String operationId);
-
- /**
- * Get a specific governanceRule execution status for the requested scope by ruleId and operationId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param operationId The security GovernanceRule execution key - unique key for the execution of GovernanceRule.
- * @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 specific governanceRule execution status for the requested scope by ruleId and operationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExecuteRuleStatusInner get(String ruleId, String operationId, Context context);
-}
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 70d189e707ead..ac8fd6624bd45 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
@@ -200,8 +200,9 @@ public OffsetDateTime timeGeneratedUtc() {
}
/**
- * Get the productName property: The name of the product which published this alert (Azure Security Center, Azure
- * ATP, Microsoft Defender ATP, O365 ATP, MCAS, and so on).
+ * Get the productName property: The name of the product which published this alert (Microsoft Sentinel, Microsoft
+ * Defender for Identity, Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for
+ * Cloud Apps, and so on).
*
* @return the productName value.
*/
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java
index 2ad9696f5d25c..5a65af987b501 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/AlertProperties.java
@@ -128,8 +128,8 @@ public final class AlertProperties {
private OffsetDateTime timeGeneratedUtc;
/*
- * The name of the product which published this alert (Azure Security Center, Azure ATP, Microsoft Defender ATP,
- * O365 ATP, MCAS, and so on).
+ * The name of the product which published this alert (Microsoft Sentinel, Microsoft Defender for Identity,
+ * Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for Cloud Apps, and so on).
*/
@JsonProperty(value = "productName", access = JsonProperty.Access.WRITE_ONLY)
private String productName;
@@ -355,8 +355,9 @@ public OffsetDateTime timeGeneratedUtc() {
}
/**
- * Get the productName property: The name of the product which published this alert (Azure Security Center, Azure
- * ATP, Microsoft Defender ATP, O365 ATP, MCAS, and so on).
+ * Get the productName property: The name of the product which published this alert (Microsoft Sentinel, Microsoft
+ * Defender for Identity, Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for
+ * Cloud Apps, and so on).
*
* @return the productName value.
*/
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.java
deleted file mode 100644
index da82adde26341..0000000000000
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/ExecuteRuleStatusInner.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.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Execute status of Security GovernanceRule over a given scope. */
-@Immutable
-public final class ExecuteRuleStatusInner {
- /*
- * Unique key for the execution of GovernanceRule
- */
- @JsonProperty(value = "operationId", access = JsonProperty.Access.WRITE_ONLY)
- private String operationId;
-
- /** Creates an instance of ExecuteRuleStatusInner class. */
- public ExecuteRuleStatusInner() {
- }
-
- /**
- * Get the operationId property: Unique key for the execution of GovernanceRule.
- *
- * @return the operationId value.
- */
- public String operationId() {
- return this.operationId;
- }
-
- /**
- * 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/fluent/models/GovernanceAssignmentInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java
index c828bf76ff264..f880104179cce 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceAssignmentInner.java
@@ -12,11 +12,11 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Security GovernanceAssignment over a given scope. */
+/** Governance assignment over a given scope. */
@Fluent
public final class GovernanceAssignmentInner extends ProxyResource {
/*
- * Properties of a security governanceAssignment
+ * The properties of a governance assignment
*/
@JsonProperty(value = "properties")
private GovernanceAssignmentProperties innerProperties;
@@ -26,7 +26,7 @@ public GovernanceAssignmentInner() {
}
/**
- * Get the innerProperties property: Properties of a security governanceAssignment.
+ * Get the innerProperties property: The properties of a governance assignment.
*
* @return the innerProperties value.
*/
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java
index 2a763d38f7877..62781d9a3ac87 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/models/GovernanceRuleInner.java
@@ -7,17 +7,18 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.GovernanceRuleSourceResourceType;
import com.azure.resourcemanager.security.models.GovernanceRuleType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Security GovernanceRule over a given scope. */
+/** Governance rule over a given scope. */
@Fluent
public final class GovernanceRuleInner extends ProxyResource {
/*
- * Properties of a security governanceRule
+ * Properties of a governance rule
*/
@JsonProperty(value = "properties")
private GovernanceRuleProperties innerProperties;
@@ -27,7 +28,7 @@ public GovernanceRuleInner() {
}
/**
- * Get the innerProperties property: Properties of a security governanceRule.
+ * Get the innerProperties property: Properties of a governance rule.
*
* @return the innerProperties value.
*/
@@ -36,7 +37,16 @@ private GovernanceRuleProperties innerProperties() {
}
/**
- * Get the displayName property: display name of the governanceRule.
+ * Get the tenantId property: The tenantId (GUID).
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().tenantId();
+ }
+
+ /**
+ * Get the displayName property: Display name of the governance rule.
*
* @return the displayName value.
*/
@@ -45,7 +55,7 @@ public String displayName() {
}
/**
- * Set the displayName property: display name of the governanceRule.
+ * Set the displayName property: Display name of the governance rule.
*
* @param displayName the displayName value to set.
* @return the GovernanceRuleInner object itself.
@@ -59,7 +69,7 @@ public GovernanceRuleInner withDisplayName(String displayName) {
}
/**
- * Get the description property: description of the governanceRule.
+ * Get the description property: Description of the governance rule.
*
* @return the description value.
*/
@@ -68,7 +78,7 @@ public String description() {
}
/**
- * Set the description property: description of the governanceRule.
+ * Set the description property: Description of the governance rule.
*
* @param description the description value to set.
* @return the GovernanceRuleInner object itself.
@@ -131,7 +141,7 @@ public GovernanceRuleInner withIsGracePeriod(Boolean isGracePeriod) {
/**
* Get the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same
- * priority on the same subscription will not be allowed.
+ * priority on the same scope will not be allowed.
*
* @return the rulePriority value.
*/
@@ -141,7 +151,7 @@ public Integer rulePriority() {
/**
* Set the rulePriority property: The governance rule priority, priority to the lower number. Rules with the same
- * priority on the same subscription will not be allowed.
+ * priority on the same scope will not be allowed.
*
* @param rulePriority the rulePriority value to set.
* @return the GovernanceRuleInner object itself.
@@ -223,6 +233,29 @@ public GovernanceRuleInner withSourceResourceType(GovernanceRuleSourceResourceTy
return this;
}
+ /**
+ * Get the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).
+ *
+ * @return the excludedScopes value.
+ */
+ public List excludedScopes() {
+ return this.innerProperties() == null ? null : this.innerProperties().excludedScopes();
+ }
+
+ /**
+ * Set the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).
+ *
+ * @param excludedScopes the excludedScopes value to set.
+ * @return the GovernanceRuleInner object itself.
+ */
+ public GovernanceRuleInner withExcludedScopes(List excludedScopes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GovernanceRuleProperties();
+ }
+ this.innerProperties().withExcludedScopes(excludedScopes);
+ return this;
+ }
+
/**
* Get the conditionSets property: The governance rule conditionSets - see examples.
*
@@ -247,7 +280,32 @@ public GovernanceRuleInner withConditionSets(List